Re: [Zope] detect root.
Sin Hang Kin wrote: > > Hello, > > I ask about how to detect root in the list and Got three answer: > > > We're at the root folder > > You can go up from here > > > > > Title is Zope > > No title not zope > > > > root folder have not identity > > there is id > > > However, all of them fail working in virtual web with siteroot set. How can > I detect the root with or without siteroot? perhasp you can be more specific as to what _exactly_ you need? What do you intend to do with he information. that has a bearing on how you get it, and what form the result is in. Try this: You can go up from here : We're at the root folder: This works because: o URL0 is the root folder o URL1 is the page you are looking: at it always exists. o URL2 only exists if you are in a subfolder or sub-container If you are needing this to build a navigation system, this may or may not work fo ryou. You can look at the breadcrumbs howto, or wait a day or so untill a new one is posted by yours truly, using python. If all you need is the URL of the root folder, you can use Like i said, what you need it for, and how you need it determines how to get it. HTH, Bill ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] detect root.
Hello, I ask about how to detect root in the list and Got three answer: We're at the root folder You can go up from here Title is Zope No title not zope root folder have not identity there is id However, all of them fail working in virtual web with siteroot set. How can I detect the root with or without siteroot? Rgs, Kent Sin - kentsin.weblogs.com kentsin.imeme.net ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] FYI: Thank you
thank you, thank you, thank you. tomorrow will be a day o' exploring :) just out of curiosity - can a ZEO StorageServer now have multiple ZODB's? ~runyaga ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Zope Pgsql 7.0/SQL Schema HeLp!
This is going to be a long winded questions. Ok I have been hacking around with Zope and Pgsql for awhile now. I am trying to learn both at the same time, not any easy task, I don't know SQL that well. I learn by doing ,and this is really fun, kinda like a digital puzzle of sorts. So any way I set up a database in pgsql to hold contact information. This was no small task for me, like I said, I am new to SQL. I did discover a neat way to use CREATE VIEW foo AS SELECT that is not in the book though. Anyway the PRIMARY KEY for the table of names is a SERIAL type, all other tables such as phone numbers and addresses use REFERENCES to this KEY. The database works quite well, I think I have it normalize as much as need be (bare with me I am still learning). Now on to Zope I have Zope all set, and I can run all your standard SELECT, INSERT, UPDATE stuff. But I have one hitch, I can't seem to figure out how to make it so an end user could add a name and email address without knowing about the PKEY number. This is no problem for a DBA but I want to make it easy for anyone to INSERT and UPDATE records. Did I make a bad design choice in use unique numbers to glue all the tables together. Is this an interface problem. Am I missing something. I need some help. Can someone point me in the right direction please? Richard ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Zope.org membership
Can it be changed so that it remembers both my userid and password, or just my password? I usually remember who I am! -- Regards, Graham Chiu gchiucompkarori.co.nz http://www.compkarori.co.nz/index.php Powered by Interbase and Zope ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] SQLSession vs FSSession for ultra-high scalability and speed.
In article, J. Atwood <[EMAIL PROTECTED]> writes >As for the database, MySQL is hands down the fastest, but certainly not the most >robust in terms of features. Oracle is great if you have $10,000 and a full time >DBA but PostgreSQL 7.0 is really your best bet. You might also want to take the >money you were going to spend on the DB2 and put it right back into DB1 and >house everything there. Just get a beefy machine, RAID it up for redundancy and >call it a day. It may be the way I designed my site, but if the database serving SQLSessions had to be taken down for maintenance, my site became inaccessible. Based upon this experience, I would therefore now prefer to use different database engines for the main database and for the session tables. And since for sessions, all you really want is speed without any fancy SQL transactions, then MySQL for the session data seems an appropriate use. Session tables wouldn't have to be too big as you could run ZScheduler to remove expired sessions. -- Regards, Graham Chiu gchiucompkarori.co.nz http://www.compkarori.co.nz/index.php Powered by Interbase and Zope. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] ZTopics and Zope2.2.0a1 don't mix
Just thought I would let people know that ZTopics 1.0 and the Zope 2.2.0 alpha (and the CVS version of Zope it appears) do not play nice together. As long as you use standard zope item properties, or non-ZClass objects, it works fine. However, try to use any ZClass items and 'additional' properties, and it fails on an attribute error regardin 'Vocabulary'. Process: o Create catalog, call it 'Catalog' o Give a DTML Document a property of 'TopicName', value of 'Testing' o Add the property to the index and metadata tables in the catalog o Add the DTML Document to the catalog (via find) o Create A ZTopic give it a search for 'Testing' (with quotes!) in the TopicName field o Look at your ZTopic. it should appear fine. o Now create a ZClass, inherit from 'ZCatalog: CatalogAware' o Give it an index_html method to see something when you look at it (optional) o Give it a propertysheet, and a property 'TopicName' o Create an instance of your ZClass, make sure it has 'Testing' as the value for TopicName. o Now look at your ZTopic. All will not be well; it will gripe about the Vocabulary. o Now change the query to meta_type, and for whatever your ZClass' metatype is Now look at your ZTopic folder, all should be well. If anyone has a fix, I would appreciate it (and am sure Amos would accept a patch, I am looking into that part of it myself, but have gotten a bit turned around and may have to shelve it for the night :-( ). Bill Anderson ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
RE: [Zope] Calling External Method...
> > DTML Method that calls the External Method: > > > > > > Geez, this is a pretty bad idea security-wise. Your xCGI Python function has a docstring and is therefore web-callable, so basically you're letting anyone who can access your Zope instance run any program on your server by passing it in as the cmdLine, e.g. http://yourserver/ExecCGI?cmdLine=rm%20-rf%20*. I know that's not your problem right now, but you should reconsider this decision at some point. > /usr/local/Zope/lib/python/Products/ExternalMethod/ExternalMethod.py, > line 248, in __call__ > (Object: ExecCGI) > (Info: (('./websim',), {}, None)) > File /usr/local/Zope/Extensions/ExecCGI.py, line 11, in xCGI > TypeError: (see above) I *think* this error message is telling you that it can't format the status code as an integer in your raise statement. Why don't you take out your status checking code and see what happens. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Calling External Method...
I am trying to invoke a C++ program from an external method. Platform is Linux. The C++ program returns HTML. Note that the Python function is working properly from the Python command line; That is, ExecCGI.xCGI("./websim") outputs all the expected html. I have placed the C++ program in the same folder as the ExecCGI module. The C++ program works from apache: here's an example of the program's output, which is what I'm trying to get into Zope: http://63.203.42.146/cgi-bin/websim ExecCGI module: import sys, os, string def xCGI( cmdLine ): """ Run an external command and return its standard output as a string. """ f = os.popen( cmdLine ) lines = f.readlines() status = f.close() if status: raise "CGI returned error: %d" % status[1] return string.join( lines ) External Method that calls the C++ program: Id ExecCGI Title Test Function name xCGI Python module file (without suffix) ExecCGI DTML Method that calls the External Method: Traceback: Traceback (innermost last): File /usr/local/Zope/lib/python/ZPublisher/Publish.py, line 214, in publish_module File /usr/local/Zope/lib/python/ZPublisher/Publish.py, line 179, in publish File /usr/local/Zope/lib/python/Zope/__init__.py, line 202, in zpublisher_exception_hook (Object: ElementWithAttributes) File /usr/local/Zope/lib/python/ZPublisher/Publish.py, line 165, in publish File /usr/local/Zope/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: TestWS) File /usr/local/Zope/lib/python/ZPublisher/Publish.py, line 102, in call_object (Object: TestWS) File /usr/local/Zope/lib/python/OFS/DTMLMethod.py, line 150, in __call__ (Object: TestWS) File /usr/local/Zope/lib/python/DocumentTemplate/DT_String.py, line 502, in __call__ (Object: TestWS) File /usr/local/Zope/lib/python/DocumentTemplate/DT_Let.py, line 145, in render (Object: cmdLine="'./websim'") File /usr/local/Zope/lib/python/DocumentTemplate/DT_Util.py, line 335, in eval (Object: ExecCGI(cmdLine)) (Info: ExecCGI) File , line 0, in ? File /usr/local/Zope/lib/python/Products/ExternalMethod/ExternalMethod.py, line 248, in __call__ (Object: ExecCGI) (Info: (('./websim',), {}, None)) File /usr/local/Zope/Extensions/ExecCGI.py, line 11, in xCGI TypeError: (see above) File Permissions in /usr/local/Zope/Extensions/: -rwxr-xr-x 1 ewalstad users 318 May 20 17:31 ExecCGI.py -rw-r--r-- 1 ewalstad users 576 May 20 17:03 ExecCGI.pyc -rwxr-xr-x 1 ewalstad users 336081 May 20 17:13 websim Any help is GREATLY appreciated! Thanks, Eric. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Apache mod_rewrite module...
Pierre Rougier wrote: > > Hi, > > well... I do not know if this is the place to ask it, but... > I use two servers... ZServer and apache > > My URL references to Apache > example: > http://margo.pla.fr/intra/machin.html > > and I want to use httpd.conf to transform it (only for html and htm > files) > in > > http://margo.pla.fr/intra/?machin.html (which is my ZServer) > > Does someone know the rewrite I sould use regular expression are a > mistery for me does "intra" represent that it should be represented by zserver? if so, RewriteRule ^/intra/(.*)htm /intra/?$1htm RewriteRule ^/intra/(.*)html /intra/?$1html should do the trick. http://www.apache.org/docs-1.2/mod/mod_rewrite.html has more information. hope that helps, ~mindlace @ imeme & digicool ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] SQLSession vs FSSession for ultra-high scalability andspeed.
Hi Chas, Let me give it a try (or just dump all of what I know). First of all it looks like you are going to want ZEO. If you don't know ZEO, get to know ZEO, it fits perfectly with what you want for the frontline servers. As for the SQLSessions. Since there is a lot of writing in SQLSessions I would suggest that you stick to the RDBMS model, Zope can handle it, but SQL can handle it better and if you are already planning on putting a DB behind the Zope installation it will really not take that much more (if anything) to add session information. You might, however, depending on time, want to invest a little in playing around with your own SQL code to handle session data. There are factors like Zope's ability to cache that you will want to take full advantage of. As for the database, MySQL is hands down the fastest, but certainly not the most robust in terms of features. Oracle is great if you have $10,000 and a full time DBA but PostgreSQL 7.0 is really your best bet. You might also want to take the money you were going to spend on the DB2 and put it right back into DB1 and house everything there. Just get a beefy machine, RAID it up for redundancy and call it a day. Take a look at some of the benchmarks I ran for an idea of what you can do with a plain ole RH 6.1 box and PostgreSQL. http://www.zope.org/Members/BwanaZulia/zope_benchmarks/benchmarks.html The other idea that I have been playing around with in terms of redundancy is to build something into the Zope code for the ZSQL Methods that can go into a "cached" mode if your database dies. I have only begun to play with this, but in theory since, Zope can cache all your common data that comes from SQL you could, in effect, bring down the SQL database and have Zope continue to work with the cached data. I think all that it would involve (and I am sure that I am simplifying the hell out of this) is to have Zope know that the SQL database is no longer there (look for an error) and just turn the "Maximum time (seconds) to cache results" to unlimited until the database was restored. Has anyone else thought about this or played with this idea? Ok.. that is enough... Cheers, J >Sorry if this has been asked before, but can anybody >advise on FSSession vs SQLSession for: > >a) Speed. >b) Scalability. > >Planned architecture employs multiple Zope/Apache >frontline servers: > >+-+ >| Z/A |---+ >+-+ | > | >+-+ | >| Z/A |---+ +- DB1 >+-+ | | > |--| >+-+ | | >| Z/A |---+ +- DB2 (optional) >+-+ | > | > | > Etc, etc. > >Z/A = 'front line' webservers running Zope/Apache. > Contains application/business logic. > We are NOT using the ZODB for data storage. > >DB1 = Data storage. eg. Oracle/Postgres > >DB2 = potentially just for managing the sessions, if > we use SQLSession. Would MySQL be best ? > > >Just how scalable can it really get ? We need it to at least >be able to scale to 12 million sessions per day (and substant- >-ially more writes to DB1 per day), even if we will be starting >out much more modestly than that. Realistically, should I be >looking at something like ATG Dynamo instead ? > >Thank you very much, > >chas > >___ >Zope maillist - [EMAIL PROTECTED] >http://lists.zope.org/mailman/listinfo/zope >** No cross posts or HTML encoding! ** >(Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] FYI: Latest gem appears in CVS
Paul Everitt wrote: > > Howdy folks. As mentioned previously, a gem is ready to appear in CVS: > mountable databases. Am I correct in thinking this are ready to appear, but not _in_ CVS yet? I've been looking for the last 15 minutes with no luck, though the history tab is certainly there! :-) Bill ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] FYI: Latest gem appears in CVS
Paul Everitt wrote: > Howdy folks. As mentioned previously, a gem is ready to appear in CVS: > mountable databases. snip >If you want to send thanks, send them to Jim Fulton and Shane Hathaway. >From the way this sounds, I need to go update the "DevTestProd" page in the "HighAvailabilityZope" ZWikki, because DC has just answered about 95% of the questions posted there! I think it was John Cleese (as Robin Hood) in Time Bandits, who said it best (upon receiving a bountiful treasure in contribution to the cause) when he stated, "Thank you very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, much." Can't wait to try it, Jerry S. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] SQLSession vs FSSession for ultra-high scalability and speed.
Hi Folks, Sorry if this has been asked before, but can anybody advise on FSSession vs SQLSession for: a) Speed. b) Scalability. Planned architecture employs multiple Zope/Apache frontline servers: +-+ | Z/A |---+ +-+ | | +-+ | | Z/A |---+ +- DB1 +-+ | | |--| +-+ | | | Z/A |---+ +- DB2 (optional) +-+ | | | Etc, etc. Z/A = 'front line' webservers running Zope/Apache. Contains application/business logic. We are NOT using the ZODB for data storage. DB1 = Data storage. eg. Oracle/Postgres DB2 = potentially just for managing the sessions, if we use SQLSession. Would MySQL be best ? Just how scalable can it really get ? We need it to at least be able to scale to 12 million sessions per day (and substant- -ially more writes to DB1 per day), even if we will be starting out much more modestly than that. Realistically, should I be looking at something like ATG Dynamo instead ? Thank you very much, chas ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] RE: Generate edito form from dtmlDocument : property type
I think the general idea of automating html generation for data entry web forms is a very good one, but IMHO it's heroic to even think about doing this sort of stuff in dtml!! (This discussion probably should be moved to zope-dev?) I've got something which generates useful DTML and ZSQL code automagically from ZClass BASIC propertysheet contents and so can be used to do the grunt work for making zclass add and edit methods. It generates ZSQL code which is only tested for the sybaseda but would be relatively easy to tweak for other DA's It uses a single python external method - have a look at http://www.zope.org/Members/rossl/ZClassExtender for an example of what's possible...feel free to extend it?!! Sin Hang Kin wrote: > I have the method form_dtmlDocument which generate the data entry form from > an existing dtmldocument, How can I determine the type of the properties? > Moreover, if the property is expected as list, how can I convert it into > multiple input tag? -- Dr Ross Lazarus Associate Professor and Sub-Dean for Information Technology Faculty of Medicine, Room 126A, A27, University of Sydney, Camperdown, NSW 2006, Australia Tel: (+61 2) 93514429 Mobile: +61414872482 Fax: (+61 2) 93516646 Email: [EMAIL PROTECTED] ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] FYI: Latest gem appears in CVS
>From someone who has lobbied for this feature and greatly looks forward to using it... Woohoo!!! Thanks Jim. Thanks Shane. This is greatly appreciated. Jimmie Houchin > Paul Everitt [EMAIL PROTECTED] on > Sat, 20 May 2000 18:40:30 -0400 wrote: > > Howdy folks. As mentioned previously, a gem is ready to appear in CVS: > mountable databases. > > What are these? I'll answer with a question. Ever want to have your > data segregated into multiple Data.fs files? Ever want to have some of > your object data in the regular FileStorage, some in a Berkeley storage > for no undo, some in some mythical forthcoming RelationalStorage, etc.? > Or perhaps you want to segregate your data for other reasons. > > This is mountable databases, and it's running on Zope.org right now. > We're doing it to have Wikis that don't get pack, to let us see > historical information. If you want to send thanks, send them to Jim > Fulton and Shane Hathaway. > > But how would we see the historical information, since Zope doesn't do > CVS-like things? Those of you on zope-checkins might have seen this > today: > > """ > Message: 4 > Date: Sat, 20 May 2000 12:07:08 -0400 > From: Jim Fulton <[EMAIL PROTECTED]> > To: [EMAIL PROTECTED] > Subject: [Zope-Checkins] CVS: Zope2 - History.py:1.1 history.dtml:1.1 > historyCompare.dtml:1.1 ndiff.py:1.1 DTMLMethod.py:1.45 > > Update of /cvs-repository/Zope2/lib/python/OFS > In directory > korak.digicool.com:/projects/users/jim/Historical/lib/python/OFS > > Modified Files: > DTMLMethod.py > Added Files: > History.py history.dtml historyCompare.dtml ndiff.py > Log Message: > Added the ability to browse, compare, and revert to historical revisions > for DTML methods and documents > """ > > Sure enough, I updated my CVS and saw a "History" tab. Fun stuff, and > something that's been a long, long time request from the community. Jim > did this in his spare time, so he gets 100% of the credit. > > --Paul ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] FYI: Latest gem appears in CVS
Paul Everitt wrote: > > Howdy folks. As mentioned previously, a gem is ready to appear in CVS: > mountable databases. ...and there was much rejoicing. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] FYI: Documentation
One other thing I'd like to point out. Have any of you looking at the latest-greatest Zope poked around in the help system? One thing you might note is the excellent API documentation Michel Pelletier has been doing, hooked up to Amos' help system. Browseable, searchable API documentation. Thanks Michel! --Paul ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] FYI: Latest gem appears in CVS
Howdy folks. As mentioned previously, a gem is ready to appear in CVS: mountable databases. What are these? I'll answer with a question. Ever want to have your data segregated into multiple Data.fs files? Ever want to have some of your object data in the regular FileStorage, some in a Berkeley storage for no undo, some in some mythical forthcoming RelationalStorage, etc.? Or perhaps you want to segregate your data for other reasons. This is mountable databases, and it's running on Zope.org right now. We're doing it to have Wikis that don't get pack, to let us see historical information. If you want to send thanks, send them to Jim Fulton and Shane Hathaway. But how would we see the historical information, since Zope doesn't do CVS-like things? Those of you on zope-checkins might have seen this today: """ Message: 4 Date: Sat, 20 May 2000 12:07:08 -0400 From: Jim Fulton <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: [Zope-Checkins] CVS: Zope2 - History.py:1.1 history.dtml:1.1 historyCompare.dtml:1.1 ndiff.py:1.1 DTMLMethod.py:1.45 Update of /cvs-repository/Zope2/lib/python/OFS In directory korak.digicool.com:/projects/users/jim/Historical/lib/python/OFS Modified Files: DTMLMethod.py Added Files: History.py history.dtml historyCompare.dtml ndiff.py Log Message: Added the ability to browse, compare, and revert to historical revisions for DTML methods and documents """ Sure enough, I updated my CVS and saw a "History" tab. Fun stuff, and something that's been a long, long time request from the community. Jim did this in his spare time, so he gets 100% of the credit. --Paul ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Memory creep
We have been having the problem with memory usage creeping slowly upward that I've seen reported by several others in this list. I read several of the threads on this topic in the archives but, though there were a lot of theories floated, no firm conclusions seemed to be drawn. Like the others, memory usage as reported by 'free' on the '-/+ buffers/cache' line creeps steadily upward until the site crashes. Restarting Zope frees most of the memory. We're running RedHat Linux 6.1, on a dual- 550M processor box with 256Mb of memory, Zope 2.1.4 using Apache, mod-ssl and PCGI, ZMySqlDA 1.1.3. The ZODB holds only non-dynamic data, all user data is kept in the MySQL data base. I tried testing on our development server while no one else was accessing the site with the 'free' utility displaying memory use every 5 seconds in an attempt to find out what activity caused memory usage to creep upward without coming back down. To cut to the chase, I seem to have narrowed it down to access to the MySQL database from multiple threads. As it happens, we have a very thin client piece that can access the server through http outside the browser. Most use of the site is through a browser, but this small client checks with the server occasionally for scheduled tasks when the browser isn't up. In some cases, access through the browser will use a plug-in to trigger the client to check immediately rather than waiting for its infrequent poll interval. After an afternoon of testing, I discovered that, with no one else accessing the site, I could access pages as fast as I was able through the browser only (no client) or from the client only (sped up to poll every few seconds) with no memory creep. But when both were running at once (as they normally do), the memory usage would slowly creep up. Other details: Letting the client poll and query the MySQL database frequently while using the browser to access only pages that did NOT access the DB resulted in no creep. Having two people simultaneously access pages that DID access the database without the client running on either machine DID cause memory creep. Having two people access pages that did NOT access the database without the client running did NOT cause memory creep. Looks to me like there is a memory leak when ZMySQLDA is accessed from multiple threads. Anyone have any ideas on where I could go to pin this down further?
[Zope] yet another LOCAL FS question
I want to use this: but have the images placed into a folder in Apache. Can I send them directly? I have a local fs in the same folder as the above doc, should i send the images there, will the really end up in Apache? ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Refresh adds objects to Add list again
Hi, I'm working with a very simple Product. Whenever I Refresh it, it shows up an additional time in the Add list. Is this expected behavior? I don't think I'm doing anything odd at all in the __init__.py or in the product itself. The __init__.py consists of basically just a single context.registerClass... Kevin http://www.byproducts.com - Humor and Novelties ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Using ReportLab with Zope
In article <01bfc278$7c017e80$[EMAIL PROTECTED]>, Richard Folwell <[EMAIL PROTECTED]> writes On the reportlab site we have several pages which can be viewed as PDF. The PDF & HTML versions are generated in parallel from a common source by a python script. I guess you can get a pythonmethod to run over your existing documents and produce PDF versions provided you can parse the DTML or some major subset of it. You would also need to add the generated PDF document into the ZODB database and modify the DTML to contain a reference to the generated PDF. ReportLab doesn't use Zope , but I have some experience with it. >To sound out what, if anything, other people are doing in this area: > >I am interested in using ReportLab with Zope, to provide an improved printed >version of >web-published documents. What I want to do is fairly straightforward, to create >a PDF file with: > > - a title/cover page with control information > - a table of contents > - the body of the document, with a technical document style header and footer >(title, docref, >revision, date, page x of numpages, etc) > >Indexing would be nice, but that involves much more complexity and is outside >the scope of what I >need right now. > >Currently I have documents published from Zope, sourced either as HTML (DTML >documents) or XML, with >the intention to also produce documents whose content will come mostly from a >database (clearly >straightforward in Zope). > >I think what I need to do is find some way of re-directing the output from Zope >(what would normally >go to the browser) to an external program, which uses ReportLab to generate the >PDF file from the >HTML stream, and returns the location of the file to Zope to pass to the browser >as a re-direct (so >the browser gives the user the option to view or download the PDF file). > >Is this correct? Is anyone already working in this direction? Any hints or >tips? > >Richard > > > >___ >Zope maillist - [EMAIL PROTECTED] >http://lists.zope.org/mailman/listinfo/zope >** No cross posts or HTML encoding! ** >(Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope-dev ) > -- Robin Becker ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Using ReportLab with Zope
To sound out what, if anything, other people are doing in this area: I am interested in using ReportLab with Zope, to provide an improved printed version of web-published documents. What I want to do is fairly straightforward, to create a PDF file with: - a title/cover page with control information - a table of contents - the body of the document, with a technical document style header and footer (title, docref, revision, date, page x of numpages, etc) Indexing would be nice, but that involves much more complexity and is outside the scope of what I need right now. Currently I have documents published from Zope, sourced either as HTML (DTML documents) or XML, with the intention to also produce documents whose content will come mostly from a database (clearly straightforward in Zope). I think what I need to do is find some way of re-directing the output from Zope (what would normally go to the browser) to an external program, which uses ReportLab to generate the PDF file from the HTML stream, and returns the location of the file to Zope to pass to the browser as a re-direct (so the browser gives the user the option to view or download the PDF file). Is this correct? Is anyone already working in this direction? Any hints or tips? Richard ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Fw: ZTopics and Canned Queries
Shalabh Chaturvedi wrote: > What I want to do is create: (creator : creatorName) > And use http://url/FilterCreator?creatorName=shalabh > > Currently ZTopic does not allow me to create an object like above as it tries > to evaluate the query at creation time. > > I have modified my local copy of ZTopics to do what I need. Now I have an extra > checkbox that allows creation of 'parameterized' ZTopics. When it is checked, > caching is turned off and REQUEST is also looked up during construction of the > query at run time. > > Does anyone else find this useful? I know this product is unsupported but is it > possible (or worth it) to submit this as a patch? > Are there other products that might achive the same (any kind of 'search > objects' or 'canned queries')? This sounds interesting. How would this end up being different from doing a ZCatalog search, though? In any case, You probably want to submit a patch to Amos Latteier ([EMAIL PROTECTED]). HTH, Michael Bernstein. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] detect root folder
> Just don't give any other folders the title of 'Zope' Hmm, this is better(tm): The root folder has no identity!!"> sweet"> You could always do a "id == '' and title == 'Zope'", but I don't think that's necessary. -Morten (0.01$) =) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] detect root folder
+[ Morten W. Petersen ]- | > | > We're at the root folder | > | > You can go up from here | > | > | | I think the root folder has the title Zope too, so: | | | | | | Just don't give any other folders the title of 'Zope' -- Totally Holistic Enterprises Internet| P:+61 7 3870 0066 | Andrew Milton The Internet (Aust) Pty Ltd | F:+61 7 3870 4477 | ACN: 082 081 472 | M:+61 416 022 411 | Carpe Daemon PO Box 837 Indooroopilly QLD 4068|[EMAIL PROTECTED]| ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] detect root folder
> > We're at the root folder > > You can go up from here > > I think the root folder has the title Zope too, so: -Morten (0.01$) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] How to use WebDAV?
Hi Richard, Richard Folwell wrote: > > I am trying to use WebDAV (so far under Win98). > > IE5/File/Open(check "Open as Web Folder") - "http://localhost:8080" > > So far so good. IE5 opens a folder with the Zope files and folders visible, and I >can navigate > through the folders. However it is not clear how to work with files. >Right-clicking on a file > gives potentially useful options to Open or Send To. Open simply renders the file >as if served > normally through Zope, Send To does nothing - I tried sending to a plain text editor >(PFE), my > favorite HTML editor (CoffeeCup) and NotePad. Nothing happens. > > What am I doing wrong? You are exploring the "wonderful world" of windows ;-) IE5 WebDAV is buggy and (like the ftp-mode) unintelligent implemented. (who wonders...) So you cant do the obvious things as to send files to the appropriate tools, you cant use sessions (because IE wont send cookies when using "open as webfolder" You may probably notice a major slowdown on the whole system, if your "open as webfolder" is the first action with authorisation on the site with IE. So you have to always "log in" before open as webfolder. But you can drag and drop files into the open folder. At least this works :-) This is helpful for putting downloadable file, images into a zope folder. Regards Tino Wildenhain ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] detect root folder
Sin Hang Kin wrote: > > Hi, > > Is it possible to detect the top folder in dtml? > > I means I would like to prevent squishdot to show the ../ when it is already > in the top level. We're at the root folder You can go up from here -- Steve Alexander Software Engineer Cat-Box limited ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] SiteAccess smashes 'REQUEST.resolve_url(...)' in DTML ?
Hi! On Fri, 19 May 2000, Evan Simpson wrote: > From: Martin Grönemeyer <[EMAIL PROTECTED]> > > Error Type: ValueError > > Error Value: Different namespace. > > REQUEST.resolve_url requires that the URL you pass to it begins with > REQUEST.script Oops! Can you tell more details on this? What is REQUEST.script? I'm asking this becasue my mod_pcgi2 Apache module screws SCRIPT environment variable, and screws it by purpose! Oleg.(All opinions are mine and not of my employer) Oleg Broytmann Foundation for Effective Policies [EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] detect root folder
Hi, Is it possible to detect the top folder in dtml? I means I would like to prevent squishdot to show the ../ when it is already in the top level. Rgs, Kent Sin - kentsin.weblogs.com kentsin.imeme.net ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] I _still_ need help on ZClasses and manage_clone
On Wed, May 17, 2000 at 12:16:15PM -0700, Erik Stephens wrote: > I think a lot of people, myself included, have had problems trying to > clone objects inside of new ZClass instances. Thank you. I just need to add a page after creation of the instance, but before the addition of the objects. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] I _still_ need help on ZClasses and manage_clone
On Tue, May 16, 2000 at 06:36:19PM +0200, Heiko Stoermer wrote: > still I don't see why you would use an external method for the functions > below. Because I need the imaging library, and I happen to like python. > When I started zoping, I did far too much in external methods because I > didn't know that DTML does it too. I also didn't find a decent edit-through-ftp solution for DTML (no I ain't gonna learn emacs, no way), though the zopeshell script brings me halfway there. > Maybe this helps, because I think you have a structural problem in your > product. I was an undocumented feature, that could be mentioned on the ZQR. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] How to use WebDAV?
I am trying to use WebDAV (so far under Win98). IE5/File/Open(check "Open as Web Folder") - "http://localhost:8080" So far so good. IE5 opens a folder with the Zope files and folders visible, and I can navigate through the folders. However it is not clear how to work with files. Right-clicking on a file gives potentially useful options to Open or Send To. Open simply renders the file as if served normally through Zope, Send To does nothing - I tried sending to a plain text editor (PFE), my favorite HTML editor (CoffeeCup) and NotePad. Nothing happens. What am I doing wrong? Thanks, Richard ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Zope/Apache Image Catalog
Tom Scheidt wrote: > > Hi > > I want to be able to upload images into a folder on Apache using > a form page in Zope, and at the same time have the ids cataloged > with keywords into a ZCatalog. Basically, to be able to search on > keywords and have the related images displayed on a page. > > Does anyone have any recommendations, or know of any > examples of this? Thanks in advance. What follows is a terse answer explaining how I'd go about it, but giving no information about how to accomplish each of the steps. sorry I can't offer any more right now. Hope it helps. Create a ZClass that represents the metadata of your image objects -- that is, Path to the image on Apache Keywords Each time someone enters an image, save the image via LocalFS to a filesystem folder accessible from Apache, and create an instance of your metadata ZClass. Your metadata ZClass should derive fom CatalogAware. -- Steve Alexander Software Engineer Cat-Box limited ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Generate edito form from dtmlDocument : property type
Hello, I have the method form_dtmlDocument which generate the data entry form from an existing dtmldocument, How can I determine the type of the properties? Moreover, if the property is expected as list, how can I convert it into multiple input tag? CODE : form_dtmlDocument : " value="" size="50"> Rgs, Kent Sin - kentsin.weblogs.com kentsin.imeme.net ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] : generic adddtmlDocument method need to find extra form data type
Hello, I have make the method for adding a dtml-document to the current folder with additional data as properties, However, I can not determine the type of the data, the type information I put in the form :date is removed by zope. (also, zope display an ugly debug screen if the data type is wrong), HOW can I get control of the data type? the code is below, I have manually make all data to string. CODE : add_dtmlDocument This method add a dtml-document to the current folder or to what folder point to If no id is found in REQUEST one is generated, the title, data is set to the title and data of the DTML document. all other data from the form including those hidden data, is set as properties of the dtmldocument Rgs, Kent Sin - kentsin.weblogs.com kentsin.imeme.net ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Zclass unaware of refreshable base class?
I derived a small ZClass ("ZTest") from the Python class "Renderable" (made it refreshable) and made some minor modifications to "Renderable". After that I reloaded "Renderable", but the derived Class "ZTest" which uses a method from "Renderable" did not see the change and still used the old Version of "Renderable". Is there a way to fix that? -- Tom Schwaller http://www.linux-magazin.de/ http://www.linux-community.de ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )