Re: [Zope] Bizarre new problem...
I suspect this is coming from MySQLdb. From the Python DB-API spec: OperationalError Exception raised for errors that are related to the database's operation and not necessarily under the control of the programmer, e.g. an unexpected disconnect occurs, the data source name is not found, a transaction could not be processed, a memory allocation error occurred during processing, etc. It must be a subclass of DatabaseError. .frm files seem to be table data containers for MySQL. You should try operating on your database outside of Zope to see if you can reproduce the problem. Curtis Maloney wrote: > > Green things, > > I've had a site in development (almost ready to deploy) and in testing for > some time. I just went to go through another test run, when a previously > working page suddenly generated the following error: > > Error Type: OperationalError > Error Value: (1017, "Can't find file: > './service/return.frm' (errno: 13)") > > > > I looked at the traceback, and it appeared to be coming from a particular SQL > method. I tried testing the method, same problem. I tried another SQL > method. Same again. > > Ok, so I looked into it further, and checked a previous install. I can't > find ANY *.frm files in either zope tree. > > The only event to day which occurred which might have possibly corrupted > files was when i had to reset due to Netscape (eternal be their pain) chewed > up all my memory (AGAIN!) and I had to resort to power cycling the computer, > since it still hadn't responded to my 'kill this annoyingly stupid app' > keystrokes by the time i'd got back from lunch. > > However, on bootup, the fsck did not find any problems on the disc, so I felt > reasonably safe. > > Any ideas? PLEASE? > > Installation: > > RedHat 6.1 > Zope 2.1.6 (from src) > > Have a better one, > Curtis. > > Traceback (innermost last): > File /usr/local/Zope-2.1.6-src/lib/python/ZPublisher/Publish.py, line 214, > in publish_module > File /usr/local/Zope-2.1.6-src/lib/python/ZPublisher/Publish.py, line 179, > in publish > File /usr/local/Zope-2.1.6-src/lib/python/Zope/__init__.py, line 202, in > zpublisher_exception_hook > (Object: sqlGetRADetails) > File /usr/local/Zope-2.1.6-src/lib/python/ZPublisher/Publish.py, line 165, > in publish > File /usr/local/Zope-2.1.6-src/lib/python/ZPublisher/mapply.py, line 160, > in mapply > (Object: manage_test) > File /usr/local/Zope-2.1.6-src/lib/python/ZPublisher/Publish.py, line 102, > in call_object > (Object: manage_test) > File /usr/local/Zope-2.1.6-src/lib/python/Shared/DC/ZRDB/DA.py, line 331, > in manage_test > (Object: sqlGetRADetails) > File /usr/local/Zope-2.1.6-src/lib/python/Shared/DC/ZRDB/DA.py, line 312, > in manage_test > (Object: sqlGetRADetails) > File /usr/local/Zope-2.1.6-src/lib/python/Shared/DC/ZRDB/DA.py, line 430, > in __call__ > (Object: sqlGetRADetails) > File /usr/local/Zope-2.1.6-src/lib/python/Products/ZMySQLDA/db.py, line > 173, in query > OperationalError: (see above) > > ___ > 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 )
[Zope] Bizarre new problem...
Green things, I've had a site in development (almost ready to deploy) and in testing for some time. I just went to go through another test run, when a previously working page suddenly generated the following error: Error Type: OperationalError Error Value: (1017, "Can't find file: './service/return.frm' (errno: 13)") I looked at the traceback, and it appeared to be coming from a particular SQL method. I tried testing the method, same problem. I tried another SQL method. Same again. Ok, so I looked into it further, and checked a previous install. I can't find ANY *.frm files in either zope tree. The only event to day which occurred which might have possibly corrupted files was when i had to reset due to Netscape (eternal be their pain) chewed up all my memory (AGAIN!) and I had to resort to power cycling the computer, since it still hadn't responded to my 'kill this annoyingly stupid app' keystrokes by the time i'd got back from lunch. However, on bootup, the fsck did not find any problems on the disc, so I felt reasonably safe. Any ideas? PLEASE? Installation: RedHat 6.1 Zope 2.1.6 (from src) Have a better one, Curtis. Traceback (innermost last): File /usr/local/Zope-2.1.6-src/lib/python/ZPublisher/Publish.py, line 214, in publish_module File /usr/local/Zope-2.1.6-src/lib/python/ZPublisher/Publish.py, line 179, in publish File /usr/local/Zope-2.1.6-src/lib/python/Zope/__init__.py, line 202, in zpublisher_exception_hook (Object: sqlGetRADetails) File /usr/local/Zope-2.1.6-src/lib/python/ZPublisher/Publish.py, line 165, in publish File /usr/local/Zope-2.1.6-src/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: manage_test) File /usr/local/Zope-2.1.6-src/lib/python/ZPublisher/Publish.py, line 102, in call_object (Object: manage_test) File /usr/local/Zope-2.1.6-src/lib/python/Shared/DC/ZRDB/DA.py, line 331, in manage_test (Object: sqlGetRADetails) File /usr/local/Zope-2.1.6-src/lib/python/Shared/DC/ZRDB/DA.py, line 312, in manage_test (Object: sqlGetRADetails) File /usr/local/Zope-2.1.6-src/lib/python/Shared/DC/ZRDB/DA.py, line 430, in __call__ (Object: sqlGetRADetails) File /usr/local/Zope-2.1.6-src/lib/python/Products/ZMySQLDA/db.py, line 173, in query OperationalError: (see above) ___ 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] Slow File Access With LocalFS
Hello. I'm using LocalFS to reference a large collection of mp3 files. (I figured it was probably a good idea not to upload the whole shebang to the ZODB, so I just added a LocalFS object to reference the top directory of the collection.) When I try to download a file by calling the Zope object (for instance, http://zopeserver/LocalFSObject/mp3file.mp3) it takes 30 seconds for the average mp3 file to start streaming. Other files, i.e., way smaller ones, like 4K playlist files, download very quickly. Is Zope or LocalFS choking on the large files? Is there some work-around I'm missing? ___ 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] Can't override standard_error_message on NotFound?
I'm having some problems with standard_error_message on 2.2.0b2. According to the mailing list archives I should be able to override NotFound errors (I even cut-n-pasted http://www.zope.org/standard_error_message/view_source into my own standard_error_message in case I was missing something) but requesting a nonexistent object still gets me what appears to be a built-in page. Is there something else to do? ___ 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] embed an SQL method inside a tag
+[ Dieter Maurer ]- | Andrew Kenneth Milton writes: | > | > So... | > | Alternatively, you could place the values from "abc_sql_statement" | into the "REQUEST" object: | | | Except you get one line per variable you want to set... It's ok if you've only got one variable and you want to use it outside the loop, setting four or five would get messy I think. -- 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] How-to Bypass DTML Code?
+[ Nestor A. Diaz L. ]- | Hi, anyone know how to bypass the dtml-code, that's because i'm writing a | howto with showing the use of some "dtml-tags" so it tries to interpreting | it rather than only showing them. | It's easy:- Make a method called printCode which contains one line: Then to display a method or a document:- Will print your standard_html_header, you will probably want The advantage of this, is that you can use actual methods (if you're doing a tutorial). So when you change the method, your documentation updates itself. If you just want to pass strings into printCode, you can do that too. -- 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] (no subject)
> -Original Message- > From: Dieter Maurer [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, June 27, 2000 3:31 AM > To: [EMAIL PROTECTED] > Cc: '[EMAIL PROTECTED]' > Subject: RE: [Zope] (no subject) > > > Jay, Dylan writes: > > ... > > Perhaps another example will prove its uglyness. > > > > this().has_key(some_value) and > > _[some_value] == 'a property value' and > > AUTHENTICATED_USER.has_role('Manager')"> > > > > > > link text > > this().has_key(some_value) and > > _[some_value] == 'a property value' and > > AUTHENTICATED_USER.has_role('Manager')"> > > > > > >(no link available) > > > > > > > > or > > > > this().has_key(some_value) and > > _[some_value] == 'a property value' and > > AUTHENTICATED_USER.has_role('Manager')"> > > > > > > link text > > > > (no link currently available) > > > > > > > > > > Now which looks cleaner? > You could use "dtml-let" to avoid the (admittedly) ugly > repetition of the condition. You could but this is something I end up doing a lot esp with the way hyperlinks work. Syntax to help would make it cleaner. It is not to much of a pollution of the name space as 'always' and 'then' would only be active inside an if statement. ___ 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] (no subject)
> -Original Message- > From: Marco Mariani [mailto:[EMAIL PROTECTED]] > Sent: Monday, June 26, 2000 6:39 PM > To: Jay, Dylan > Subject: Re: [Zope] (no subject) > > > On Mon, Jun 26, 2000 at 02:56:39PM +1000, Jay, Dylan wrote: > > > > > > > > > >link text > > > > > > > > >link text > > >(no link...) > > > > > > > yes but the repitition of "link text" could be a real pain > if "link_text" is > > big. Repitition is always a maintance nightmare. > > So is dtml-always. No thats not the same thing. If I have a complex expression for X and it needs to be changed then it will have to be changed in two places. If I forget to update it in both places I would create a bug. My proposal elegently avoids this problem. > > > > ',''][not X]"> > > >link text > > > ','(no link...)'][not X]"> > > > > I've no idea about this syntax. Does it work? > > Yes it does. "not X" is the array index, 0 or 1. oic. Thats nasty. Actually you can just write that '"> which is a bit cleaner. > > -- > "This company has performed an illegal operation and will be > shut down. > If the problem persists, contact your vendor or appeal to a > higher court." > - Signal11 on slashdot > ___ 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] ProxyPass Problems
Never mind, Incidentally if you are going to use RedHat's SecureServer, they already have a virtual host assigned to port 443, with all of the SSL directives in it. You need to place the ProxyPass directives in the existing default:443 virtual host section or copy the SSL Directives into the virtual host you create for zope (or move them into the global settings). Strangely enough, any single request can only be handle by one virtual host :). > -Original Message- > From: Baker, Dennis [sjmr] [mailto:[EMAIL PROTECTED]] > Sent: Monday, June 26, 2000 9:45 AM > To: '[EMAIL PROTECTED]' > Subject: [Zope] ProxyPass Problems > > > I'm having a problem with getting ProxyPass and SSL to work. > I followed the > How-to on Using Apache with ZServer, and unfo's How-To on > Apache+ZServer+SSL. And my setup is nearly identical to the > one listed on > the howto. I have my main site in the root of my Zope Setup, > and My SSL > site is in a subdirectory of the root called SecureSite. > > After setting up the ProxyPass Directives in Apache (I have > the httpd.conf > section attached below) and Adding the SiteRoot objects on > Zope I can access > the main Site at http://mysite.org, but if I try to access > https://mysite.org my web browser hangs until it times out. Also, it > becomes impossible to browse the SecureSite Folder unless I delete the > SiteRoot Object. > > It appears to be some kind of Apache issue, however I can't > figure out why > it won't connect, the directives are almost identical to the > ones on the > Howto. Any Suggestions ?? > > Snippet from httpd.conf --- > NameVirtualHost 206.171.167.101:80 > > > ServerAdmin [EMAIL PROTECTED] > ServerName mysite.org > ProxyPass / http://mysite.org:8080/ > ProxyPassReverse / http://mysite.org:8080/ > ProxyPass /misc_ http://mysite.org:8080/misc_ > ProxyPass /p_ http://mysite.org:8080/p_ > > > NameVirtualHost 206.171.167.101:443 > > > ServerAdmin [EMAIL PROTECTED] > ServerName mysite.org > ProxyPass / http://mysite.org:8080/SecureSite/ > ProxyPassReverse / http://mysite.org:8080/SecureSite/ > ProxyPass /misc_ http://mysite.org:8080/misc_ > ProxyPass /p_ http://mysite.org:8080/p_ > > > End Snippet > > Dennis Baker > Information Systems Manager, St. Joseph's Medical Resources > > > ___ > 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] embed an SQL method inside a tag
Andrew Kenneth Milton writes: > +[ [EMAIL PROTECTED] ]- > | I tried to embed an SQL method statement inside my listing, the > | problem I'm facing was, will Z sql method detact the value I passed in, let > | say : > | > | # This is my first listing > | > | #another sql_statement > | > | > | > | > | # The bcd_statement will not be requested by a form > The inside loop bcd_statement needs to have the values passed to it > explicitly, because values from the outer dtml-in will not be > acquired. > > So... > Alternatively, you could place the values from "abc_sql_statement" into the "REQUEST" object: Dieter ___ 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] Generating products that perform a smart clone of a master site?
=?iso-8859-1?q?Hamish=20Lawson?= writes: > I'm exploring the use of Zope for creating learning environments in > higher education. > > One of the requirements is for a tutor to be able to create a mini > site that includes static files along with more active objects like > discussion boards. Furthermore they need to be able to make > different 'instances' of this site for use by different groups, such > that each instance of the site conatins unique instances of any > contained active objects (such as a discussion board). You want look at ZClasses (zope.org -> Documentation). Dieter ___ 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] (no subject)
Jay, Dylan writes: > ... > Perhaps another example will prove its uglyness. > > _[some_value] == 'a property value' and > AUTHENTICATED_USER.has_role('Manager')"> > > > link text > _[some_value] == 'a property value' and > AUTHENTICATED_USER.has_role('Manager')"> > > >(no link available) > > > > or > > _[some_value] == 'a property value' and > AUTHENTICATED_USER.has_role('Manager')"> > > > link text > > (no link currently available) > > > > > Now which looks cleaner? You could use "dtml-let" to avoid the (admittedly) ugly repetition of the condition. Dieter ___ 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] ZODB performance: reads to writes
Toby Dickenson writes: > ... problems with high frequency writes ... > As I understand it, a BTreeFolder alone (ie without application-level > conflict handling) will not help here. > > Folders have to ensure that all their contained elements have a > different id. The hot-spot is the only way a Folder can achieve this. Because the application specifies the id, all the folder has to do is verify that the id does not yet exist. This may "look" a path from root to leaf. A conflict between two concurrent transactions results only, if either both want to modify the same leaf node or if a tree restructuring becomes necessary. Dieter ___ 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: HappySession-0.1.1 available
Sorry, the URL should be: http://www.zope.org/Members/hungjunglu/Products/HappySession Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com ___ 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] Can not add Zope Tutorial with 2.2: Solved
Hi Brian, Jochen Knuth wrote: > > > > in preparation for the LinuxTag 2000 i tried to add the Zope > > > > Tutorial to > > > > Zope 2.2.0b2 (and fresh CVS versions of the last three days) but i get > > > > the following error (i think it's the same error as Oleg mentioned): > > > > > > > > Error Type: TypeError > > > > Error Value: ('len() of unsized object', > > > Shared.DC.ZRDB.DA.SQL at > > > > 85fb7e0>, None) > > > the last updates for DA.py and/or TutorialTopic.py have solved the problem for me. One "aesthetic" problem i see now: The order of the Tutorial lessons in the "menu" frame is wrong. Zope Tutorial Glossary Welcome to the Zope Tutorial Lesson 9. Elvis, Up Close and Personal Lesson 10. So You've Seen Elvis Lesson 11. The Elvis Files Congratulations Lesson 1. "Elvis Lives" Home Page Lesson 2. Going to Graceland Lesson 3. Elvis's Favorite Foods Lesson 4. Site Contact Information Lesson 5. Recent Elvis Sightings Lesson 6. Recent Elvis Sightings, cont. Lesson 7. Elvis Photo Archive Lesson 8. Elvis Photo Archive, cont. Ciao, Jochen ___ 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] Stupid question of the day
Thank you. - Original Message - From: "Dieter Maurer" <[EMAIL PROTECTED]> To: "Andy McKay" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Friday, June 23, 2000 3:07 PM Subject: Re: [Zope] Stupid question of the day > Andy McKay writes: > > How do I find the size of the results returned by the catalog? > > <-- the results' length --> > > > > Dieter > > ___ > 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 )
[Zope] ZOracleDA
Hi, I'm trying to install ZOracleDA. I've managed to get DCOracle to build, but the test fails with this traceback: - [root@balrog src]# python DCOracle_test.py Traceback (innermost last): File "DCOracle_test.py", line 1, in ? import Buffer, oci_, sys ImportError: /u01/app/oracle/product/8.1.5/lib/libordvir8.so: undefined symbol: __pure_virtual - I'm running Zope 2.1.6 with Python 1.5.2 on Linux. DCOracle and ZOracleDA are both the stab;e releases. Oracle is 8.1.5 (needed the Setup file from this list). I added -lordvir8 a couple of times extra to Setup to see if this problem went away, but it wouldn't. nm on libordvir8.so says that it contains the __pure_virtual symbol. Does anyone know how to get around this? -- Kiran Jonnalagadda http://lunateks.com baby.sh: while true; do echo "^G^G^G^G^G"; sed -e 's/food/poop/'; sync; sync; sleep 15; done ___ 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] HappySession-0.1.1 available
This release fixes a problem with erasing cookie of expired sessions on the Linux platform. Thanks to Felipe Alvarez for pointing out the problem to me. HappySession is an easy-to-use RAM-based session management product. It can be found at: http://www.zope.org/Members/hungjunglu/Products/HappySession Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com ___ 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] parsing strings in DTML
On Mon, 26 Jun 2000, Timothy Wilson wrote: > On Mon, 26 Jun 2000, Rik Hoekstra wrote: > > > try something like (untested): > > > > > > > > for parsing the string > > But what if "parse_address" comes from a SQL query? Like this: > > > , ... etc. > > Don't I run into trouble with nested DTML here? You should never "nest" DTML like you are suggesting. It won't work. Variables set through REQUEST.set are immediately accessable in DTML expressions after it, i.e.: Notice all I did was "i + 1", not " + 1". You simply reference it, as you would in python. > -Tim --Jeff --- Jeff K. Hoffman 704.849.0731 x108 Chief Technology Officer mailto:[EMAIL PROTECTED] Going Virtual, L.L.C. http://www.goingv.com/ ___ 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] parsing strings in DTML
On Mon, 26 Jun 2000, Timothy Wilson wrote: > > , ... etc. > > Don't I run into trouble with nested DTML here? No, inside the quotes you are in python, not dtml, so no nesting is required. Just reference parse_address (though you've got it in the wrong place if it already has a value...) --RDM ___ 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] parsing strings in DTML
Timothy Wilson wrote: > > On Mon, 26 Jun 2000, Rik Hoekstra wrote: > > > try something like (untested): > > > > > > > > for parsing the string > > But what if "parse_address" comes from a SQL query? Like this: > > > , ... etc. > > Don't I run into trouble with nested DTML here? Untested, but should be correct: 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 2.2.0 beta 3 released...
Hi all, Zope 2.2.0 beta 3 has been released - you can download it from Zope.org: http://www.zope.org/Products/Zope/2.2.0b3/ This release resolves the "len of unsized object" error some folks were seeing with their SQL methods as well as an issue with broken installed products causing a recursion problem instead of appearing as normal "broken" objects. I'm hopeful that this will be the last 2.2 beta, assuming that no other real problems arise that need fixes tested before final. For more information, see the CHANGES.txt file for the release: http://www.zope.org/Products/Zope/2.2.0b3/CHANGES.txt If you are still using a 2.1.x version of Zope, be sure to see the document upgrading to Zope 2.2: http://www.zope.org/Products/Zope/2.2.0b3/upgrading_to_220 for information on the recent changes to the Zope security model and other upgrade information. Brian Lloyd[EMAIL PROTECTED] Software Engineer 540.371.6909 Digital Creations http://www.digicool.com ___ 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] Proxying/Sharing internet for Windows 95
http://www.winproxy.com/yahoobanner.htm http://www.proxyplus.cz/ http://home.computalynx.co.uk/ ...some bookmarks I made about a year ago when I was invesitgating Win98 proxies. I ended up buying a cheap-but-effective router with proxy and address translation embedded. --HTH --Loren > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Hung > Jung Lu > Sent: Monday, June 26, 2000 12:18 > To: [EMAIL PROTECTED] > Subject: [Zope] Proxying/Sharing internet for Windows 95 > > > Hi, > > This is kind of off topic. :) > > Windows 98 allows users to share one single internet dial-up > connection. For > Windows 95, you can't do that without buying some software. (I am talking > about low-end home network.) It's not too expensive, typically $30 to $50 > dollars. But, just for the fun of it, I guess someone might have > written a > proxy server for Windows 95, already. Is there anything in Python or Zope > that does something like that? :) > > regards, > > Hung Jung > > > > Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com > > > ___ > 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] parsing strings in DTML
On Mon, 26 Jun 2000, Rik Hoekstra wrote: > try something like (untested): > > > > for parsing the string But what if "parse_address" comes from a SQL query? Like this: , ... etc. Don't I run into trouble with nested DTML here? -Tim -- Tim Wilson | Visit Sibley online: | Check out: Henry Sibley HS | http://www.isd197.k12.mn.us/ | http://www.zope.org/ W. St. Paul, MN | | http://slashdot.org/ [EMAIL PROTECTED] || http://linux.com/ ___ 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] CASE tools and Zope
Hello All, A newbie question. Is there any hints and tricks how to establish connection between CASE like ERwin and Zope? We plan to develop a a medical record system based on SQL database so data scheme is essential. And all business rules will be held in Zope. SQL tables as I realize should be mapped to ZClasses - if there is an entity "Patient Personal Data" with columns Name, Gender, Date_of_birth, Street_address and so on, then ZClasses with appropriate properties are to be created. At the moment ER model can only be viewed and no more while working in Zope. Is it the only use of data modelling tools for Zope development? Or there is some other techniques of such application development one should be aware of? THX in advance. Best regards, Alexander N. Chelnokov Ural Scientific Institute of Traumatology and Orthopaedics 7, Bankovsky str. Ekaterinburg 620014 Russia ICQ: 25640913 ___ 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] parsing strings in DTML
On Mon, 26 Jun 2000, Rik Hoekstra wrote: > >Please correct me if I'm wrong, but I could probably do >"REQUEST.set('parsed_address', _.string.join(old_address, '$')"> except for > >the fact that getting "old_address" (the $-separated one) would require its > >own statement. I can't nest s so how to I > >combine these? > > I'm not sure I get you right. > try something like (untested): > > You're right, of course, about the "split." A slip of the typing fingers. :-) > If you want to know more, you should probably look at the Python docs, as > this is Python stuff. Doing this in Python is easy. That's not the problem. I've been struggling with all of the RESPONSE.set, REQUEST.set, etc. stuff. I can't keep it all straight. Adding the dtml layer to this really adds to the comlexity of it all. I just need more Zen. :-) Thanks for the help. -Tim -- Tim Wilson | Visit Sibley online: | Check out: Henry Sibley HS | http://www.isd197.k12.mn.us/ | http://www.zope.org/ W. St. Paul, MN | | http://slashdot.org/ [EMAIL PROTECTED] || http://linux.com/ ___ 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] parsing strings in DTML
> >I'm working on what should be a simple problem. > >I pulling an address out of an ldap query and the data is in the form of a >$-separated string. Example: > >101 Main St.$Anytown$MN$12345 > >Please correct me if I'm wrong, but I could probably do "REQUEST.set('parsed_address', _.string.join(old_address, '$')"> except for >the fact that getting "old_address" (the $-separated one) would require its >own statement. I can't nest s so how to I >combine these? I'm not sure I get you right. try something like (untested): for parsing the string > >Second question... Once I've got my string parsed into a list called >"parsed_string", what's the syntax for accessing certain elements of the >list? By slicing: gets you the first element parsed_string[1] the second etc parsed_string[1:] is everything after the second ;-) element of the list parsed_string[:5] is everything up to element 6 parsed_string[1:5] is everything from element 2 to element 6 parsed_string[-1] is the last element of the list. If you want to know more, you should probably look at the Python docs, as this is Python stuff. > >P.S. Maybe I should do this in an external or python method, but I thought >it would be overkill for a single operation like this. Am I wrong? No, I think you're right, but others may disagree. hth Rik ___ 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] parsing strings in DTML
On Mon, 26 Jun 2000, Timothy Wilson wrote: > "REQUEST.set('parsed_address', _.string.join(old_address, '$')"> except for This is exactly correct. Inside the quotes you are in python, and so you can reference variables from the namespace by their unadorned name. > Second question... Once I've got my string parsed into a list called > "parsed_string", what's the syntax for accessing certain elements of the > list? parsed_string[0], parsed_string[1], ... (inside an expr, of course). --RDM ___ 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] Cache X MySQL
Dear coleagues, I decided to use Zope as an Interface to maintain and search a touristic information database. All text is stored in MySQL tables and images will be stored outside the database, for cache reasons (I will keep only the path as TEXT columns in MySQL tables). My question is: for me to have an efficient cache system, Am I supposed to store the images as Zope Image Objects or can I store them outside Zope, in normal (Linux) folders? If I store them poutside Zope, is Zope able to cache them??? regrads, Rogerio Atem --- E-mail enviado pelo servidor do CEFETCampos ___ 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] Proxying/Sharing internet for Windows 95
Hi, This is kind of off topic. :) Windows 98 allows users to share one single internet dial-up connection. For Windows 95, you can't do that without buying some software. (I am talking about low-end home network.) It's not too expensive, typically $30 to $50 dollars. But, just for the fun of it, I guess someone might have written a proxy server for Windows 95, already. Is there anything in Python or Zope that does something like that? :) regards, Hung Jung Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com ___ 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] parsing strings in DTML
Hi everyone, I'm working on what should be a simple problem. I pulling an address out of an ldap query and the data is in the form of a $-separated string. Example: 101 Main St.$Anytown$MN$12345 Please correct me if I'm wrong, but I could probably do except for the fact that getting "old_address" (the $-separated one) would require its own statement. I can't nest s so how to I combine these? Second question... Once I've got my string parsed into a list called "parsed_string", what's the syntax for accessing certain elements of the list? Thanks. -Tim P.S. Maybe I should do this in an external or python method, but I thought it would be overkill for a single operation like this. Am I wrong? -- Tim Wilson | Visit Sibley online: | Check out: Henry Sibley HS | http://www.isd197.k12.mn.us/ | http://www.zope.org/ W. St. Paul, MN | | http://slashdot.org/ [EMAIL PROTECTED] || http://linux.com/ ___ 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] Products vs. ZClasses- Design Question
Hi Jimmie ! Jimmie Houchin wrote: > > This sounds weird ! Well, every page on the ZDP site has a Maintainer, > > and that is displayed on the top right. If you click on that link, > > you get to the member page, where the email exists. > > I go back again to make sure of what I saw. In the upper right side, all > that is there is 'Contributed by maik'. It is not a link. It goes > neither to a member page of the maintainer nor provides a mailto: link. > This is in Win95 Netscape. When I view the source I didn't anything > there but text in a table. This is a bug specific to the Portal, which has a folder called members, and unfortunately, I am using just this name in the DTML script that fetches the information out of the members folder that holds the actual member information. Maintainer: Contributed by I have changed the portal name to zdpmembers, and now it works again. > > You also have to see that the topics in the ZDP-Portal > > are normally not related in a way like an article is, > > so I have not added a navigation, even though I had considered it. > > I don't think it is a problem for unrelated content or articles. It also > doesn't necessarily have to be site wide thing. In this particular > instance all three were related to each other and referenced each other > via the pros and cons. In this case I will have to make explicit links to the related content, like you propose. It is worth the extra effort. > If you think date is not a good indicator of currency, then howabout > having Zope versions with which it is accurate for ? The date will play a role when the changes history of documents is implemented. > ie: Works with Zope > 2.x or Zope 2.2.x, etc. or even a range 2.0-2.1.x. This would allow for > changes in Zope which break certain things. For example any information > on the security model changes between 2.1.x and 2.2.x. > Doing it this way makes it less date dependent. It also allows for > people who are using older versions of Zope to understand if it is > relevant for them. In my opinion, things like that should be noted in the text, or in the changes history (Something like "adopted to Zope 2.2 security model on 22nd of July 2000). > > I have noticed that product as well, but didn't find the > > time to check it out (There is no info on the product > > page). > > I haven't either. Just thought it seemed relevant to the topic. It is relevant, and the portal is supposed to spare you the time to check out everything on your own. If someone has checked out this product, please add your knowledge to the Portal. > > Maybe you can help by adding a draft to the relevant topics, > > that can replace the description that exists ? > > Not at this time, sorry. No problem. Thanks for your comments. Best regards, Maik Röder -- Open Source is "about being able to work together with people you've never met, on projects that are in a constant state of flux, on a time schedule that would cause a hummingbird's head to spin." Paul Ferris, http://www.linuxplanet.com/linuxplanet/opinions/1593/1/ ___ 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 Bypass DTML Code?
"Nestor A. Diaz L." wrote: > > Hi, anyone know how to bypass the dtml-code, that's because i'm writing a > howto with showing the use of some "dtml-tags" so it tries to interpreting > it rather than only showing them. try this --- Hannu ___ 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 Bypass DTML Code?
I think the correct syntax is (at least for my my install of zope):<-- this renders not : >dtml-var foo< <-- where as this renders >dtml-var foo< Dan Chris McDonough wrote: > Use > > >dtml-var foo< > > instead of > > > > > -Original Message- > > From: Nestor A. Diaz L. [mailto:[EMAIL PROTECTED]] > > Sent: Monday, June 26, 2000 1:48 PM > > Cc: '[EMAIL PROTECTED]' > > Subject: [Zope] How-to Bypass DTML Code? > > > > > > Hi, anyone know how to bypass the dtml-code, that's because > > i'm writing a > > howto with showing the use of some "dtml-tags" so it tries to > > interpreting > > it rather than only showing them. > > > > Thank you, > > > > Nestor A. Diaz L. > > [EMAIL PROTECTED] > > PGP Public Key `wget http://www.tiendalinux.com/pgp/nestor.pgp` > > > > > > Visita http://www.tiendalinux.com la tienda virtual de > > Productos y Servicios para los usuarios de Linux en Colombia > > * Aprobado Credibanco VISA ** > > > > > > ___ > > 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 ) ___ 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] Generating products that perform a smart clone of a mastersite?
On Mon, 26 Jun 2000, [iso-8859-1] Hamish Lawson wrote: > What I think I need to do is to develop a facility that makes a > tutor's site into a product. Instantiating such a generated product > should make a smart clone of the master site, smart in the sense that > only active objects are actually cloned, but static files are shared > among all instances of the site. I suspect that ZClasses might be > involved to achieve this, but are there any issues with the fact that > a master site could contain folders? Furthermore I'd like a tutor to > be able to visit their productised site to update it, without seeing > a lot of alien stuff; changes to the master site should be reflected > in all instances of the site. You've got a couple of problems, given the way ZClasses and Python products currently work. Either on one of them would allow you to set up the static pages in a shared, updateable way; the catch comes in how the updates get done. For changes to be reflected in a python product, you'd have to give the faculty member the ability to change files in the server filesystem hierarchy. This is problematic. With ZClasses you can use the Zope security support to control who updates what. However, currently ZClasses can only go in the Control_Panel/Products folder. This means that all tutors will see the products/classes used by all other tutors, which you say you wish to avoid. I think the best solution to this would be if you could have ZClasses stored in a mountable storage. Then you could have one storage per tutor. I don't think that is currently supported, though. Another approach would be to have a separate Zope instance per tutor. This has the disadvantage of making code shared between tutors harder to maintain. If *that* code is in a python product, though, you could use the INSTANCE_HOME support to have the python product code shared between all the instances. In short, I do think you are on the right track, but you've got some hurdles to get over to achieve exactly what you want. --RDM ___ 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] R: [Zope] How-to Bypass DTML Code?
- Original Message - From: Nestor A. Diaz L. <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Monday, June 26, 2000 7:47 PM Subject: [Zope] How-to Bypass DTML Code? > Hi, anyone know how to bypass the dtml-code, that's because i'm writing a > howto with showing the use of some "dtml-tags" so it tries to interpreting > it rather than only showing them. One way: Replace `< ' with `<' and '>' with '>'PM ___ 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] Moving Z Classes around
On Mon, 26 Jun 2000, Brian Lloyd wrote: > future to move ZClasses around, but something will still need > to be done about existing instances created from a class that > moves. So far we have avoided the hard thinking required to If there are no instances to worry about, could one export the ZClass and reimport it to the new location? --RDM ___ 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 Bypass DTML Code?
Use >dtml-var foo< instead of > -Original Message- > From: Nestor A. Diaz L. [mailto:[EMAIL PROTECTED]] > Sent: Monday, June 26, 2000 1:48 PM > Cc: '[EMAIL PROTECTED]' > Subject: [Zope] How-to Bypass DTML Code? > > > Hi, anyone know how to bypass the dtml-code, that's because > i'm writing a > howto with showing the use of some "dtml-tags" so it tries to > interpreting > it rather than only showing them. > > Thank you, > > Nestor A. Diaz L. > [EMAIL PROTECTED] > PGP Public Key `wget http://www.tiendalinux.com/pgp/nestor.pgp` > > > Visita http://www.tiendalinux.com la tienda virtual de > Productos y Servicios para los usuarios de Linux en Colombia > * Aprobado Credibanco VISA ** > > > ___ > 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] Zope 2.2.0b2 - PythonMethods
>I remember DC submitted PythonMethods into CVS, but I cannot find > PythonMethod in 2.2.0b2. Are PythonMethods for later > versions? Or it will > be separated Product forever? > >I have downloaded latest PythonMethods and successfully > installed the > component, but shouldn't it be in distribution? Or I just > don't understand > something? Oleg, There is still some work that we want to do on PythonMethods to get them where we want them for inclusion in Zope -- we need to get them well integrated with the Zope security policies and roll in some other work that will make all method-like objects behave in more consistent manner. I'm hoping that this will happen relatively soon (though I can't give you a date). Until then, there's no problem using the latest distribution. Brian Lloyd[EMAIL PROTECTED] Software Engineer 540.371.6909 Digital Creations http://www.digicool.com ___ 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 Bypass DTML Code?
Hi, anyone know how to bypass the dtml-code, that's because i'm writing a howto with showing the use of some "dtml-tags" so it tries to interpreting it rather than only showing them. Thank you, Nestor A. Diaz L. [EMAIL PROTECTED] PGP Public Key `wget http://www.tiendalinux.com/pgp/nestor.pgp` Visita http://www.tiendalinux.com la tienda virtual de Productos y Servicios para los usuarios de Linux en Colombia * Aprobado Credibanco VISA ** ___ 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] Moving Z Classes around
> Having discovered that [my] Z Class is in the wrong product, > I'd like to > move it elsewhere. The obvious thing to do is to use Cut + Paste; > unfortunately, I get: > > The item does not support this operation. > > (The function manage_copyObjects is not happy!) > > I can't think of another way to move my classes without > rebuilding them -- > any advice? Michael, I agree that this is a pain, but it is a fact of life for now in ZClass development. ZClasses have a different relationship with other Zope objects than normal, in that other instances in the object space refer to them as their class. That makes picking them up and moving them something not to be done lightly. In the Python world, this would be equivalent to pickling a bunch of objects and then moving the class for those objects to a different package. Without some explicit action, all of the pickled objects would break because they would be referencing a class that is no longer there. It's the same deal with ZClasses. It may be possible in the future to move ZClasses around, but something will still need to be done about existing instances created from a class that moves. So far we have avoided the hard thinking required to solve that :^) This would be a good candidate for a proposal in the forthcoming ZopeDev area on Zope.org. More on that later... Brian Lloyd[EMAIL PROTECTED] Software Engineer 540.371.6909 Digital Creations http://www.digicool.com ___ 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] ProxyPass Problems
I'm having a problem with getting ProxyPass and SSL to work. I followed the How-to on Using Apache with ZServer, and unfo's How-To on Apache+ZServer+SSL. And my setup is nearly identical to the one listed on the howto. I have my main site in the root of my Zope Setup, and My SSL site is in a subdirectory of the root called SecureSite. After setting up the ProxyPass Directives in Apache (I have the httpd.conf section attached below) and Adding the SiteRoot objects on Zope I can access the main Site at http://mysite.org, but if I try to access https://mysite.org my web browser hangs until it times out. Also, it becomes impossible to browse the SecureSite Folder unless I delete the SiteRoot Object. It appears to be some kind of Apache issue, however I can't figure out why it won't connect, the directives are almost identical to the ones on the Howto. Any Suggestions ?? Snippet from httpd.conf --- NameVirtualHost 206.171.167.101:80 ServerAdmin [EMAIL PROTECTED] ServerName mysite.org ProxyPass / http://mysite.org:8080/ ProxyPassReverse / http://mysite.org:8080/ ProxyPass /misc_ http://mysite.org:8080/misc_ ProxyPass /p_ http://mysite.org:8080/p_ NameVirtualHost 206.171.167.101:443 ServerAdmin [EMAIL PROTECTED] ServerName mysite.org ProxyPass / http://mysite.org:8080/SecureSite/ ProxyPassReverse / http://mysite.org:8080/SecureSite/ ProxyPass /misc_ http://mysite.org:8080/misc_ ProxyPass /p_ http://mysite.org:8080/p_ End Snippet Dennis Baker Information Systems Manager, St. Joseph's Medical Resources ___ 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] R: [Zope] 'string' object has no attribute 'propertysheets'
> Could anyone clue me into what I'm doing wrong here. I have searched the > archives and can't find the answer. > > Thanks!! > > Error Type: AttributeError > Error Value: 'string' object has no attribute 'propertysheets' > File /usr/local/Zope220/lib/python/DocumentTemplate/DT_Util.py, line 333, > in eval > (Object: > _['goLiveDate'].propertysheets.eMed_information.manage_changeProperties({ >'eMed_title' : REQUEST.form['new_eMed_title'], >'eMed_memVerse': REQUEST.form['new_eMed_memVerse'], >'eMed_summary' : REQUEST.form['new_eMed_summary'], >'eMed_text': REQUEST.form['new_eMed_text'], >'eMed_DateMod' : REQUEST.form['new_eMed_DateMod'] >})) > (Info: REQUEST) > File, line 0, in ? > File /usr/local/Zope220/lib/python/DocumentTemplate/DT_Util.py, line 129, > in careful_getattr > AttributeError: (see above) Looks like you have the object (variable) `goLiveDate' of the type 'string' and ,of corse :), it doesn't have the attribute (method) `propertysheets' but you try to access this attribute... PM ___ 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] 'string' object has no attribute 'propertysheets'
Could anyone clue me into what I'm doing wrong here. I have searched the archives and can't find the answer. Thanks!! Error Type: AttributeError Error Value: 'string' object has no attribute 'propertysheets'
Re: [Zope] help a zope newbie
i think of zope as a Grand train station, with not quite all the tracks aligned yet. about to rock and roll michael drawingincode:) > Hello > > I want to know more about Zope. > > I have seen few site powered by Zope. One thing I had noticed is that almost > all of those sites are mostly static pages. I mean I am interested to see > how can Zope be used for a portal. like containing many pages having lots of > form variables. database connectivity etc. what is the performance then. > > can anybody help me evaluating this. > > thanks in advance. > > Amit > > .--. > |o_o | > |:_/ | >// \ \Amit Redij > (| | ) mailto:[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 ) > > ___ 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] Moving Z Classes around
Having discovered that [my] Z Class is in the wrong product, I'd like to move it elsewhere. The obvious thing to do is to use Cut + Paste; unfortunately, I get: The item does not support this operation. (The function manage_copyObjects is not happy!) I can't think of another way to move my classes without rebuilding them -- any advice? ___ 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] problem with the beta
It has to do with the new security model. The supuser can no longer own stuff. Monty >> Original Message << On 6/26/00, 3:31:02 PM, frank cuzzocrea <[EMAIL PROTECTED]> wrote regarding [Zope] problem with the beta: > i am using 2.2 Beta 2 and every time i attempt to add a new folder, or a dtml document, i keep having this error > Error Type: SuperCannotOwn > Error Value: Objects cannot be owned by the superuser > I never got this with 2.1.6 is this an error in the 2.2 beta 2 version, or do u think i just have a bad copy. i am going back to the 2.1.6 version till i find out > Frank from Miami > ___ > Visit http://www.visto.com/info, your free web-based communications center. > Visto.com. Life on the Dot. > ___ > 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] geting the type of an object from within dtml ??? ==> it works
in an external method, would not this work?: def getclass(self, ob): return type(ob) Then use the getclass fn from DTML: -Original Message- From: NABETH Thierry [mailto:[EMAIL PROTECTED]] Sent: Monday, June 26, 2000 4:11 AM To: '[EMAIL PROTECTED]' Cc: 'ethan mindlace fremen' Subject: RE: [Zope] geting the type of an object from within dtml ??? ==> it works Hello, >> works. Yes, it display the correct meta type. Thanks. When I had done some tests, I forgot to set the meta_type field, and the system was displaying the meta type of the superclass instead. (which had confused me). Note: I am still not very confortable to use the "meta_type" field to get the class name, and would rather have prefered to have the real class itself. (python type function). Thank you again for your help. Thierry Thierry Nabeth Research Fellow INSEAD CALT (the Centre for Advanced Learning Technologies) http://www.insead.fr/CALT/ -Original Message- From: ethan mindlace fremen [mailto:[EMAIL PROTECTED]] Sent: Monday, June 26, 2000 3:43 AM To: Thierry Nabeth Cc: [EMAIL PROTECTED] Subject: Re: [Zope] geting the type of an object from within dtml ??? Thierry Nabeth wrote: > for instance: > > does not return the correct type. works. You can also use things like hope that helps, -- ethan mindlace fremen Zopatista Community Liason ___ 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] HTML Editors that recognize DTML (was bastardized form ofXML)
As promised I did some checking over the weekend. As for Windows editors, Homesite WILL let you create tags, it works quite well actually. One draw back (or a blessing, depending on your view) would be that it would force you to do dtml attributes long form, for example: rather than the nice thing is that you would have a nice drop down menu of choices. It supports syntax highlighting and has a ton of helpful features. In addition, if you gather enough Homesite "clue" you could also create your own wizards to accomplish certain tasks. Also for Windows there is Multi-Edit. Not as powerful as Homesite as an HTML, CFML, ad infinitum editor(well, maybe as powerful but it has all sorts of toolbars and buttons to push...annoying), but it has support for a tremendous number of legitimate programming languages built in including PERL, Python, JavaScript, C/C++, Delphi, ad nauseam. While you can edit all this in Homesite, Multi-Edit provides support for compilers, error messages, and templates for almost any programming language you can think of (ad nauseam, remember?). This doesn't necessarily help with DTML but maybe it's not all you do. Both of these are priced nicely, Homesite goes for about $100 and can be checked out at www.allaire.com, while Multi-Edit prices at around $130(online) and can be found at www.amcyber.com. For Linux there is a nice little editor called NEdit. NEdit includes customizable syntax highlighting, spell checker, etc. Unfortunately I know not of whether you can create customized tags but, I doubt it very much. Not as nice as the Windows stuff and there may be better editors made for Linux but this one does nicely in a pinch and beats the snot out of vi. RPM's, and source are both available, for free of course. That's my $.02, Jeff Peterson Software Engineer The Bridge/Befera Interactive Cablenet ___ 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] More verbose zope errors
Do a view source on the page to show the traceback contents when they don't show up within the page body. > -Original Message- > From: ethan mindlace fremen [mailto:[EMAIL PROTECTED]] > Sent: Monday, June 26, 2000 11:08 AM > To: [EMAIL PROTECTED] > Cc: [EMAIL PROTECTED] > Subject: Re: [Zope] More verbose zope errors > > > Riku Voipio wrote: > > > > Hi, > > > > Is there any way to meke Zope be more verbose when hitting errors? > > Something like: > > > > Error Type: TypeError > > Error Value: illegal argument type for built-in operation > > > > > > Sucks it ass off to find where it came from. What operation? > > what argument? what line? > > Are you saying that the traceback (found commented out in the source > code of the page) is unhelpful? Also, if you start zope with the -D > flag, the tracebacks will be uncommented (will show up on the page). > > -- > ethan mindlace fremen > Zopatista Community Liason > > ___ > 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] Unique Identifiers for Zope Objects
> I'm looking for an internal globally unique identifier for > objects in my > Zope store. The object path would be that. > I know that I can use id=object.absolute_url() to create an > identifier and > then .resolve_url(id) to recover the object from > the identifier > -- but I have two problems with this API: > > 1. The URL is not really a global identifier, as resolving it seems to > depend on the from which I call resolve_url(). > In particular, > if the id is created when Zope is running normally (as a service), and > resolved when running Zope from the command line debugger, the resolve > fails. This is not good. Yes, the REQUEST object is not available during a command line session. This can be a real pain. What you can do is (in Zope 2.2) use 'unrestrictedTraverse()' and 'restrictedTraverse()' in combination with the string.split() of the relative URL as obtained via ob.absolute_url(relative=1), e.g. ob = self.myob oburl = ob.absolute_url(1) obpath = string.split(oburl, '/') obpath.insert(0, '') # a null string as the first item in the [un]restrictedTraverse list means relative to root sameob = self.unrestrictedTraverse(obpath) (this is untested, I think it's right...) > 2. The need to locate an object carrying the resolve_url() > function is a problem; in particular, I would find it helpful > if I could > resolve my global identifier from within a __setstate__() > method (where I > have no access to local Zope variables), so I really want a > genuinely global > function for resolving my id. > > Any suggestions, or do I have to dig into the (disagreeable > and uncommented) > bowels of Zope and write my own? Well... if you don't plan on using mountable database features within Zope, each Zope object will have an attribute "_p_oid", which is the 64-bit object id (stored as a string) that is used by the storage to keep current and historical revisions to the object. It's not recommended that you base an extensible system on this attribute, however, because using multiple storages within a single Zope instance (such as when you use mountable databases) almost guarantees that this identifier will not be unique. I believe that mountable databases in Zope will quickly become a common implementation practice. I wouldn't suggest writing your own GUID generator for general-purpose Zope objects. I would promote the use of [un]restrictedTraverse and use the object path as a unique ID. See also: http://www.zope.org/Members/michel/Projects/Interfaces/Traversal and http://www.zope.org/Members/michel/Projects/Interfaces/ObjectPublishing ___ 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] ProxyPass
Hi Roché > Thanks Pierre > > This is a relief, I really didn't want to switch back to pcgi. I have > worked a little bit with the rewritemodule but if anybody has an example on > how to do this it would really be helpfull. > > Roché > I don't know if it help, but My problem was to serve any request to Apache to the ZServer, and to change the URL like that: http://path/file.html(Apache server) to http://path:8080/?file.html (ZServer, with the file as a query_string) and I wanted it to be transparent . So, I matched all the URLs with htm and html extension to modify them. The first thing u have to do is defining the regular expression which will match the URL you want to serve as a proxy then u can insert, and modify your URL (which will be served transparently with the [P] flag. the big problem is to find a way to match what u want, the syntax is horrible (I passed a whole day on these three lines). for more informations about rewrite_mod: http://www.kenzonca.com/manual/mod/mod_rewrite.html my example: (4 lines in the httpd.conf file this is very powerfull) #Attention: ici insrtion des regles de reecriture avec mod_write RewriteEngineon RewriteRule^(^([^/]*/)*)([^/]*\.htm)$ http://margo.ina.fr:8080$1?$3 [P] # fichiers HTM RewriteRule^(^([^/]*/)*)([^/]*\.html)$ http://margo.ina.fr:8080$1?$3 [P] # fichiers html RewriteRule^(^([^/]*/)*)$ http://margo.ina.fr:8080$1 [P] # pas de fichier demande (pages sommaires Zope) I hope it help u! Pierre ___ 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 2.1.6 Bug?
Ha ha, still stranger results. I tried it on an NT4.0 machine and it hangs as well. Changed it to - no quotes and no width and it works fine. What the %#@%%^ ??? Can't play much with it because there are users on the system :-( Nothing on the ZServer logs as well. ~ V.Satheesh Babu [EMAIL PROTECTED](Xt: 5348) . . http://vsbabu.csoft.net/ /V\ - Duct tape is like the force. It has // \\ a light side, and a dark side, and /( )\ it holds the universe together ... ^'~'^ -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Anders Holmbech Nielsen Sent: Monday, June 26, 2000 10:20 AM To: [EMAIL PROTECTED] Subject: Re: [Zope] Zope 2.1.6 Bug? hi, this is a strange error. I have just tried on my win nt 4.0 Zope 2.1.6 with the same result. >I'm running Zope 2.1.6 under Windows 2000. I've encountered a >situation where I can cause Zope to completely hang. For example, >if I create a DTMLMethod called test in the root folder and give it >this contents (leading spaces on the table tag are important): > > > > Hello > > > >and click the View tab, the page displays as expected. However, if >I edit this to look like this: > > > > Hello > > > Goodbye > > > >and click View, Zope goes off and never returns. The Python.exe >file continues to consume CPU but doesn't display anything. > >However, if I remove the leading spaces before the table tags, save >my changes and then click View, the contents are displayed >immediately. I then experimented with adding one space before the >tag. The contents displayed, but after a pause. Two spaces paused >longer. > >Can anyone else verify this behavior? > >Thanks. > >James W. Howe mailto:[EMAIL PROTECTED] >Allen Creek Software, Inc. pgpkey: http://ic.net/~jwh/pgpkey.html >Ann Arbor, MI 48103 > > >___ >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 ) -- Regards - Anders Holmbech Nielsen | Tlf: (+45) 70 22 56 00 Software Engineer | Fax: (+45) 70 22 57 00 Integrator Uniware A/S | http:/www.integrator.dk ___ 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 )
[Zope] URL parsing error in 2.2.0b2
I used to be able to use URLs like this in Zope 2.1.6: http://mysite.com/somepage?url=http://somewhere.com In Zope 2.2.0b2, I get a "404 File Not Found" error. Do I need to URL-quote the address now? ___ 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] More verbose zope errors
Riku Voipio wrote: > > Hi, > > Is there any way to meke Zope be more verbose when hitting errors? > Something like: > > Error Type: TypeError > Error Value: illegal argument type for built-in operation > > > Sucks it ass off to find where it came from. What operation? > what argument? what line? Are you saying that the traceback (found commented out in the source code of the page) is unhelpful? Also, if you start zope with the -D flag, the tracebacks will be uncommented (will show up on the page). -- ethan mindlace fremen Zopatista Community Liason ___ 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] (no subject)
Luc Tonin wrote: > > does anybody know how to have some statistic about each web pages > under zope?? each pages is da result of query on a mysql database ! > any id ??? > thx by advance I don't know if this is what you mean, but you can use webalizer or another statistics package on the log file created by zope. If you run it behind apache, you can use the log file apache creates. hope that helps, -- ethan mindlace fremen Zopatista Community Liason ___ 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 2.1.6 Bug?
hi, this is a strange error. I have just tried on my win nt 4.0 Zope 2.1.6 with the same result. >I'm running Zope 2.1.6 under Windows 2000. I've encountered a >situation where I can cause Zope to completely hang. For example, >if I create a DTMLMethod called test in the root folder and give it >this contents (leading spaces on the table tag are important): > > > > Hello > > > >and click the View tab, the page displays as expected. However, if >I edit this to look like this: > > > > Hello > > > Goodbye > > > >and click View, Zope goes off and never returns. The Python.exe >file continues to consume CPU but doesn't display anything. > >However, if I remove the leading spaces before the table tags, save >my changes and then click View, the contents are displayed >immediately. I then experimented with adding one space before the >tag. The contents displayed, but after a pause. Two spaces paused >longer. > >Can anyone else verify this behavior? > >Thanks. > >James W. Howe mailto:[EMAIL PROTECTED] >Allen Creek Software, Inc. pgpkey: http://ic.net/~jwh/pgpkey.html >Ann Arbor, MI 48103 > > >___ >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 ) -- Regards - Anders Holmbech Nielsen | Tlf: (+45) 70 22 56 00 Software Engineer | Fax: (+45) 70 22 57 00 Integrator Uniware A/S | http:/www.integrator.dk ___ 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] help a zope newbie
> I have seen few site powered by Zope. One thing I had noticed > is that almost > all of those sites are mostly static pages. I mean I am > interested to see > how can Zope be used for a portal. like containing many pages > having lots of > form variables. database connectivity etc. what is the > performance then. While it may appear that these sites are "static", they are probably very dynamic. Sites based exclusively on Zope do not serve *any* static content, all content is generated dynamically. See http://www.codecatalog.com for an example of a site which does a lot of forms processing and database lookups. It is based on 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] Zope 2.1.6 Bug?
- Original Message - From: James W. Howe <[EMAIL PROTECTED]> > I'm running Zope 2.1.6 under Windows 2000. I've encountered a situation > where I can cause Zope to completely hang. For example, if I create a > DTMLMethod called test in the root folder and give it this > contents (leading spaces on the table tag are important): [snip] This is the Spinning Decapitation bug, which is described at http://www.zope.org/Members/tseaver/Projects/HighlyAvailableZope/SpinningDec apitation (which links to a patch). This is fixed in 2.2 Cheers, Evan @ digicool & 4-am ___ 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] HTML Editors that recognize DTML (was bastardized form ofXML)
> Does anyone know of a good (free!) java applet based text editor? > Something > with basic color tagging abilities and maybe even (gasp) a spell checker, > search/replace, etc? If there is one, we could mod it to spit > its output as > a form post, and hus have a great built-in editor for most browsers... Haven't test any of these but here's some URLS http://freshmeat.net/appindex/2000/02/17/950801940.html http://freshmeat.net/appindex/1999/09/11/937058123.html > > Also, its not XML compliant either, but I have a shorter dtml syntax patch > available for download at: > > http://www.zope.org/Members/Coventry/dtml_shortcut > > it is a really small patch, and just allows <: to replace inside your documents, such as in the snippet below: > > <:var foo> > <:if expr="la=lala"> > So you think la and lala are the same!? > <:else> > Ah, so you see a diffrence! > > > it just leads to less typing. Comming from the asp/php world (as > of late, I > also do C and Perl), I got used to typing a lot less > characters to switch > from markup to scripting, and so figured I'd dive in and make > this change... > My 'wordfile.txt' for ultraedit will include this alternate syntax too. > > > -Original Message- > From: Eric L. Walstad [mailto:[EMAIL PROTECTED]] > Sent: Friday, June 23, 2000 6:14 PM > To: Jon Franz > Cc: [EMAIL PROTECTED] > Subject: RE: [Zope] HTML Editors that recognize DTML (was bastardized > form ofXML) > > > Hi Jon, > > Regarding Ultra-edit32 > > // and the file 'wordlist.txt' it uses can be > // edited easily to > // add new tags or keywords, or to define whole new languages of tags and > // keywords. > > Have you created a 'wordlist.txt' file that handles the DTML tags? If so, > would you mind sharing it? > > 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 ) > ___ 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] R: [Zope] Zope 2.1.6 Bug?
I have made a test Zope 2.1.4 and Debian Linux. I have the same problem... Later I'll try on Zope 2.1.6 && Slackware, now I can not acces the computer... - Original Message - From: James W. Howe <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, June 26, 2000 3:08 PM Subject: [Zope] Zope 2.1.6 Bug? > I'm running Zope 2.1.6 under Windows 2000. I've encountered a situation > where I can cause Zope to completely hang. For example, if I create a > DTMLMethod called test in the root folder and give it this > contents (leading spaces on the table tag are important): > > > > Hello > > > > and click the View tab, the page displays as expected. However, if I edit > this to look like this: > > > > Hello > > > Goodbye > > > > and click View, Zope goes off and never returns. The Python.exe file > continues to consume CPU but doesn't display anything. > > However, if I remove the leading spaces before the table tags, save my > changes and then click View, the contents are displayed immediately. I > then experimented with adding one space before the tag. The contents > displayed, but after a pause. Two spaces paused longer. > > Can anyone else verify this behavior? PM ___ 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] ZODB performance: reads to writes
- Original Message - From: Jimmie Houchin <[EMAIL PROTECTED]> > This is what I understand based on your reply and from the paper by Jim. > > 1. That there are solutions currently being worked on by DC (implied). >Yes, worked on does not mean 'Coming Soon to a Zope near You!' :) > > 2. That if an app, either by it's nature or thru it's developers design, > eliminates or handles conflicts before commits are made to the ZODB, > that high write situations are not a problem. AFAIK, these are both correct. > Is number 1. below something that would take place with BTree Folders? Yes. Cheers, Evan @ digicool & 4-am ___ 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] (no subject)
does anybody know how to have some statistic about each web pages under zope?? each pages is da result of query on a mysql database ! any id ???thx by advance L.Tonin
[Zope] More verbose zope errors
Hi, Is there any way to meke Zope be more verbose when hitting errors? Something like: Error Type: TypeError Error Value: illegal argument type for built-in operation Sucks it ass off to find where it came from. What operation? what argument? what line? Another mayor annoyance is that the sql used is shown when calling for dtml documents, but if if we have a chain dtml-doc->dtml-meth->zsql-meth, only the oracle error is shown -- Riku Voipio [EMAIL PROTECTED] 09-862 60764 ___ 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] Internationalization
I only have a few internationalized pages, but I'm more than half-way happy with a very simple approach: 1) an External Method "preferred_lang", which takes a list of possible languages as argument, and returns the language from that list that has the highest ranking in HTTP_ACCEPT_LANGUAGE. If there is no hit, it returns the first language in the list. import string def preferred_lang(self,langs): for lang in map(string.strip,string.split(self.HTTP_ACCEPT_LANGUAGE,',')): if lang in langs: return lang return langs[0] - This External Method is available as "PreferredLanguage" on the root folder. 2) In each internationalized page, I call the External Method with a list of the available languages (it is not the same for all pages), and then select the contents based on the result. De Hooft Familie Webdienst The Hooft Family Web etc - One advantage of this approach is that it keeps the different versions together (making updates to the information easy to keep consistent). One disadvantage of this approach is that it keeps the different versions together (making it difficult to appoint different people to maintaining the different languages), and another disadvantage is that it clutters up the dtml source. Suggestions for improvements always welcome. Regards, Rob Hooft -- = [EMAIL PROTECTED] http://www.hooft.net/people/rob/ = = R&D, Nonius BV, Delft http://www.nonius.nl/ = = PGPid 0xFA19277D == Use Linux! = ___ 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] problem with the beta
i am using 2.2 Beta 2 and every time i attempt to add a new folder, or a dtml document, i keep having this error Error Type: SuperCannotOwn Error Value: Objects cannot be owned by the superuser I never got this with 2.1.6 is this an error in the 2.2 beta 2 version, or do u think i just have a bad copy. i am going back to the 2.1.6 version till i find out Frank from Miami ___ Visit http://www.visto.com/info, your free web-based communications center. Visto.com. Life on the Dot. ___ 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 2.1.6 Bug?
I'm running Zope 2.1.6 under Windows 2000. I've encountered a situation where I can cause Zope to completely hang. For example, if I create a DTMLMethod called test in the root folder and give it this contents (leading spaces on the table tag are important): Hello and click the View tab, the page displays as expected. However, if I edit this to look like this: Hello Goodbye and click View, Zope goes off and never returns. The Python.exe file continues to consume CPU but doesn't display anything. However, if I remove the leading spaces before the table tags, save my changes and then click View, the contents are displayed immediately. I then experimented with adding one space before the tag. The contents displayed, but after a pause. Two spaces paused longer. Can anyone else verify this behavior? Thanks. James W. Howe mailto:[EMAIL PROTECTED] Allen Creek Software, Inc. pgpkey: http://ic.net/~jwh/pgpkey.html Ann Arbor, MI 48103 ___ 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] embed an SQL method inside a tag
+[ [EMAIL PROTECTED] ]- | Hi, | | I tried to embed an SQL method statement inside my listing, the | problem I'm facing was, will Z sql method detact the value I passed in, let | say : | | # This is my first listing | | #another sql_statement | | | | | # The bcd_statement will not be requested by a form | | The reason being I do this is because I need to do some interaction in the | results of bcd_statement. | | Any one can help or done this before ?? The inside loop bcd_statement needs to have the values passed to it explicitly, because values from the outer dtml-in will not be acquired. So... -- 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 )
[Zope] Problem with the datatype "lines"
Hi Zopers, I have found out that when using the datatype "lines" in my own ZClass it won't obey to the locale settings. That means that the words coming from "lines" look like: t/370nk. And therefore they don't get correctly indexed in the database. I'm running Zope 2.1.6 (on both linux and winnt 4.0). Is there an update to this problem or a workaround ? Thanks in advance -- Regards - Anders Holmbech Nielsen | Tlf: (+45) 70 22 56 00 Software Engineer | Fax: (+45) 70 22 57 00 Integrator Uniware A/S | http:/www.integrator.dk ___ 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] help a zope newbie
Hello I want to know more about Zope. I have seen few site powered by Zope. One thing I had noticed is that almost all of those sites are mostly static pages. I mean I am interested to see how can Zope be used for a portal. like containing many pages having lots of form variables. database connectivity etc. what is the performance then. can anybody help me evaluating this. thanks in advance. Amit .--. |o_o | |:_/ | // \ \Amit Redij (| | ) mailto:[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 )
[Zope] embed an SQL method inside a tag
Hi, I tried to embed an SQL method statement inside my listing, the problem I'm facing was, will Z sql method detact the value I passed in, let say : # This is my first listing #another sql_statement # The bcd_statement will not be requested by a form The reason being I do this is because I need to do some interaction in the results of bcd_statement. Any one can help or done this before ?? Please help. Cheers Wai ___ 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] Translator package/project died or what ?
Hi everyone, especially J. David Ibáñez and Federico Di Gregorio :-) Since Federico did not reply to my mail I am posting this on the list to gain responses. We **need** a translator package for Zope. We will be hosting a site that will have the feature to "speak" different languages. So I got Translator-0.5.tar.gz from somewhere (do not ask me where, I forgot). Unpacked it and restarted Zope. The product is broken since it tries to import: from Shared.xmlio import XMLio But this is obviously not available (I tried finding it on zope.org and with google/altavista). The only available xml package is in DC.xml and is based on xmllib. Now here is the question: Does anyone have the XMLio stuff ? If so can this someone be so nice and either post the URL here or make it available and post the URL here ? If all this is in vain and that package will not be developed any further, can someone tell me if there is another solution out there ? - TIA Holger -- --- catWorkX GmbH Hamburg Dipl.-Ing. Holger Lehmann Stresemannstr. 364 22761 Hamburg Tel: +49 40 890 646-0 Fax: +49 40 890 646-66 mailto:[EMAIL PROTECTED] http://www.catworkx.de http://www.catbridge.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 )
Re: [Zope] 2.2.0b2 dies in Windows NT4
On Sun, 25 Jun 2000 13:15:39 +1300, Graham Chiu <[EMAIL PROTECTED]> wrote: >I've tried this again. When I access the manage page, an Import/Export >tab at folder / comes up, and then Python.exe dies with an NT exception >which is a stack overflow :-( Stack overflow is a clue. Python tries to detect too-deep recursion, however in python 1.5.2 the limit is set a bit too high, and NT catches it first. There is a replacement python15.dll somewhere on www.python.org that sets the limit lower: you will get a very long traceback instead. Toby Dickenson [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] ZODB performance: reads to writes
On Sat, 24 Jun 2000 12:43:05 -0400, "Evan Simpson" <[EMAIL PROTECTED]> wrote: >> Will an app as described above still suffer from problems with high >writes? >There are two independent attacks on this problem underway: >2. Implement the application-level conflict handling you read about, so that >Folders and Catalogs can decide that two writes don't conflict after all, >and merge them into a single update. Yes, that will help >1. Make Folders and Catalogs store meta-data about their contents in a data >structure consisting of small persistent objects, like B-Tree nodes. This >reduces the scope of potential conflict (and the size of the update required >by a write) to the size of one of these nodes. As I understand it, a BTreeFolder alone (ie without application-level conflict handling) will not help here. Folders have to ensure that all their contained elements have a different id. The hot-spot is the only way a Folder can achieve this. Toby Dickenson [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] Re: SiteAccess & 2.1.6
Oleg Broytmann wrote: > > On Sun, 25 Jun 2000, ethan mindlace fremen wrote: > > repeatably make 2.1.6 not work with SiteAccess 1.0.1 , you should let us > > know about it. I don't think there are millions of failures with > > SiteAccess. > >There certainly are. Many people in Russian Python/Zope User Group asked > in our mailing list "What the hell with authentication in 2.1.6?" - and > downgrading to 2.1.4 always helped. You have a group millions large??? Wow. ;-) ___ 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] Re: SiteAccess & 2.1.6
On Mon, 26 Jun 2000, Bill Anderson wrote: > You have a group millions large??? Wow. ;-) No, but three errors are more than enough... 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] Worldpilot record problem with restarting Zope
Hi all, I have a problem with my worldpilot, I found the worldpilot cannot remove any deleted record after the ZOPE is restarted I have setup my worldpilot and zope in my NT4.0 server successfully, and I can create and delete my record successfully as well, but after I restart the ZOPE, all the removed records are back in again. This creating some problems here, (1) It cannot REALLY remove the records, (2) I cannot restart my ZOPE, (3) If the record cannot remove, then the database will become too large... Can anyone help me one that Thank ADG
[Zope] Problem with the datatype "lines"
Hi Zopers, I have found out that when using the datatype "lines" in my own ZClass it won't obey to the locale settings. That means that the words coming from "lines" look like: t/370nk. And therefore they don't get correctly indexed in the database. I'm running Zope 2.1.6 (on both linux and winnt 4.0). Is there an update to this problem or a workaround ? Thanks in advance -- Regards - Anders Holmbech Nielsen | Tlf: (+45) 70 22 56 00 Software Engineer | Fax: (+45) 70 22 57 00 Integrator Uniware A/S | http:/www.integrator.dk ___ 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] MySQLDA Problems with simple constant/function queries
This is actually fixed in both 1.1.4 and in 1.2.0. The problem has to do with type conversions from a dictionary in the adapter. Any type of non-row function or aggregate returns a type of 'unhandled' which was not mapped in the conversion dictionary. This is fairly much the bug that called for 1.1.4 to be released. You're right, though, very easy to fix. 1.2.0 deals with the problem by taking a different approach to type-mapping. Monty Stefan Franke wrote: > > I'm using MySQLDA 1.1.3 on Win32. When I type the following queries > into the test tab edit box, I get the traceback below: > > select LAST_INSERT_ID() > > or > > select 1 from > > Of course "select * from " works. > > When I look into db.py, the error doesn't look very hard to fix, I think > I'll give tomorrow. Is there some API documentation of what a DA is > supposed to do? > > Since the 1.1.4 query() code is identical, I think the problem appears > there as well. > > Please reply to the posting via email directly, since I'm not subscribed > to the list. > > Stefan > www.meso.net > > --- > > Error Type: KeyError > Error Value: unhandled > > Traceback (innermost last): > File D:\Programme\Zope2.2\mensa_m\lib\python\ZPublisher\Publish.py, line > 224, in publish_module > File D:\Programme\Zope2.2\mensa_m\lib\python\ZPublisher\Publish.py, line > 189, in publish > File D:\Programme\Zope2.2\mensa_m\lib\python\Zope\__init__.py, line 221, > in zpublisher_exception_hook > (Object: RoleManager) > File D:\Programme\Zope2.2\mensa_m\lib\python\ZPublisher\Publish.py, line > 175, in publish > File D:\Programme\Zope2.2\mensa_m\lib\python\ZPublisher\mapply.py, line > 160, in mapply > (Object: manage_test) > File D:\Programme\Zope2.2\mensa_m\lib\python\ZPublisher\Publish.py, line > 112, in call_object > (Object: manage_test) > File D:\Programme\Zope2.2\mensa_m\lib\python\Shared\DC\ZRDB\Connection.py, > line 178, in manage_test > (Object: RoleManager) > File D:\Programme\Zope2.2\mensa_m\lib\python\Products\ZMySQLDA\db.py, line > 191, in query > KeyError: (see above) > > ___ > 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 ) begin:vcard n:Taylor;Monty tel;cell:+31 (0)6 200 17486 tel;fax:+31 (0)20 589 5566 tel;work:+31 (0)20 589 5517 x-mozilla-html:TRUE url:http://www.goldridge.net org:Information Innovation adr:;;Amstelveenseweg 88-90;Amsterdam;;1075 XJ;The Netherlands version:2.1 email;internet:[EMAIL PROTECTED] title:Information Artist x-mozilla-cpt:;0 fn:Monty Taylor end:vcard
Re: [Zope] (no subject)
"Jay, Dylan" wrote: > > > -Original Message- > > From: Marco Mariani [mailto:[EMAIL PROTECTED]] > > Sent: Friday, June 23, 2000 9:54 PM > > To: Jay, Dylan; [EMAIL PROTECTED] > > Subject: Re: [Zope] (no subject) > > > > > > On Fri, Jun 23, 2000 at 04:32:39PM +1000, Jay, Dylan wrote: > > > > > It seems to me that a few tweaks to the dtml-if syntax > > would be beneficial > > > > > > something like the following would certainly clean up some > > of the logic I > > > end up writing. > > > > > > > > > > > > > > > link text > > > > > > (no link currently available) > > > > > > > > > > > > > > > > >link text > > > > > >link text > >(no link...) > > > > yes but the repitition of "link text" could be a real pain if "link_text" is > big. Repitition is always a maintance nightmare. If it is, make it a method or attribute. (No Link Available) You could make the links objects, such that: Sorry, no links available at this time. The real question is why have link text that doesn't link... ;) ___ 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] geting the type of an object from within dtml ??? ==> it works
Title: RE: [Zope] geting the type of an object from within dtml ??? ==> it works Hello, >> works. Yes, it display the correct meta type. Thanks. When I had done some tests, I forgot to set the meta_type field, and the system was displaying the meta type of the superclass instead. (which had confused me). Note: I am still not very confortable to use the "meta_type" field to get the class name, and would rather have prefered to have the real class itself. (python type function). Thank you again for your help. Thierry Thierry Nabeth Research Fellow INSEAD CALT (the Centre for Advanced Learning Technologies) http://www.insead.fr/CALT/ -Original Message- From: ethan mindlace fremen [mailto:[EMAIL PROTECTED]] Sent: Monday, June 26, 2000 3:43 AM To: Thierry Nabeth Cc: [EMAIL PROTECTED] Subject: Re: [Zope] geting the type of an object from within dtml ??? Thierry Nabeth wrote: > for instance: > > does not return the correct type. works. You can also use things like hope that helps, -- ethan mindlace fremen Zopatista Community Liason
Re: [Zope] Zope 2.2.0b2 - Undo
Thanks! On Sat, 24 Jun 2000, Lalo Martins wrote: > The way I see it, each Folder's Undo tab displays all actions > from there below, for which the current user has permission to > undo. (So still the root folder's Undo tab displays _all_ > actions, assuming the current user has all permissions.) Nice design! 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 )
Re: [Zope] Re: SiteAccess & 2.1.6
On Sun, 25 Jun 2000, ethan mindlace fremen wrote: > repeatably make 2.1.6 not work with SiteAccess 1.0.1 , you should let us > know about it. I don't think there are millions of failures with > SiteAccess. There certainly are. Many people in Russian Python/Zope User Group asked in our mailing list "What the hell with authentication in 2.1.6?" - and downgrading to 2.1.4 always helped. Anyway it's too late to solve the puzzle - I am in the middle of the process of upgrading to 2.2.0b2. 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 )
Re: [Zope] getting the type of an object from within dtml ???
> >> would you please elaborate what are you trying to determine the > type of? > > Sorry for my lack of clarity. > > I would like to get the class of the object, just using dtml. (and > without using external method) > > Typically, the idea would be to define a dtml method (for instance > getclass) that return the class > of the object, so that I could write: > > --- in a dtml-method defined for a Class A, and that can be called > from instance > of class A or subclasses of A. > ... > My class is : If you call an object like so ">, without parenthesis, in the source it will give you what you want. It is just that Python returns it like . Because it's like a html tag, it will only show in the source of your object. If this is the information you want, you should find a way of escaping the < and >. You might use and external method for this (calling this getclass perhaps). Otherwise, the meta-type is the best solution, as these are unique for classes anyway. Most classes are called the same as their meta type anyway. > ... > > >> Zope namespace ... eventually the namespace will be explained and > documented better. > > I believe this is not a matter of documentation. > It is just that is is uselessly too complicate. > > Note: > I very much like some of the ideas behind Zope. (such as the good > integration > of an OO database in the system, use of a dynamic language, etc.) > But I can really not get used to some of the other aspects that are > very well > addressed by other systems, but are so poorly addressed by Zope such > as: > * the namespace. Yes this can be complicated, but most real complications are caused by acquisition, which is one of the main Zope features. What is a pain, is the way of handling namespaces in DTML. But DTML wasn't created for that. I'm not entirely convinced changing to Python/External Methods is a much better solution to many problems, though. > * bad integration with python. Zope as a whole is very tightly integrated with Python IMHO. You probably mean DTML integration with Python, which is true. You could change to using PythonMethods, which (arguably) make complicated logic easier. Or contribute to making DTML more Pythonish. > * can not change the inheritance tree once a class has been created. Of a ZClass you mean. That's true. Changin classes inside a Python Product shouldn't be too bad, however. > > (I have tried one of the trick that was posted somewhere, but it > does not work 100%). > * very bad support for pointers (object1 --> object2). Yes, that's true, though clever use of the Catalog might help you there somewhat. Rik ___ 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] Can not add Zope Tutorial with 2.2
On Sun, 25 Jun 2000, Brian Lloyd wrote: > Did you try to _import_ the tutorial or add it from the "add list" > in the management interface? It is intended that you should add it > from the add list (this should be better documented though...) Both variants didn't work for me - both gave "len() of unsized object"! 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 )
RE: [Zope] getting the type of an object from within dtml ???
Title: RE: [Zope] getting the type of an object from within dtml ??? Hello, >> would you please elaborate what are you trying to determine the type of? Sorry for my lack of clarity. I would like to get the class of the object, just using dtml. (and without using external method) Typically, the idea would be to define a dtml method (for instance getclass) that return the class of the object, so that I could write: --- in a dtml-method defined for a Class A, and that can be called from instance of class A or subclasses of A. ... My class is : ... >> Zope namespace ... eventually the namespace will be explained and documented better. I believe this is not a matter of documentation. It is just that is is uselessly too complicate. Note: I very much like some of the ideas behind Zope. (such as the good integration of an OO database in the system, use of a dynamic language, etc.) But I can really not get used to some of the other aspects that are very well addressed by other systems, but are so poorly addressed by Zope such as: * the namespace. * bad integration with python. * can not change the inheritance tree once a class has been created. (I have tried one of the trick that was posted somewhere, but it does not work 100%). * very bad support for pointers (object1 --> object2). Thierry Thierry Nabeth Research Fellow INSEAD CALT (the Centre for Advanced Learning Technologies) http://www.insead.fr/CALT/ -Original Message- From: alan runyan [mailto:[EMAIL PROTECTED]] Sent: Monday, June 26, 2000 5:36 AM To: Thierry Nabeth; [EMAIL PROTECTED] Subject: Re: [Zope] geting the type of an object from within dtml ??? > I have unsuccessifully been trying to figure out ou to get the type of an > object > from withing html. are you talking about a ZOPE object? remember if you are a DTML Method your 'meta_type' will return the container object (it doenst have its own namespace) you could try > Python is supposed to have a function type(object) that return the type, > but I was not able to find a way to call it. (and I would rather prefere not > to have > to define an external function.). would you please elaborate what are you trying to determine the type of? > My problem seems to have to do with the Zope namespace (which model I > believe is > a real pain in the ass :-). I agree. _[_['blah']] is probably the nastiest thing I've ever seen. and then someone will start adding lambdas to it and it will be all crap to maintain from there... :( eventually the namespace will be explained and documented better, this is mainly a python/ZOPE framework idea that needs to be experienced. I still dont 100% get it. I can usually make things work, but sometimes I just dont quite 'get it'. > > Any suggestion, ideas ? be abit more specific, you using python methods,. external methods, or trying to do this from within DTML? ~runyaga
[Zope] Unique Identifiers for Zope Objects
I'm looking for an internal globally unique identifier for objects in my Zope store. I know that I can use id=object.absolute_url() to create an identifier and then .resolve_url(id) to recover the object from the identifier -- but I have two problems with this API: 1. The URL is not really a global identifier, as resolving it seems to depend on the from which I call resolve_url(). In particular, if the id is created when Zope is running normally (as a service), and resolved when running Zope from the command line debugger, the resolve fails. This is not good. 2. The need to locate an object carrying the resolve_url() function is a problem; in particular, I would find it helpful if I could resolve my global identifier from within a __setstate__() method (where I have no access to local Zope variables), so I really want a genuinely global function for resolving my id. Any suggestions, or do I have to dig into the (disagreeable and uncommented) bowels of Zope and write my own? (If this is on the wrong list, please point me to the right one. Thanks.) ___ 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 )