syncato-general Mailing List for Syncato (Page 2)
Status: Alpha
Brought to you by:
kstaken
You can subscribe to this list here.
2003 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(59) |
Oct
(32) |
Nov
(104) |
Dec
(8) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2004 |
Jan
(19) |
Feb
(12) |
Mar
(35) |
Apr
(20) |
May
(39) |
Jun
(15) |
Jul
(18) |
Aug
(2) |
Sep
|
Oct
|
Nov
|
Dec
|
From: Brendan T. <th...@ti...> - 2004-06-13 23:00:20
|
I've installed syncato and the necessary dependencies (using syncatomatic) and edited all the config files, but when I try to take a look at it Webware gives me a 404 page (it's at http://fungoid.dyndns.org/~temp/wk/blog/ ). I'm guessing that I'm missing something fairly simple, but I'm not sure where to start looking for the problem. Is it just a matter of needing to add content? (if so, how do I go about that?) The 'admin' context gives the same error. Thanks - I'm really looking forward to playing around with syncato. |
From: darryl <dev...@cs...> - 2004-06-08 13:33:27
|
mark williamson wrote: > Am I right in assuming that there is no formal definition of things like > "item" but simply a consensual definition amongst the different style > sheets? > > cheers > > mark > > That sounds about right :) -darryl -- http://randomthoughts.vandorp.ca/WK/blog |
From: mark w. <mar...@bl...> - 2004-06-08 09:59:23
|
Am I right in assuming that there is no formal definition of things like "item" but simply a consensual definition amongst the different style sheets? cheers mark |
From: mark w. <mar...@bl...> - 2004-06-08 09:58:01
|
Just thought I would mention that the British Library Web archiving project are using Syncato for their project server - its not available to see just yet (you would not believe how hard it is to get a server running in a DMZ here :-( ) but I'll give a shout when its on show to the public. cheers mark |
From: darryl <dev...@cs...> - 2004-06-07 15:31:51
|
Kimbro Staken wrote: > Look at importData.py. It accesses the DBXML database directly. It's > designed to take a single XML file containing all the records and an > XPath that is used to separate the file into individual records. You > could make a /node() request through Syncato on the file database and > store it into a single file with something like wget and then split it > up again with /results/node(). Make sure nothing else has the DBXML > database open when you do this. > > On May 14, 2004, at 1:12 PM, darryl wrote: Just a note. if you want to split it up again i think the proper query is: /results/* -darryl -- http://randomthoughts.vandorp.ca/WK/blog |
From: darryl <dev...@cs...> - 2004-06-04 15:41:46
|
mark wrote: > Questions: Answers inline > Are FileDatabase and DBXMLDatabase completely interchangeable? > They should be. Of course changes made to one have to be made to the other. > Do the templates have access to session information as things stand? - I > guess > they must 'cos there is config information available. > session information? The templates have access to whatever syncato gives them access too :) The config information is just parsed from config.xml . So in that case, the templates have access to the filesystem. > I would like to submit all this stuff back to the project so who would I > send > patches to (assuming its wanted) > I'd like to see any mods that you may have, if they are inline with the goals of the project i'm sure they can be filtered in. Mention your changes on the mailing list and submit any code here for now. Kimbro Staken is the lead developer of syncato but has gotten very busy of late. I have cvs access so i can make additions if appropriate. > I am likely to be making a number of mods to Syncato over time - this is a > fairly > big project and will be running for a number of years. Sounds great. > > cheers > > mark williamson > > Just as a quick note (so there's no duplication). I have been playing with my installation and have added etags support (which seems to have a a bug i haven't spent the time to figure out yet), i've also added a lastModified attribute to postings. -darryl -- http://randomthoughts.vandorp.ca/WK/blog |
From: mark <ma...@ju...> - 2004-06-04 14:35:32
|
That was the conclusion I had come to. :-) We are using Syncato for our project server (here at the British library) and we need multiple users so I'm going to add it. I guess it would make sense if I did it in a useful way for the Syncato project rather than just bolting it on for my own needs. So I would just like to run my ideas past you all and ask a couple of questions. I am going to adapt some code I have for another project - it works by providing a base class for the servlet (main.py in closed and open for Syncato) - prior to calling the "respondTo..." it looks in the session and at the form variables from the request and sets a session variable to an appropriate state ( logged & username , loggedout , error (invalid user or password)). The code can pull the username and state out of the session as needed. There will be ACL's in the config for the different types of request. Questions: Are FileDatabase and DBXMLDatabase completely interchangeable? Do the templates have access to session information as things stand? - I guess they must 'cos there is config information available. I would like to submit all this stuff back to the project so who would I send patches to (assuming its wanted) I am likely to be making a number of mods to Syncato over time - this is a fairly big project and will be running for a number of years. cheers mark williamson -----Original Message----- From: syn...@li... [mailto:syn...@li...] On Behalf Of darryl Sent: 04 June 2004 13:48 To: syn...@li... Subject: Re: [Syncato-general] Multi-user mark wrote: > further to this - I have the .htpasswd set up - what I am wanting is > to pull the username into the post so it says "posted by ..." > > cheers > > mark Syncato does not support multi-user at this time. I've never given it much thought myself. It seems to me in that case we'd like to manage logging in within syncato itself. -darryl -- http://randomthoughts.vandorp.ca/WK/blog ------------------------------------------------------- This SF.Net email is sponsored by the new InstallShield X. >From Windows to Linux, servers to mobile, InstallShield X is the one installation-authoring solution that does it all. Learn more and evaluate today! http://www.installshield.com/Dev2Dev/0504 _______________________________________________ Syncato-general mailing list Syn...@li... https://lists.sourceforge.net/lists/listinfo/syncato-general |
From: darryl <dev...@cs...> - 2004-06-04 12:45:20
|
mark wrote: > further to this - I have the .htpasswd set up - what I am wanting is > to pull the username into the post so it says "posted by ..." > > cheers > > mark Syncato does not support multi-user at this time. I've never given it much thought myself. It seems to me in that case we'd like to manage logging in within syncato itself. -darryl -- http://randomthoughts.vandorp.ca/WK/blog |
From: mark <ma...@ju...> - 2004-06-04 12:34:27
|
further to this - I have the .htpasswd set up - what I am wanting is to pull the username into the post so it says "posted by ..." cheers mark -----Original Message----- From: syn...@li... [mailto:syn...@li...] On Behalf Of mark Sent: 04 June 2004 13:26 To: syn...@li... Subject: [Syncato-general] Multi-user Hi, I'm just looking at making a multi-poster version of Syncato. Looking through the code I see the odd reference to username and password. Is there any support for this or am I on my own? cheers mark ------------------------------------------------------- This SF.Net email is sponsored by the new InstallShield X. >From Windows to Linux, servers to mobile, InstallShield X is the one installation-authoring solution that does it all. Learn more and evaluate today! http://www.installshield.com/Dev2Dev/0504 _______________________________________________ Syncato-general mailing list Syn...@li... https://lists.sourceforge.net/lists/listinfo/syncato-general |
From: mark <ma...@ju...> - 2004-06-04 12:25:34
|
Hi, I'm just looking at making a multi-poster version of Syncato. Looking through the code I see the odd reference to username and password. Is there any support for this or am I on my own? cheers mark |
From: darryl <dev...@cs...> - 2004-05-28 01:28:19
|
>> >> >> It doesn't show any errors for /WK/blog. I'm just not certain >> what's happening here. >> >> Thanks, >> >> Jesse Lawrence >> > Kimbro Staken > Software, Consulting and Writing http://www.xmldatabases.org/ > He's running OSX. Not using dbxml. Could his libxml2 be messed? -darryl -- http://randomthoughts.vandorp.ca/WK/blog |
From: Kimbro S. <ks...@xm...> - 2004-05-28 00:17:39
|
The error kind of implies it's running out of memory, but I've never seen that happen before. Have you checked to make sure your distribution is OK. The complaint about extra content at the end of the document makes me wonder. On May 27, 2004, at 3:59 PM, Jesse Lawrence wrote: > darryl wrote: > >> >>> >>> Still looking for clues. Anyone? >>> >>> Thanks, >>> >>> Jesse Lawrence >>> >>> >> I dont' know crap about mac osx but when you run the appserver >> (webware) >> do you get output to the terminal? >> >> I've found watching what's going on there usually gives better >> feedback then any tracebacks in the browser. >> >> If you are running from an interactive terminal see if you get more >> informative error messages there, perhaps trouble parsing stylesheets >> or something. >> -Darryl >> > Ok, I know this will be long, but here's what the terminal is showing. > Startup looks good, then you can see that I called localhost/WK/blog, > then localhost/WK/admin: > > Jesse-Lawrences-Computer:~/software/syncato/webware jesselawrence$ > ./AppServer > --webware-path=/Users/jesselawrence/downloads/Webware-0.8.1/ > --working-path=/Users/jesselawrence/software/syncato/webwareWebKit > AppServer 0.8.1 > part of Webware for Python > Copyright 1999-2001 by Chuck Esterbrook. All Rights Reserved. > WebKit and Webware are open source. > Please visit: http://webware.sourceforge.net > > Process id is 501 > Date/time is Thu May 27 19:51:07 2004 > > AutoReload = 0 > AutoReloadPollInterval = 1 > CheckInterval = 100 > Host = 127.0.0.1 > MaxServerThreads = 20 > MinServerThreads = 5 > PlugInDirs = > ['/Users/jesselawrence/downloads/Webware-0.8.1'] > PlugIns = [] > Port = 8086 > PrintConfigAtStartUp = 1 > StartServerThreads = 10 > Verbose = 1 > > ActivityLogColumns = ['request.remoteAddress', > 'request.method', 'request.uri', 'response.size', 'servlet.name', > 'request.timeStamp', 'transaction.duration', > 'transaction.errorOccurred'] > ActivityLogFilename = > /Users/jesselawrence/software/syncato/webware/Logs/Activity.csv > AdminPassword = ber$$bad > CacheServletClasses = 1 > CacheServletInstances = 1 > ClearPSPCacheOnStart = 1 > Contexts = {'blog': > '../dist/servlets/restricted', 'default': '../dist/servlets/open', > 'admin': '../dist/servlets/closed'} > Debug = {'Sessions': 0} > DirectoryFile = ['index', 'Index', 'main', 'Main'] > DynamicSessionTimeout = 15 > EmailErrorReportAsAttachment = 0 > EmailErrors = 0 > ErrorEmailHeaders = {'To': ['-@-.com'], 'Reply-to': > '-@-.com', 'From': '-@-.com', 'Content-type': 'text/html', 'Subject': > '[WebKit Error]'} > ErrorEmailServer = mail.-.com > ErrorLogFilename = > /Users/jesselawrence/software/syncato/webware/Logs/Errors.csv > ErrorMessagesDir = > /Users/jesselawrence/software/syncato/webware/ErrorMsgs > ExtensionCascadeOrder = ['.py', '.psp', '.html'] > ExtensionsToIgnore = ['.pyc', '.pyo', '.py~', '.psp~', > '.html~', '.bak', '.tmpl'] > ExtensionsToServe = [] > ExtraPathInfo = 1 > FancyTracebackContext = 5 > FilesToHide = ['.*', '*~', '*.bak', '*.tmpl', > '*.config', '__init__.*', '*.pyc', '*.pyo'] > FilesToServe = [] > IgnoreInvalidSession = 1 > IncludeFancyTraceback = 0 > LogActivity = 0 > MaxDynamicMemorySessions = 10000 > MaxValueLengthInExceptionReport = 500 > OldStyleActions = 0 > PrintConfigAtStartUp = 1 > RPCExceptionReturn = exception > ReportRPCExceptionsInWebKit = 1 > SaveErrorMessages = 1 > SessionPrefix = None > SessionStore = Dynamic > SessionTimeout = 60 > ShowDebugInfoOnErrors = 1 > UnknownFileTypes = {'CheckDate': 1, 'Technique': > 'serveContent', 'CacheContent': 0, 'ReuseServlets': 1} > UseAutomaticPathSessions = 0 > UseCascadingExtensions = 1 > UserErrorMessage = The site is having technical > difficulties with this page. An error has been logged, and the problem > will be fixed as soon as possible. Sorry! > > Loading context: blog at > /Users/jesselawrence/software/syncato/dist/servlets/restricted > Loading context: admin at > /Users/jesselawrence/software/syncato/dist/servlets/closed > Loading context: default at > /Users/jesselawrence/software/syncato/dist/servlets/open > > Current directory: /Users/jesselawrence/software/syncato/webware > Session Sweeper started > > Plug-ins list: /Users/jesselawrence/downloads/Webware-0.8.1/COMKit, > /Users/jesselawrence/downloads/Webware-0.8.1/MiddleKit, > /Users/jesselawrence/downloads/Webware-0.8.1/MiscUtils, > /Users/jesselawrence/downloads/Webware-0.8.1/PSP, > /Users/jesselawrence/downloads/Webware-0.8.1/TaskKit, > /Users/jesselawrence/downloads/Webware-0.8.1/UserKit, > /Users/jesselawrence/downloads/Webware-0.8.1/WebUtils > Loading plug-in: COMKit at > /Users/jesselawrence/downloads/Webware-0.8.1/COMKit > Plug-in /Users/jesselawrence/downloads/Webware-0.8.1/COMKit cannot > be loaded because: > Required op sys is ['nt'], but actual op sys is posix. > Loading plug-in: MiddleKit at > /Users/jesselawrence/downloads/Webware-0.8.1/MiddleKit > Loading context: MKBrowser at > /Users/jesselawrence/downloads/Webware-0.8.1/MiddleKit/WebBrowser > Loading plug-in: MiscUtils at > /Users/jesselawrence/downloads/Webware-0.8.1/MiscUtils > Loading plug-in: PSP at > /Users/jesselawrence/downloads/Webware-0.8.1/PSP > Loading plug-in: TaskKit at > /Users/jesselawrence/downloads/Webware-0.8.1/TaskKit > Loading plug-in: UserKit at > /Users/jesselawrence/downloads/Webware-0.8.1/UserKit > Loading plug-in: WebUtils at > /Users/jesselawrence/downloads/Webware-0.8.1/WebUtils > > Listening on ('127.0.0.1', 8086) > Creating 10 threads.......... > Ready (4.35 seconds after launch) > > 1 2004-05-27 19:52:57 /WK/blog > 1 1.76 secs /WK/blog > > 2 2004-05-27 19:53:24 /WK/admin > DB Style Init called http://www.xmldatabases.org/dbxsl > DB Style Init called http://www.xmldatabases.org/weblog > Init > called/Users/jesselawrence/software/syncato/dist/stylesheets/ > layout.xsl:1: error: Memory allocation failed > <xsl:stylesheet > ^ > /Users/jesselawrence/software/syncato/dist/stylesheets/layout.xsl:2: > error: Extra content at the end of the document > xmlns:xsl="http://www.w3.org/1999/XSL/Transform" > ^ > compilation error: file > /Users/jesselawrence/software/syncato/dist/stylesheets/admin/edit.xsl > element import > xsl:import : unable to load > /Users/jesselawrence/software/syncato/dist/stylesheets/layout.xsl > style shutdown called[Thu May 27 19:53:24 2004] [error] WebKit: Error > while executing script > /Users/jesselawrence/software/syncato/dist/servlets/closed/Main.py > Traceback (most recent call last): > File "WebKit/Application.py", line 415, in dispatchRequest > File "WebKit/Application.py", line 567, in handleGoodURL > File "WebKit/Application.py", line 776, in respond > File "WebKit/Transaction.py", line 105, in respond > File "WebKit/HTTPServlet.py", line 38, in respond > File > "/Users/jesselawrence/software/syncato/dist/servlets/closed/Main.py", > line 29, in respondToGet > content = self.weblog.db.runTransform("<dummy/>", "admin/edit", "") > File "../dist/scripts/lib/BaseDatabase.py", line 97, in runTransform > style.freeStylesheet() > AttributeError: 'NoneType' object has no attribute 'freeStylesheet' > 2 0.96 secs /WK/admin > > > It doesn't show any errors for /WK/blog. I'm just not certain what's > happening here. > > Thanks, > > Jesse Lawrence > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: Oracle 10g > Get certified on the hottest thing ever to hit the market... Oracle > 10g. Take an Oracle 10g class now, and we'll give you the exam FREE. > http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click > _______________________________________________ > Syncato-general mailing list > Syn...@li... > https://lists.sourceforge.net/lists/listinfo/syncato-general > > Kimbro Staken Software, Consulting and Writing http://www.xmldatabases.org/ |
From: Jesse L. <law...@ya...> - 2004-05-27 23:03:12
|
darryl wrote: > >> >> Still looking for clues. Anyone? >> >> Thanks, >> >> Jesse Lawrence >> >> > I dont' know crap about mac osx but when you run the appserver (webware) > do you get output to the terminal? > > I've found watching what's going on there usually gives better > feedback then any tracebacks in the browser. > > If you are running from an interactive terminal see if you get more > informative error messages there, perhaps trouble parsing stylesheets > or something. > -Darryl > Ok, I know this will be long, but here's what the terminal is showing. Startup looks good, then you can see that I called localhost/WK/blog, then localhost/WK/admin: Jesse-Lawrences-Computer:~/software/syncato/webware jesselawrence$ ./AppServer --webware-path=/Users/jesselawrence/downloads/Webware-0.8.1/ --working-path=/Users/jesselawrence/software/syncato/webwareWebKit AppServer 0.8.1 part of Webware for Python Copyright 1999-2001 by Chuck Esterbrook. All Rights Reserved. WebKit and Webware are open source. Please visit: http://webware.sourceforge.net Process id is 501 Date/time is Thu May 27 19:51:07 2004 AutoReload = 0 AutoReloadPollInterval = 1 CheckInterval = 100 Host = 127.0.0.1 MaxServerThreads = 20 MinServerThreads = 5 PlugInDirs = ['/Users/jesselawrence/downloads/Webware-0.8.1'] PlugIns = [] Port = 8086 PrintConfigAtStartUp = 1 StartServerThreads = 10 Verbose = 1 ActivityLogColumns = ['request.remoteAddress', 'request.method', 'request.uri', 'response.size', 'servlet.name', 'request.timeStamp', 'transaction.duration', 'transaction.errorOccurred'] ActivityLogFilename = /Users/jesselawrence/software/syncato/webware/Logs/Activity.csv AdminPassword = ber$$bad CacheServletClasses = 1 CacheServletInstances = 1 ClearPSPCacheOnStart = 1 Contexts = {'blog': '../dist/servlets/restricted', 'default': '../dist/servlets/open', 'admin': '../dist/servlets/closed'} Debug = {'Sessions': 0} DirectoryFile = ['index', 'Index', 'main', 'Main'] DynamicSessionTimeout = 15 EmailErrorReportAsAttachment = 0 EmailErrors = 0 ErrorEmailHeaders = {'To': ['-@-.com'], 'Reply-to': '-@-.com', 'From': '-@-.com', 'Content-type': 'text/html', 'Subject': '[WebKit Error]'} ErrorEmailServer = mail.-.com ErrorLogFilename = /Users/jesselawrence/software/syncato/webware/Logs/Errors.csv ErrorMessagesDir = /Users/jesselawrence/software/syncato/webware/ErrorMsgs ExtensionCascadeOrder = ['.py', '.psp', '.html'] ExtensionsToIgnore = ['.pyc', '.pyo', '.py~', '.psp~', '.html~', '.bak', '.tmpl'] ExtensionsToServe = [] ExtraPathInfo = 1 FancyTracebackContext = 5 FilesToHide = ['.*', '*~', '*.bak', '*.tmpl', '*.config', '__init__.*', '*.pyc', '*.pyo'] FilesToServe = [] IgnoreInvalidSession = 1 IncludeFancyTraceback = 0 LogActivity = 0 MaxDynamicMemorySessions = 10000 MaxValueLengthInExceptionReport = 500 OldStyleActions = 0 PrintConfigAtStartUp = 1 RPCExceptionReturn = exception ReportRPCExceptionsInWebKit = 1 SaveErrorMessages = 1 SessionPrefix = None SessionStore = Dynamic SessionTimeout = 60 ShowDebugInfoOnErrors = 1 UnknownFileTypes = {'CheckDate': 1, 'Technique': 'serveContent', 'CacheContent': 0, 'ReuseServlets': 1} UseAutomaticPathSessions = 0 UseCascadingExtensions = 1 UserErrorMessage = The site is having technical difficulties with this page. An error has been logged, and the problem will be fixed as soon as possible. Sorry! Loading context: blog at /Users/jesselawrence/software/syncato/dist/servlets/restricted Loading context: admin at /Users/jesselawrence/software/syncato/dist/servlets/closed Loading context: default at /Users/jesselawrence/software/syncato/dist/servlets/open Current directory: /Users/jesselawrence/software/syncato/webware Session Sweeper started Plug-ins list: /Users/jesselawrence/downloads/Webware-0.8.1/COMKit, /Users/jesselawrence/downloads/Webware-0.8.1/MiddleKit, /Users/jesselawrence/downloads/Webware-0.8.1/MiscUtils, /Users/jesselawrence/downloads/Webware-0.8.1/PSP, /Users/jesselawrence/downloads/Webware-0.8.1/TaskKit, /Users/jesselawrence/downloads/Webware-0.8.1/UserKit, /Users/jesselawrence/downloads/Webware-0.8.1/WebUtils Loading plug-in: COMKit at /Users/jesselawrence/downloads/Webware-0.8.1/COMKit Plug-in /Users/jesselawrence/downloads/Webware-0.8.1/COMKit cannot be loaded because: Required op sys is ['nt'], but actual op sys is posix. Loading plug-in: MiddleKit at /Users/jesselawrence/downloads/Webware-0.8.1/MiddleKit Loading context: MKBrowser at /Users/jesselawrence/downloads/Webware-0.8.1/MiddleKit/WebBrowser Loading plug-in: MiscUtils at /Users/jesselawrence/downloads/Webware-0.8.1/MiscUtils Loading plug-in: PSP at /Users/jesselawrence/downloads/Webware-0.8.1/PSP Loading plug-in: TaskKit at /Users/jesselawrence/downloads/Webware-0.8.1/TaskKit Loading plug-in: UserKit at /Users/jesselawrence/downloads/Webware-0.8.1/UserKit Loading plug-in: WebUtils at /Users/jesselawrence/downloads/Webware-0.8.1/WebUtils Listening on ('127.0.0.1', 8086) Creating 10 threads.......... Ready (4.35 seconds after launch) 1 2004-05-27 19:52:57 /WK/blog 1 1.76 secs /WK/blog 2 2004-05-27 19:53:24 /WK/admin DB Style Init called http://www.xmldatabases.org/dbxsl DB Style Init called http://www.xmldatabases.org/weblog Init called/Users/jesselawrence/software/syncato/dist/stylesheets/layout.xsl:1: error: Memory allocation failed <xsl:stylesheet ^ /Users/jesselawrence/software/syncato/dist/stylesheets/layout.xsl:2: error: Extra content at the end of the document xmlns:xsl="http://www.w3.org/1999/XSL/Transform" ^ compilation error: file /Users/jesselawrence/software/syncato/dist/stylesheets/admin/edit.xsl element import xsl:import : unable to load /Users/jesselawrence/software/syncato/dist/stylesheets/layout.xsl style shutdown called[Thu May 27 19:53:24 2004] [error] WebKit: Error while executing script /Users/jesselawrence/software/syncato/dist/servlets/closed/Main.py Traceback (most recent call last): File "WebKit/Application.py", line 415, in dispatchRequest File "WebKit/Application.py", line 567, in handleGoodURL File "WebKit/Application.py", line 776, in respond File "WebKit/Transaction.py", line 105, in respond File "WebKit/HTTPServlet.py", line 38, in respond File "/Users/jesselawrence/software/syncato/dist/servlets/closed/Main.py", line 29, in respondToGet content = self.weblog.db.runTransform("<dummy/>", "admin/edit", "") File "../dist/scripts/lib/BaseDatabase.py", line 97, in runTransform style.freeStylesheet() AttributeError: 'NoneType' object has no attribute 'freeStylesheet' 2 0.96 secs /WK/admin It doesn't show any errors for /WK/blog. I'm just not certain what's happening here. Thanks, Jesse Lawrence |
From: darryl <dev...@cs...> - 2004-05-27 22:09:52
|
> > Still looking for clues. Anyone? > > Thanks, > > Jesse Lawrence > > I dont' know crap about mac osx but when you run the appserver (webware) do you get output to the terminal? I've found watching what's going on there usually gives better feedback then any tracebacks in the browser. If you are running from an interactive terminal see if you get more informative error messages there, perhaps trouble parsing stylesheets or something. -Darryl -- http://randomthoughts.vandorp.ca/WK/blog |
From: Jesse L. <law...@ya...> - 2004-05-27 21:22:24
|
darryl wrote: > Jesse Lawrence wrote: > >> Hello folks, >> >> I'm very interested in giving Syncato a try, but have come across a >> problem. I'm running it on Mac OS X Panther, using mod_webkit and >> the file-based database. >> >> When I look at http://localhost/WK/blog, I get: >> front-page >> >> And when I look at http://localhost/WK/admin, I get the following error: >> >> Traceback (most recent call last): >> >> File "WebKit/Application.py", line 415, in dispatchRequest >> File "WebKit/Application.py", line 567, in handleGoodURL >> File "WebKit/Application.py", line 776, in respond >> File "WebKit/Transaction.py", line 105, in respond >> File "WebKit/HTTPServlet.py", line 38, in respond >> File >> "/Users/jesselawrence/software/syncato/dist/servlets/closed/Main.py", >> line 29, in respondToGet >> content = self.weblog.db.runTransform("<dummy/>", "admin/edit", "") >> File "../dist/scripts/lib/BaseDatabase.py", line 97, in runTransform >> style.freeStylesheet() >> AttributeError: 'NoneType' object has no attribute 'freeStylesheet' >> >> I'm not really certain what's going on here. I've been playing >> around with the runTransform function, and it seems like there might >> be a problem importing a stylesheet, something like the following >> error: xsl:import : unable to load ../dist/stylesheets/layout.xsl >> >> Of course, I could be completely off base here. Has anyone got any >> suggestions or advice as to what the problem might be, and how to fix >> it? >> >> Thanks a million, >> >> Jesse Lawrence >> > Jesse, > > Are you saying that when you pull up > http://yourhost/WK/blog > > all you get is: > front-page Yes. Strange isn't it. > > ? > > If so, my guess is something is wrong with your config somewhere. The > file based database is easy > to get up and running. Is this a recent cvs checkout your trying out? > Well, it's not that easy!! (I'm by no means a newbie, either). I've gone through the whole configuration again, following the directions to a tee. No progress. Still looking for clues. Anyone? Thanks, Jesse Lawrence |
From: darryl <dev...@cs...> - 2004-05-27 01:12:56
|
Jesse Lawrence wrote: > Hello folks, > > I'm very interested in giving Syncato a try, but have come across a > problem. I'm running it on Mac OS X Panther, using mod_webkit and the > file-based database. > > When I look at http://localhost/WK/blog, I get: > front-page > > And when I look at http://localhost/WK/admin, I get the following error: > > Traceback (most recent call last): > > File "WebKit/Application.py", line 415, in dispatchRequest > File "WebKit/Application.py", line 567, in handleGoodURL > File "WebKit/Application.py", line 776, in respond > File "WebKit/Transaction.py", line 105, in respond > File "WebKit/HTTPServlet.py", line 38, in respond > File > "/Users/jesselawrence/software/syncato/dist/servlets/closed/Main.py", > line 29, in respondToGet > content = self.weblog.db.runTransform("<dummy/>", "admin/edit", "") > File "../dist/scripts/lib/BaseDatabase.py", line 97, in runTransform > style.freeStylesheet() > AttributeError: 'NoneType' object has no attribute 'freeStylesheet' > > I'm not really certain what's going on here. I've been playing around > with the runTransform function, and it seems like there might be a > problem importing a stylesheet, something like the following error: > xsl:import : unable to load ../dist/stylesheets/layout.xsl > > Of course, I could be completely off base here. Has anyone got any > suggestions or advice as to what the problem might be, and how to fix it? > > Thanks a million, > > Jesse Lawrence > Jesse, Are you saying that when you pull up http://yourhost/WK/blog all you get is: front-page ? If so, my guess is something is wrong with your config somewhere. The file based database is easy to get up and running. Is this a recent cvs checkout your trying out? -darryl -- http://randomthoughts.vandorp.ca/WK/blog |
From: Jesse L. <law...@ya...> - 2004-05-26 11:55:59
|
Hello folks, I'm very interested in giving Syncato a try, but have come across a problem. I'm running it on Mac OS X Panther, using mod_webkit and the file-based database. When I look at http://localhost/WK/blog, I get: front-page And when I look at http://localhost/WK/admin, I get the following error: Traceback (most recent call last): File "WebKit/Application.py", line 415, in dispatchRequest File "WebKit/Application.py", line 567, in handleGoodURL File "WebKit/Application.py", line 776, in respond File "WebKit/Transaction.py", line 105, in respond File "WebKit/HTTPServlet.py", line 38, in respond File "/Users/jesselawrence/software/syncato/dist/servlets/closed/Main.py", line 29, in respondToGet content = self.weblog.db.runTransform("<dummy/>", "admin/edit", "") File "../dist/scripts/lib/BaseDatabase.py", line 97, in runTransform style.freeStylesheet() AttributeError: 'NoneType' object has no attribute 'freeStylesheet' I'm not really certain what's going on here. I've been playing around with the runTransform function, and it seems like there might be a problem importing a stylesheet, something like the following error: xsl:import : unable to load ../dist/stylesheets/layout.xsl Of course, I could be completely off base here. Has anyone got any suggestions or advice as to what the problem might be, and how to fix it? Thanks a million, Jesse Lawrence |
From: darryl <dev...@cs...> - 2004-05-18 19:15:13
|
Thinking outloud: The ability to key off of the post title greatly reduces the cruft of the url's of syncato. However, the ability to drop the extension like .item or .page would be better (never satisfied is he?). So, how to do this? It seems to me we're testing the pathInfo to see if it's the front page and then using that to set the default template: frontPage = 0 # Determine whether this is the front page or not if (not(pathInfo) or pathInfo == "/" or pathInfo == ""): frontPage = 1 So if we have a pathInfo like: /my_silly_post With no extension we could also set a default 'item' template. Further to that since my longer titles are yielding unfriendly url's I was thinking of adding a <slug> or <url> to key off instead of the <title>. So: My_really_long_and_detailed_title Could be: detailed_title Of course the <url>'s would have to be database wide unique. -darryl -- http://randomthoughts.vandorp.ca/WK/blog |
From: Kimbro S. <ks...@xm...> - 2004-05-14 23:04:15
|
Look at importData.py. It accesses the DBXML database directly. It's designed to take a single XML file containing all the records and an XPath that is used to separate the file into individual records. You could make a /node() request through Syncato on the file database and store it into a single file with something like wget and then split it up again with /results/node(). Make sure nothing else has the DBXML database open when you do this. On May 14, 2004, at 1:12 PM, darryl wrote: > Kimbro, > > If you have a file based installation and want to migrate to DBXML how > would one go about doing that? > > Looking at db2files.py there does not seem to be an equivalent > files2db.py :) > > It seems to me that trying to convert them to DBXMl by POST-ing them > as new documents would get the ID numbers screwed up. If you PUT them > it looks for an existing record first. > > I'm sure I could temporarily hack it into the updateDocument function > by mucking around this section here: > > ---------------- > document = self.getRecordDocument(txn, recordID) > > # Make sure the ID is set on the new content > doc = XMLFragment(record) > root = doc.getRootElement() > root.setProp("id", str(recordID)) > ---------------- > > But I was wondering if I was missing something obvious. > -darryl > -- > http://randomthoughts.vandorp.ca/WK/blog > > > ------------------------------------------------------- > This SF.Net email is sponsored by: SourceForge.net Broadband > Sign-up now for SourceForge Broadband and get the fastest > 6.0/768 connection for only $19.95/mo for the first 3 months! > http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click > _______________________________________________ > Syncato-general mailing list > Syn...@li... > https://lists.sourceforge.net/lists/listinfo/syncato-general > > Kimbro Staken Software, Consulting and Writing http://www.xmldatabases.org/ |
From: darryl <dev...@cs...> - 2004-05-14 20:10:20
|
Kimbro, If you have a file based installation and want to migrate to DBXML how would one go about doing that? Looking at db2files.py there does not seem to be an equivalent files2db.py :) It seems to me that trying to convert them to DBXMl by POST-ing them as new documents would get the ID numbers screwed up. If you PUT them it looks for an existing record first. I'm sure I could temporarily hack it into the updateDocument function by mucking around this section here: ---------------- document = self.getRecordDocument(txn, recordID) # Make sure the ID is set on the new content doc = XMLFragment(record) root = doc.getRootElement() root.setProp("id", str(recordID)) ---------------- But I was wondering if I was missing something obvious. -darryl -- http://randomthoughts.vandorp.ca/WK/blog |
From: Kimbro S. <ks...@xm...> - 2004-05-11 21:45:12
|
Yes definitely. On May 11, 2004, at 2:12 PM, darryl wrote: > > Currently all entries in syncato are tagged with pubDate. > I think that it would be appropriate to add a modifiedDate > when an entry is modified. > > > -darryl > -- > http://randomthoughts.vandorp.ca/WK/blog > > > ------------------------------------------------------- > This SF.Net email is sponsored by Sleepycat Software > Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to > deliver higher performing products faster, at low TCO. > http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3 > _______________________________________________ > Syncato-general mailing list > Syn...@li... > https://lists.sourceforge.net/lists/listinfo/syncato-general > > Kimbro Staken Software, Consulting and Writing http://www.xmldatabases.org/ |
From: darryl <dev...@cs...> - 2004-05-11 21:09:57
|
Currently all entries in syncato are tagged with pubDate. I think that it would be appropriate to add a modifiedDate when an entry is modified. -darryl -- http://randomthoughts.vandorp.ca/WK/blog |
From: Peter A. <sp...@gm...> - 2004-05-11 20:17:16
|
Hello again, > crosspost from 'xml...@sl...' > > Hello, > > I've encountered some serious problem using dbxml / berkley-db and need > some > advice! [CUT REST OF MESSAGE] hopeless as I am, I've been working in many directions to get closer to the "Error: Dbc::Get : ..." why do I need an DBEnv() for my XmlContainer() anyway??? latest test on my addINdex problem on an XMLContainer without DBEnv (and so on without transaction / cache / or anything other who can cause such weird errors) my code is working. but again? what's about having a XmlContainer() WITH a DBEnv()??? thanks again Peter (=PA=) |
From: darryl <dev...@cs...> - 2004-05-11 18:44:27
|
darryl wrote: > darryl wrote: > >> darryl wrote: >> >>> darryl wrote: >>> >>>> darryl wrote: >>>> >>>>> >>>>>>> >>>>>>> Ok... well, I ended up using all client-side xslt & xpath for the >>>>>>> demo I had to do on Saturday. I will try to do some more >>>>>>> debugging, but since I can't reproduce this behaviour when I'm >>>>>>> driving libxml directly, I may just start using the libraries >>>>>>> themselves. >>>>>>> -- >>>>>>> >>>>>> It's unfortunate but it appears Kimbro is otherwise occupied. I >>>>>> looked, but dont' know the code well enough to do some serious >>>>>> debugging. >>>>>> Hopefully you can see something in your debugging attempts. >>>>>> >>>>>> cheers, >>>>>> darryl >>>>>> >>>>> FWIW, i don't know shit about debugging python extension modules in >>>>> python BUT when i ran python under gdb and ran the script i got: >>>>> >>> from Weblog import Weblog >>>>> >>> blog = Weblog('.') >>>>> Registering prefix syncato >>>>> >>> blog.handleRequest('//character','','','') >>>>> >>>>> Program received signal SIGSEGV, Segmentation fault. >>>>> [Switching to Thread 16384 (LWP 6013)] >>>>> 0x40d49980 in xmlReconciliateNs () from /usr/lib/libxml2.so.2 >>>>> (gdb) >>>>> >>>>> >>>>> -darryl >>>>> >>>> >>>> It seems to by crashing on this function call: >>>> >>>> result.reconciliateNs(doc.getDocument()) >>>> >>>> It also seems to only affect 501.xml,503.xml and 504.xml >>>> >>>> -darryl >>>> >>> >>> I commented out the above function call and it parses all your >>> documents fine. I have no idea what affect that will have, but there >>> you go... >>> >>> >>> -darryl >>> >> Ok this is getting fun now: >> >> >import libxml2 >> >doc = libxml2.parseFile('501.xml') >> >results = doc.xpathEval('//character') >> >for result in results: >> ... result.reconciliateNs(doc) >> ... >> Segmentation fault >> >> So it appears it's not syncato's fault. >> FWIW it's breaking on this: >> >> <character name="Ferraguto">Ferragù</character> >> >> It doesn't appear to like the "ù" >> -darryl > > > If you escape(?) the <character>Ferragù</character> > to > <character>Ferrag&ugrave;</character> > It seems to work fine. I, of course, have no idea > what you are trying to do.... > > ~darryl And for hopefully my final comment: If you set: libxml2.substituteEntitiesDefault(1) all is golden.... Help on function substituteEntitiesDefault in module libxml2: substituteEntitiesDefault(val) Set and return the previous value for default entity support. Initially the parser always keep entity references instead of substituting entity values in the output. This function has to be used to change the default parser behavior SAX::substituteEntities() has to be used for changing that on a file by file basis. ~darryl -- http://randomthoughts.vandorp.ca/WK/blog |
From: darryl <dev...@cs...> - 2004-05-11 17:53:35
|
darryl wrote: > darryl wrote: > >> darryl wrote: >> >>> darryl wrote: >>> >>>> >>>>>> >>>>>> Ok... well, I ended up using all client-side xslt & xpath for the >>>>>> demo I had to do on Saturday. I will try to do some more >>>>>> debugging, but since I can't reproduce this behaviour when I'm >>>>>> driving libxml directly, I may just start using the libraries >>>>>> themselves. >>>>>> -- >>>>>> >>>>> It's unfortunate but it appears Kimbro is otherwise occupied. I >>>>> looked, but dont' know the code well enough to do some serious >>>>> debugging. >>>>> Hopefully you can see something in your debugging attempts. >>>>> >>>>> cheers, >>>>> darryl >>>>> >>>> FWIW, i don't know shit about debugging python extension modules in >>>> python BUT when i ran python under gdb and ran the script i got: >>>> >>> from Weblog import Weblog >>>> >>> blog = Weblog('.') >>>> Registering prefix syncato >>>> >>> blog.handleRequest('//character','','','') >>>> >>>> Program received signal SIGSEGV, Segmentation fault. >>>> [Switching to Thread 16384 (LWP 6013)] >>>> 0x40d49980 in xmlReconciliateNs () from /usr/lib/libxml2.so.2 >>>> (gdb) >>>> >>>> >>>> -darryl >>>> >>> >>> It seems to by crashing on this function call: >>> >>> result.reconciliateNs(doc.getDocument()) >>> >>> It also seems to only affect 501.xml,503.xml and 504.xml >>> >>> -darryl >>> >> >> I commented out the above function call and it parses all your >> documents fine. I have no idea what affect that will have, but there >> you go... >> >> >> -darryl >> > Ok this is getting fun now: > > >import libxml2 > >doc = libxml2.parseFile('501.xml') > >results = doc.xpathEval('//character') > >for result in results: > ... result.reconciliateNs(doc) > ... > Segmentation fault > > So it appears it's not syncato's fault. > FWIW it's breaking on this: > > <character name="Ferraguto">Ferragù</character> > > It doesn't appear to like the "ù" > -darryl If you escape(?) the <character>Ferragù</character> to <character>Ferrag&ugrave;</character> It seems to work fine. I, of course, have no idea what you are trying to do.... ~darryl -- http://randomthoughts.vandorp.ca/WK/blog |