[Zope] Nested Tag Creation
I want to create a tag that has sub-tags. Now I know I can use blockContinuations to approximate this, but, I think it would be cleaner to be able to define tags that are only available within the context of the main tag (namespaces and all that). Is this possible? Without rolling my own parser ? I don't see a lot of tag products being released so I assume that this is not a widely used thing for Zope. -- Totally Holistic Enterprises Internet| P:+61 7 3870 0066 | Andrew Milton The Internet (Aust) Pty Ltd | F:+61 7 3870 4477 | ACN: 082 081 472 ABN: 83 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] Patch for Netscape 'tree' bug?
Hi, It seems that 2.2.0 doesn't have the patch for the infamous Netscape 'tree' bug. The site that did have the patch is no longer available. Has anyone got the patch availble? TIA Tone ___ 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] manage_addDTMLMethod vs. manage_addZSQLMethod
Why does this work While this does not: (the database connection DB is there) I studies the Znolk product and found that it uses _setObject directly instead of manage_addZSQLMethod . Should I just wrap _setObject into an external method (to make it visible) and start using it or is there a simpler way ? - 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] Zope is very slow!
one! Andy McKay wrote: > How many processors? > > -- > Andy McKay, Developer, ActiveState > http://www.ActiveState.com > Programming for the People > > - Original Message - > From: "Terry Kerr" <[EMAIL PROTECTED]> > To: "J. Atwood" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> > Sent: Thursday, August 17, 2000 4:14 PM > Subject: Re: [Zope] Zope is very slow! > > > We did some pretty heavy performance testing of a particar application > comparing > > 2.1.6 and 2.2.0 and 2.2.0 was slower in most cases. The testing was done > on a > > Celeron533 128Meg RAM running RH6.1. > > > > terry > > > > > > "J. Atwood" wrote: > > > > > I am pretty sure (61%) that in the original release of 2.2.0 there was > > > something about a speed increase. One talked about on single processor > > > (20-40%) and the other was dual processor (60-80%). It partly has to do > with > > > that "one line of magic code" in the z2.py. > > > > > > Ethan? Paul? DC? Care to shed some light? > > > > > > J > > > > > > > From: Chris Withers <[EMAIL PROTECTED]> > > > > Organization: New Information Paradigms > > > > Date: Thu, 17 Aug 2000 17:15:57 +0100 > > > > To: Andy McKay <[EMAIL PROTECTED]> > > > > Cc: "J. Atwood" <[EMAIL PROTECTED]>, [EMAIL PROTECTED] > > > > Subject: Re: [Zope] Zope is very slow! > > > > > > > > Andy McKay wrote: > > > >> > > > >>> Upgrade to 2.2.1 (60% faster on dual processors). > > > >> > > > >> Really? I didnt see anything about this in the Changes file... has > something > > > >> else changed I didnt see? I noticed that 2.1.6 wasnt making the best > use of > > > >> dual processors. > > > > > > > > I thought only ZEO would make good use fo dual processors? > > > > > > > > Chris > > > > > > > > > > ___ > > > 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 ) > > > > -- > > Terry Kerr ([EMAIL PROTECTED]) > > Adroit Internet Solutions Pty Ltd (www.adroit.net) > > Phone: +613 9563 4461 > > Fax: +613 9563 3856 > > Mobile: +61 414 938 124 > > ICQ: 79303381 > > > > > > > > > > ___ > > 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 ) -- Terry Kerr ([EMAIL PROTECTED]) Adroit Internet Solutions Pty Ltd (www.adroit.net) Phone: +613 9563 4461 Fax: +613 9563 3856 Mobile: +61 414 938 124 ICQ: 79303381 ___ 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 is very slow!
We did some pretty heavy performance testing of a particar application comparing 2.1.6 and 2.2.0 and 2.2.0 was slower in most cases. The testing was done on a Celeron533 128Meg RAM running RH6.1. terry "J. Atwood" wrote: > I am pretty sure (61%) that in the original release of 2.2.0 there was > something about a speed increase. One talked about on single processor > (20-40%) and the other was dual processor (60-80%). It partly has to do with > that "one line of magic code" in the z2.py. > > Ethan? Paul? DC? Care to shed some light? > > J > > > From: Chris Withers <[EMAIL PROTECTED]> > > Organization: New Information Paradigms > > Date: Thu, 17 Aug 2000 17:15:57 +0100 > > To: Andy McKay <[EMAIL PROTECTED]> > > Cc: "J. Atwood" <[EMAIL PROTECTED]>, [EMAIL PROTECTED] > > Subject: Re: [Zope] Zope is very slow! > > > > Andy McKay wrote: > >> > >>> Upgrade to 2.2.1 (60% faster on dual processors). > >> > >> Really? I didnt see anything about this in the Changes file... has something > >> else changed I didnt see? I noticed that 2.1.6 wasnt making the best use of > >> dual processors. > > > > I thought only ZEO would make good use fo dual processors? > > > > Chris > > > > ___ > 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 ) -- Terry Kerr ([EMAIL PROTECTED]) Adroit Internet Solutions Pty Ltd (www.adroit.net) Phone: +613 9563 4461 Fax: +613 9563 3856 Mobile: +61 414 938 124 ICQ: 79303381 ___ 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 is very slow!
How many processors? -- Andy McKay, Developer, ActiveState http://www.ActiveState.com Programming for the People - Original Message - From: "Terry Kerr" <[EMAIL PROTECTED]> To: "J. Atwood" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday, August 17, 2000 4:14 PM Subject: Re: [Zope] Zope is very slow! > We did some pretty heavy performance testing of a particar application comparing > 2.1.6 and 2.2.0 and 2.2.0 was slower in most cases. The testing was done on a > Celeron533 128Meg RAM running RH6.1. > > terry > > > "J. Atwood" wrote: > > > I am pretty sure (61%) that in the original release of 2.2.0 there was > > something about a speed increase. One talked about on single processor > > (20-40%) and the other was dual processor (60-80%). It partly has to do with > > that "one line of magic code" in the z2.py. > > > > Ethan? Paul? DC? Care to shed some light? > > > > J > > > > > From: Chris Withers <[EMAIL PROTECTED]> > > > Organization: New Information Paradigms > > > Date: Thu, 17 Aug 2000 17:15:57 +0100 > > > To: Andy McKay <[EMAIL PROTECTED]> > > > Cc: "J. Atwood" <[EMAIL PROTECTED]>, [EMAIL PROTECTED] > > > Subject: Re: [Zope] Zope is very slow! > > > > > > Andy McKay wrote: > > >> > > >>> Upgrade to 2.2.1 (60% faster on dual processors). > > >> > > >> Really? I didnt see anything about this in the Changes file... has something > > >> else changed I didnt see? I noticed that 2.1.6 wasnt making the best use of > > >> dual processors. > > > > > > I thought only ZEO would make good use fo dual processors? > > > > > > Chris > > > > > > > ___ > > 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 ) > > -- > Terry Kerr ([EMAIL PROTECTED]) > Adroit Internet Solutions Pty Ltd (www.adroit.net) > Phone: +613 9563 4461 > Fax: +613 9563 3856 > Mobile: +61 414 938 124 > ICQ: 79303381 > > > > > ___ > 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] looking for DTML Property examples
http://www.zope.org/Members/lstaffor/zProperties falls just a little short of what you're asking for. There's been a lot of discussion on the subject recently on this list. Perhaps you could search back, piece together the collected wisdom, and write the next chapter on Properties. BTW, properties for ZClasses and properties of builtin objects are a little different. ...Another issue that needs clarification. -- Loren - Original Message - From: "Jason Cunliffe" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: August 17, 2000 02:36 PM Subject: [Zope] looking for DTML Property examples > Hello > > I am looking for some basic examples on using Properties in Zope. > For example: How-To write methods which put and get properties, and with > these examples of accessing properties via URLs directly as wellas via > custom methods. > > There must be a ton of examples _somewhere_, but somehow, I can't seem to > find them and th ORA book is not out yet [praying hard for great index and > LOTS of small examples thourhgt the text]. > > Thanks in advance for any links > > - Jason > > Jason CUNLIFFE = NOMADICS.(Interactive Art and Technology).Design Director > > > > ___ > 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] looking for DTML Property examples
Hello I am looking for some basic examples on using Properties in Zope. For example: How-To write methods which put and get properties, and with these examples of accessing properties via URLs directly as wellas via custom methods. There must be a ton of examples _somewhere_, but somehow, I can't seem to find them and th ORA book is not out yet [praying hard for great index and LOTS of small examples thourhgt the text]. Thanks in advance for any links - Jason Jason CUNLIFFE = NOMADICS.(Interactive Art and Technology).Design Director ___ 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: [Zope-dev] Aaargh, no safe seperators :S
Dont put . in id's... I try not to anyway. Could we say . or if your id has a . use something else eg: &dtml-foo.[bar.dot].y ? -- Andy McKay, Developer, ActiveState http://www.ActiveState.com Programming for the People - Original Message - From: "Chris Withers" <[EMAIL PROTECTED]> To: "Shane Hathaway" <[EMAIL PROTECTED]> Cc: "Jonothan Farr" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday, August 17, 2000 1:57 PM Subject: [Zope-dev] Aaargh, no safe seperators :S > Shane Hathaway wrote: > > That would probably work, but isn't kind of ugly? Now we'd be forcing > > people to realize that colons can be path separators. Only Mac users > > know this. :-) > > Well, > > / and \ are bad XML > > ; is bad XML, and _really_ ugly > > . confuses when there's .'s in ids > > Any other suggestions :S > > cheers, > > Chris > > ___ > Zope-Dev maillist - [EMAIL PROTECTED] > http://lists.zope.org/mailman/listinfo/zope-dev > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope ) > ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Amazing Disappearing Self
Hi Zope Fans, Has anyone seen a case where acquisition works, but only in the topmost folder? The site I'm working on shows no problem on a test server, but upon moving to a production server any URL pointing to a subfolder, or a document contained in a subfolder returns an error (below). The production server is Red Hat linux, Zope 2.1.6 A Proxy (running on a separate server) re-directs URLS to the top folder of the Zope tree, just below "root". The oddest part is that elements available in the "root" (standard_html_header, and other elements called within) show up on the same "page" as the error message. It's as if Zope is working partially, but after displaying all the elements at the top of the tree, the silly document can't find itself . . . BTW, the raw URL (as seen in REQUEST) contains lot's of cookie garbage which may be causing the problem. I have added something like as suggested in some "How-Tos" at Zope.org. This got me to the point of having the top folder render correctly, which was better than I had seen up to that point. Alas, that's where progress stopped altogether. On the test server everything "just worked", the way you sort of get used to with Zope . . . The worst part is that some of the errors I'm seeing spill the guts of the cookie all over the browser screen. BTW, what does it take to get standard_error_message to actually do what the dtml implies, to substitute the contents of an error_message object, where it exists? Thanks, Jerry S. (here's that error message) Zope has encountered an error while publishing this resource. Resource not found Sorry, the requested Zope resource does not exist. Check the URL and try again. Troubleshooting Suggestions The URL may be incorrect. The parameters passed to this resource may be incorrect. A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the HTML source for this page. If the error persists please contact the site maintainer. Thank you for your patience. Traceback (innermost last): File /l01/Zope-2.1.6-linux2-x86/lib/python/ZPublisher/Publish.py, line 214, in publish_module File /l01/Zope-2.1.6-linux2-x86/lib/python/ZPublisher/Publish.py, line 179, in publish File /l01/Zope-2.1.6-linux2-x86/lib/python/Zope/__init__.py, line 202, in zpublisher_exception_hook (Object: ApplicationDefaultPermissions) File /l01/Zope-2.1.6-linux2-x86/lib/python/ZPublisher/Publish.py, line 151, in publish File /l01/Zope-2.1.6-linux2-x86/lib/python/ZPublisher/BaseRequest.py, line 308, in traverse File /l01/Zope-2.1.6-linux2-x86/lib/python/OFS/Application.py, line 249, in __bobo_traverse__ (Object: ApplicationDefaultPermissions) File /l01/Zope-2.1.6-linux2-x86/lib/python/ZPublisher/HTTPResponse.py, line 511, in notFoundError NotFound: (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 )
Re: [Zope] Creating an object from within another
Yeah, that's what i thought, but I know it exists cause I can create an object of type B and I copied and pasted the manage_addB part? For any one else who is reading this: the problem is: I have a product I'll call B. Additionally I have a folderish product I'll call myFolder. What I want to do is when I create a folderish object (a myFolder) in it I want an object B, very similar to when a folder is created you can have a DTMLMethod created. And here is the rub, I am able to have my folderish object create a DTMLMethod instead of an object B. Any thoughts, Dan Andy McKay wrote: > Not to sure there Im afraid. The obvious answer is the manage_addB doesnt > exist whereas manage_addDTMLDocument does. > > -- > Andy McKay, Developer, ActiveState > http://www.ActiveState.com > Programming for the People > > - Original Message - > From: "Daniel Rusch" <[EMAIL PROTECTED]> > To: "Daniel Rusch" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> > Sent: Thursday, August 17, 2000 1:39 PM > Subject: [Zope] Creating an object from within another > > > So far so good, > > > > Next hurdle, at least the problems have been cut down to hurdles from > walls. > > > > I have a folderish product say myFolder, in the manage_addMyFolder > function I > > want to create an object of my product B. so I do this: > > > > def manage_addmyFolder(self, id, title='', > > REQUEST=None): > > """Add a new myFolder object with id *id*. > > """ > > ob=myFolder() > > ob.id=id > > ob.title=title > > self._setObject(id, ob) > > try: user=REQUEST['AUTHENTICATED_USER'] > > except: user=None > > ob.manage_addB(id='index_html', title='') <-- if I change this to > > ob.manage_addDTMLDocument(id='index_html', title='') that works ? > > ... > > > > I get the following error: > > > > AttributeError: manage_addB > > > > > > > > Any thoughts, > > > > DR > > > > > > > > > > > > ___ > > 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] Re: [Zope-dev] Cool, we like the . :-)
I vote we continue the dtml tradition and go for some strange unpredictable combination of _[']'_''['] ;-) -- Andy McKay, Developer, ActiveState http://www.ActiveState.com Programming for the People - Original Message - From: "Zope" <[EMAIL PROTECTED]> To: "Chris Withers" <[EMAIL PROTECTED]>; "Jonothan Farr" <[EMAIL PROTECTED]> Cc: "zope" <[EMAIL PROTECTED]> Sent: Thursday, August 17, 2000 1:50 PM Subject: Re: [Zope] Re: [Zope-dev] Cool, we like the . :-) > > Jonothan Farr wrote: > > > What if an object id contains a period? > > Yeah, Steve noticed that too :S > > What about &dtml-:folder:object; > > How about &dtml-zope.foo.bar; or &dtml-app.foo.bar; > > //Johan Carlsson > > ___ > 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] Creating an object from within another
Not to sure there Im afraid. The obvious answer is the manage_addB doesnt exist whereas manage_addDTMLDocument does. -- Andy McKay, Developer, ActiveState http://www.ActiveState.com Programming for the People - Original Message - From: "Daniel Rusch" <[EMAIL PROTECTED]> To: "Daniel Rusch" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday, August 17, 2000 1:39 PM Subject: [Zope] Creating an object from within another > So far so good, > > Next hurdle, at least the problems have been cut down to hurdles from walls. > > I have a folderish product say myFolder, in the manage_addMyFolder function I > want to create an object of my product B. so I do this: > > def manage_addmyFolder(self, id, title='', > REQUEST=None): > """Add a new myFolder object with id *id*. > """ > ob=myFolder() > ob.id=id > ob.title=title > self._setObject(id, ob) > try: user=REQUEST['AUTHENTICATED_USER'] > except: user=None > ob.manage_addB(id='index_html', title='') <-- if I change this to > ob.manage_addDTMLDocument(id='index_html', title='') that works ? > ... > > I get the following error: > > AttributeError: manage_addB > > > > Any thoughts, > > DR > > > > > > ___ > 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] Re: Bug in
http://classic.zope.org:8080/Collector/1056/view Back on Februrary 14th, I submitted this bug, however your account of it is much better than mine. It has been pending for quite some time, but either way I never found a good solution to this problem. There is some sort of work around involving continuing to present next buttons with sequence+1 until you get to the end of the sequence. -Mike > Hi, > > I am working on a project with Zope. Unfortunately I am having a problem > whith the tag. I am using the batch processing feature and want to > show only one element per sequence. I do this by setting size=1 and orphan=1. > But th tag only iterates over the first two records (I have 8 > records). It iterates over all 8 records when I use size=2 orphan=1. I think > this is a bug. > > The problem seems to be in the correct value of next-sequence. > > Could someone tell me how I could fix this? Here is my code: > > > > > << > > << > > [...] > > [...] > > > > >> > > >> > > > > > > > -- > Marcus Gruendler > eMail: [EMAIL PROTECTED] > WWW : http://www.tamalin.de/runner/index.html ___ 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: [Zope-dev] Cool, we like the . :-)
> Jonothan Farr wrote: > > What if an object id contains a period? > Yeah, Steve noticed that too :S > What about &dtml-:folder:object; How about &dtml-zope.foo.bar; or &dtml-app.foo.bar; //Johan Carlsson ___ 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: [Zope-dev] Cool, we like the . :-)
Chris Withers wrote: > > Jonothan Farr wrote: > > > > What if an object id contains a period? > > Yeah, Steve noticed that too :S > > What about &dtml-:folder:object; > > ? That would probably work, but isn't kind of ugly? Now we'd be forcing people to realize that colons can be path separators. Only Mac users know this. :-) Shane ___ 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] Creating an object from within another
So far so good, Next hurdle, at least the problems have been cut down to hurdles from walls. I have a folderish product say myFolder, in the manage_addMyFolder function I want to create an object of my product B. so I do this: def manage_addmyFolder(self, id, title='', REQUEST=None): """Add a new myFolder object with id *id*. """ ob=myFolder() ob.id=id ob.title=title self._setObject(id, ob) try: user=REQUEST['AUTHENTICATED_USER'] except: user=None ob.manage_addB(id='index_html', title='') <-- if I change this to ob.manage_addDTMLDocument(id='index_html', title='') that works ? ... I get the following error: AttributeError: manage_addB Any thoughts, DR ___ 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] Zugriff auf Mootcourt Server
Hallo, der Zugriff auf den Mootcourt-Server von den Rechnern im HiWi-Raum funkt. nach Lokalisierung des Firewallproblems seit heute wieder. Die User und koennen wieder uneingeschraenkt arbeiten. Gruesse Marcus __ (0> Marcus Schopen //\ Bielefeld, Germany V_/_ __ ___ 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: [Zope-dev] Cool, we like the . :-)
Jonothan Farr wrote: > > What if an object id contains a period? Yeah, Steve noticed that too :S What about &dtml-:folder:object; ? cheers, Chris ___ 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: [Zope-dev] Cool, we like the . :-)
What if an object id contains a period? --jfarr - Original Message - From: Chris Withers <[EMAIL PROTECTED]> To: Steve Alexander <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Thursday, August 17, 2000 11:59 AM Subject: [Zope-dev] Cool, we like the . :-) > > Steve Alexander wrote: > > I can't think of a nice alternative to mean &dtml-/foo/bar/baz; "from > > the root, traverse as follows". > > &dtml-.foo.bar.baz; > > not nice, btu I can't think of anything better :( > > cheers, > > Chris > > ___ > Zope-Dev maillist - [EMAIL PROTECTED] > http://lists.zope.org/mailman/listinfo/zope-dev > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/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] getting base classes's (super class) _properties tuple
Aargh isnt that annoying. Gosh you are right im using lists of dictionaries... my Zope code is correct, but that example is wrong. The example still works though... -- Andy McKay, Developer, ActiveState http://www.ActiveState.com Programming for the People - Original Message - From: "Daniel Rusch" <[EMAIL PROTECTED]> To: "Andy McKay" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday, August 17, 2000 12:19 PM Subject: Re: [Zope] getting base classes's (super class) _properties tuple > I can't believe it, but I didn't have the last comma ({'b':'B', 'bb':'BB'}, ) > and that's what was killing me .agh > > BTW, I noticed you are using lists of dictionaries instead of the "standard" > tuple of dictionaries. I don't know if there are any consequences to doing > this. Anyway, since yours are lists you should be able to to do this: > > class A: > _properties = [ {'a':'A', 'aa':'AA'}, ] > > class B(A): > _properties = [ {'b':'B', 'bb':'BB'}, ] > _properties.append(A._properties) > > not that it realy matters. > > Thanks, > > Dan > > Andy McKay wrote: > > > class A: > > _properties = [ {'a':'A', 'aa':'AA'}, ] > > > > class B(A): > > _properties = [ {'b':'B', 'bb':'BB'}, ] > > _properties = _properties + A._properties > > > > b = B() > > print b._properties > > > > Works for me. > > -- > > Andy McKay, Developer, ActiveState > > http://www.ActiveState.com > > Programming for the People > > > > - Original Message - > > From: "Daniel Rusch" <[EMAIL PROTECTED]> > > To: <[EMAIL PROTECTED]> > > Sent: Thursday, August 17, 2000 11:30 AM > > Subject: [Zope] getting base classes's (super class) _properties tuple > > > > > Say I have a fully functional (and more importantly, working) Product > > > will call A. > > > > > > I want to extend this Product's capabilities so I wish to derive another > > > > > > class from it, call it B. > > > > > > No problem, > > > > > > class B(A): > > > . > > > > > > now in class B I want to add a new property. > > > > > > Is the a way of getting the base (super) class _properties tuple and > > > just adding the new one to it. Since a tuple is an immutable object I > > > can't do this: > > > _properties=A._properties.append({'id':'RenderStandardHeader', > > > 'type':'int','mode':'w'}) > > > > > > Any thoughts > > > > > > DR > > > > > > > > > ___ > > > 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 ) > ___ 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 base classes's (super class) _properties tuple
I can't believe it, but I didn't have the last comma ({'b':'B', 'bb':'BB'}, ) and that's what was killing me .agh BTW, I noticed you are using lists of dictionaries instead of the "standard" tuple of dictionaries. I don't know if there are any consequences to doing this. Anyway, since yours are lists you should be able to to do this: class A: _properties = [ {'a':'A', 'aa':'AA'}, ] class B(A): _properties = [ {'b':'B', 'bb':'BB'}, ] _properties.append(A._properties) not that it realy matters. Thanks, Dan Andy McKay wrote: > class A: > _properties = [ {'a':'A', 'aa':'AA'}, ] > > class B(A): > _properties = [ {'b':'B', 'bb':'BB'}, ] > _properties = _properties + A._properties > > b = B() > print b._properties > > Works for me. > -- > Andy McKay, Developer, ActiveState > http://www.ActiveState.com > Programming for the People > > - Original Message - > From: "Daniel Rusch" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Thursday, August 17, 2000 11:30 AM > Subject: [Zope] getting base classes's (super class) _properties tuple > > > Say I have a fully functional (and more importantly, working) Product > > will call A. > > > > I want to extend this Product's capabilities so I wish to derive another > > > > class from it, call it B. > > > > No problem, > > > > class B(A): > > . > > > > now in class B I want to add a new property. > > > > Is the a way of getting the base (super) class _properties tuple and > > just adding the new one to it. Since a tuple is an immutable object I > > can't do this: > > _properties=A._properties.append({'id':'RenderStandardHeader', > > 'type':'int','mode':'w'}) > > > > Any thoughts > > > > DR > > > > > > ___ > > 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] Product inhetitance question
This worked for me, what a hack _ properties=[] for i in range(0,len(A._properties)): _properties.append(A._properties[i]) _properties.append({'id':'RenderStandardHeader', 'type':'int','mode':'w'}) tuple(_properties) Andy McKay wrote: > Hmm i just tested it in Zope and it worked fine for me. > -- > Andy McKay, Developer, ActiveState > http://www.ActiveState.com > Programming for the People > > - Original Message - > From: "Daniel Rusch" <[EMAIL PROTECTED]> > To: "Andy McKay" <[EMAIL PROTECTED]> > Sent: Thursday, August 17, 2000 11:36 AM > Subject: Re: [Zope] Product inhetitance question > > > Great minds think a like or fools never differ. > > > > I tried this to but I get an error: > > TypeError: bad operand type(s) for + > > > > Dan > > > > Andy McKay wrote: > > > > > I just had the exact same problem and I solved this morning by: > > > > > > class A: > > > _properties = ( {...} ) > > > > > > class B(A): > > > _properties = ( { new stuff... } ) > > > _properties = _properties + A._properties > > > > > > This is tested in a quick script, but not fully in the products yet. So > this > > > will make class B have a properties dict that includes all of A, so you > > > shouldnt need to edit manage_edit... in theory! > > > > > > -- > > > Andy McKay, Developer, ActiveState > > > http://www.ActiveState.com > > > Programming for the People > > > > > > - Original Message - > > > From: "Daniel Rusch" <[EMAIL PROTECTED]> > > > To: "Andy McKay" <[EMAIL PROTECTED]> > > > Sent: Thursday, August 17, 2000 9:40 AM > > > Subject: Re: [Zope] Product inhetitance question > > > > > > > Sorry to keep bothering you, but I'm on the threshold of success > > > > > > > > my B class has an extra property, therefore B's manage_edit needs to > > > address > > > > this. In C++ I could override the base class's manage_edit do the B > stuff > > > and > > > > then call the base class's manage_edit, can this be done in python??? > > > > > > > > Dan > > > > > > > > Andy McKay wrote: > > > > > > > > > Well by inheritance B has all the methods, properties etc you have > in A. > > > So > > > > > the answer is yes, if A has the foobar method then B will have a > foobar > > > > > method. > > > > > > > > > > Or do I misunderstand your question? > > > > > -- > > > > > Andy McKay, Developer, ActiveState > > > > > http://www.ActiveState.com > > > > > Programming for the People > > > > > > > > > > - Original Message - > > > > > From: "Daniel Rusch" <[EMAIL PROTECTED]> > > > > > To: <[EMAIL PROTECTED]> > > > > > Sent: Thursday, August 17, 2000 8:42 AM > > > > > Subject: [Zope] Product inhetitance question > > > > > > > > > > > Hey all, > > > > > > > > > > > > Say I have a fully functional (and more importantly, working) > Product > > > > > > will call A. > > > > > > > > > > > > I want to extend this Product's capabilities so I wish to derive > > > another > > > > > > class from it, call it B. > > > > > > > > > > > > No problem, > > > > > > > > > > > > class B(A): > > > > > > . > > > > > > > > > > > > > > > > > > The question is, (I think the answer is no) is there a way to > inherit > > > > > > (i.e. reuse common code and extend it) the manage_Add function and > the > > > > > > dtml files from A??? > > > > > > > > > > > > Thanks, > > > > > > > > > > > > DR > > > > > > > > > > > > > > > > > > > > > > > > ___ > > > > > > 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] zCatalog and subobjects
ZCatalog doesn't do well on hierarchical searches like this. The way you're doing it (without some sort of change to your objects' structures) is pretty much the only way. There's a "ZTopics" product floating around that is supposed to provide functionality like this, but 1) I don't know if it's released, 2) I've never used it. You *could* add a method to your "superobjects" that returned the meta_type of all of its subobjects and add that to the Catalog index, e.g. def getChildMetaTypes(self): return map(lambda x: getattr(x, 'meta_type'), self.objectValues()) then add getChildMetaTypes as a keyword index... then... for x in Catalog.searchResults(getChildMetaTypes="My Kind Of Object"): ... [EMAIL PROTECTED] wrote: > > (Post #2) > I'm trying to search a zCatalog to find all the objects containing a certain > type of sub-object. > > Right now, I use a dtml-if inside the result loop, but the result count is > obviously wrong. > > There must be a better way to do this, right? > > Jean-François Ménard > Intranet DPAS > Pratiques d'affaires et orientations > *(514) 840-3000 poste 3939 > * (514) 840-5585 > * [EMAIL PROTECTED] > * 855 Ste-Catherine est, 6e étage > Montréal, Qué. H2L 4P5 > > ___ > 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 ) -- Chris McDonough Digital Creations Publishers of Zope - http://www.zope.org ___ 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] modifying/changing DTML properties
R. David Murray writes: > > This: > > > > > > > > > > > > results in: > >green > > > >green > > > > did i miss something? > > Hmm. That should have worked. You could try > manage_changeProperties(eggs='blue') as an alternative, but the > dictionary way should have worked. Maybe, "manage_changeProperties" is called on the wrong object, i.e. one that does not have an "eggs" property. Try: to call it on the folder. 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] zCatalog and subobjects
(Post #2) I'm trying to search a zCatalog to find all the objects containing a certain type of sub-object. Right now, I use a dtml-if inside the result loop, but the result count is obviously wrong. There must be a better way to do this, right? Jean-François Ménard Intranet DPAS Pratiques d'affaires et orientations *(514) 840-3000 poste 3939 * (514) 840-5585 * [EMAIL PROTECTED] * 855 Ste-Catherine est, 6e étage Montréal, Qué. H2L 4P5 ___ 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] class name of current object
Scott Shepherd writes: > Is there a way to get the current object's class name? > > > > doesn't work. You will not be able to access any attribute/method that starts with '_'. If the "meta type" is sufficient for you, you may use: 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] Choose where to create a ZClass instance with EM
Francois-Regis CHALAOUX writes: > Hi, > > When I create a ZClass instance from an external Method I create by default > the instance in the same place where is located my external method (see the > code below). > > How to select a different place in my script where will be create the ZClass ? > > > Code > > > def addZClass(self,id,data): >newob=self.Control.Panel.Products.MyProduct.MyClass(id) >newob.id=id >newob.propertysheets.Properties.manage_changeProperties(data) >self._setObject(id,newob) Here, you decide that the new object is placed into "self". Use "self.whereever._setObject(id,newob)" to place it in "whereever". Of cause, "whereever" must be acquired by "self" for this to work. You would use "getattr(self,wherever)", if "whereever" is not a constant name but an expression, e.g. passed in via a parameter. 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] mysqlUserFolder woes
Stephen Harrison writes: > Error Type: SystemError > Error Value: Failed to import class ImplicitAcquirerWrapper from module > Acquisition > > Traceback (innermost last): > > File /usr/local/zope/2-1-6/lib/python/ZODB/Connection.py, line 396, in > setstate > SystemError: (see above) This signals that a Zope runtime object, i.e. one that is wrapped into an acquisition context was stored into an object to be pickled. I saw this several times: * someone assigned in an external method to "self": self.image= with "" being a Zope runtime object. * someone added a Zope object to a session instance I can not help you with your concrete problem. 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: Zope appears to be busy ;-)
30% is not bad... depends on what it is doing and for how much time. My experience is that it can pop up to as much as 90% (on a slower CPU like 166 Mhz) but only for a split second. At idle (no one doing anything) it should be using no CPU. PID USER PRI NI TSIZE SIZE SWAP RSS SHARE STAT LIB %CPU %MEM CTIME COMMAND 23344 nobody 0 0 403 58876 1284 56M 1280 S 0 0.0 22.3 22:33 python 23347 nobody 0 0 403 58876 1284 56M 1280 S 0 0.0 22.3 0:00 python 23348 nobody 0 0 403 58876 1284 56M 1280 S 0 0.0 22.3 23:46 python 23349 nobody 0 0 403 58876 1284 56M 1280 S 0 0.0 22.3 16:47 python 23350 nobody 0 0 403 58876 1284 56M 1280 S 0 0.0 22.3 28:55 python 23351 nobody 0 0 403 58876 1284 56M 1280 S 0 0.0 22.3 12:24 python Like that. J > From: Chris Withers <[EMAIL PROTECTED]> > Organization: New Information Paradigms > Date: Thu, 17 Aug 2000 18:54:17 +0100 > To: Christiano Anderson <[EMAIL PROTECTED]> > Cc: "J. Atwood" <[EMAIL PROTECTED]>, [EMAIL PROTECTED] > Subject: Zope appears to be busy ;-) > > Christiano Anderson wrote: >> The TOP result is: >> >> Memory: 2048M real, 524M free, 7184K swap in use, 2041M swap free >> >> PID USERNAME THR PRI NICE SIZE RES STATE TIMECPU COMMAND >> 8035 nobody11 310 13M 13M cpu0 174:10 29.70% python > > 30% seems qutie high to me. > > What are your Zope pages doing and how many people are hitting them? > > Cheers, > > Chris > ___ 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 base classes's (super class) _properties tuple
class A: _properties = [ {'a':'A', 'aa':'AA'}, ] class B(A): _properties = [ {'b':'B', 'bb':'BB'}, ] _properties = _properties + A._properties b = B() print b._properties Works for me. -- Andy McKay, Developer, ActiveState http://www.ActiveState.com Programming for the People - Original Message - From: "Daniel Rusch" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, August 17, 2000 11:30 AM Subject: [Zope] getting base classes's (super class) _properties tuple > Say I have a fully functional (and more importantly, working) Product > will call A. > > I want to extend this Product's capabilities so I wish to derive another > > class from it, call it B. > > No problem, > > class B(A): > . > > now in class B I want to add a new property. > > Is the a way of getting the base (super) class _properties tuple and > just adding the new one to it. Since a tuple is an immutable object I > can't do this: > _properties=A._properties.append({'id':'RenderStandardHeader', > 'type':'int','mode':'w'}) > > Any thoughts > > DR > > > ___ > 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] getting base classes's (super class) _properties tuple
Say I have a fully functional (and more importantly, working) Product will call A. I want to extend this Product's capabilities so I wish to derive another class from it, call it B. No problem, class B(A): . now in class B I want to add a new property. Is the a way of getting the base (super) class _properties tuple and just adding the new one to it. Since a tuple is an immutable object I can't do this: _properties=A._properties.append({'id':'RenderStandardHeader', 'type':'int','mode':'w'}) Any thoughts DR ___ 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] Product inhetitance question
- Original Message - From: "Andy McKay" <[EMAIL PROTECTED]> To: "Daniel Rusch" <[EMAIL PROTECTED]> Sent: Thursday, August 17, 2000 11:21 AM Subject: Re: [Zope] Product inhetitance question > Ah... ok sorry you are right, stuff outside the class doesnt get inherited. > What I did for this was make a very generic manage_addProduct and specify in > my _init_.py a class initialisation string or whatever it is called... > > context.registerClass(A.ObjB, permission='Add ObjB', > constructors=(A.addForm, A.manage_addA) ) > > If that makes sense. The manage_AddObject form creates an the right object > depending upon paramaters passed to it. > > -- > Andy McKay, Developer, ActiveState > http://www.ActiveState.com > Programming for the People > > > - Original Message - > From: "Daniel Rusch" <[EMAIL PROTECTED]> > To: "Andy McKay" <[EMAIL PROTECTED]> > Sent: Thursday, August 17, 2000 9:10 AM > Subject: Re: [Zope] Product inhetitance question > > > > Slightly, > > > > I understand that if A has foo() then so does B(). But in a Zope product > the > > are some things that lie "outside" of the class definition. The manage_add > > function is one of them. addtionally, I am having troubles getting B to > > inherit A's _properties structure. > > > > Thanks for all your help. I have learned an unbelieveable amount this > week. > > Everyone else is gone and we are in a slow period so I wanted to learn the > > more advanced techniques this week. > > > > Dan > > > > Andy McKay wrote: > > > > > Well by inheritance B has all the methods, properties etc you have in A. > So > > > the answer is yes, if A has the foobar method then B will have a foobar > > > method. > > > > > > Or do I misunderstand your question? > > > -- > > > Andy McKay, Developer, ActiveState > > > http://www.ActiveState.com > > > Programming for the People > > > > > > - Original Message - > > > From: "Daniel Rusch" <[EMAIL PROTECTED]> > > > To: <[EMAIL PROTECTED]> > > > Sent: Thursday, August 17, 2000 8:42 AM > > > Subject: [Zope] Product inhetitance question > > > > > > > Hey all, > > > > > > > > Say I have a fully functional (and more importantly, working) Product > > > > will call A. > > > > > > > > I want to extend this Product's capabilities so I wish to derive > another > > > > class from it, call it B. > > > > > > > > No problem, > > > > > > > > class B(A): > > > > . > > > > > > > > > > > > The question is, (I think the answer is no) is there a way to inherit > > > > (i.e. reuse common code and extend it) the manage_Add function and the > > > > dtml files from A??? > > > > > > > > Thanks, > > > > > > > > DR > > > > > > > > > > > > > > > > ___ > > > > 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] EventLogManger
The 1.0 version of EventLogManager (a configurable logging facility product) depended on code that only existed inside of the CVS version of Zope. It would not install cleanly as a result on Zope 2.2.1b1 and previous. A new release (1.1) is available at http://www.zope.org/Members/mcdonc/Products/EventLogManager. Thanks, -- Chris McDonough Digital Creations Publishers of Zope - http://www.zope.org ___ 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] The date in Dutch
How can I fix the date in Dutch, for example Donderdag 17 Augustus 2000 instead of Thursday 17 August 2000. I hope someone can solve this problem. Michel Houben. ___ 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] New Release of gvibDA Interbase Adapter
Hello Everyone, We just release Version 0.9.1 of our Interbase Database Adapter. This release fixes a memory leak when fething BLOB data and also dramtically improves performance when fetching BLOB data. Thank you and the code is at http://www.zope.org/Members/RETierney/gvibDA Regards, Bob Tierney _ Robert E. Tierney EMail: [EMAIL PROTECTED] Going VirtualHTTP: www.goingv.com 10800 Independence Pointe Pkwy Phone: 1-704-849-0731 x109 Matthews, NC 28105Fax: 1-704-849-2279 AIM: RETierney _ ___ 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] Zserver+Apache ProxyPass beats Apache + Zope CGI?
Corey wrote: > I keep seeming to notice that the docs are constantly referring > to Zserver as the recomended choice for the http backend. Why > is this? Should I not attempt to integrate our Apache server > with Zope, and simply use Zserver instead? Well, ZServer seems to be the best way to go. ...that is opposed to doing it with PGCI or FastCGI Apache still makes a good bulletproof front end, but use to to proxypass through to ZServer ratehr than running Zope as CGI. cheers, Chris ___ 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 is very slow!
Hi J, Thanks a lot for replying my message! :) Do you have any example of the best Apache and ProxyCache configuration to running zope? My configuration looks like this: ProxyRequests On #ProxyReceiveBufferSize 65536 ProxyReceiveBufferSize 0 CacheRoot "/www/proxycache" CacheSize 5000 CacheGcInterval 1 CacheMaxExpire 48 CacheLastModifiedFactor 0.1 CacheDefaultExpire 5 ProxyPass /paginas/ http://200.xxx.xxx.xxx:8080/ ProxyPass /p_/ http://200.xxx.xxx.xxx:8080/p_/ ProxyPass /misc_/ http://200.xxx.xxx.xxx:8080/misc_/ ProxyPassReverse /paginas/ http://200.xxx.xxx.xxx:8080/ ProxyPassReverse /p_/ http://200.xxx.xxx.xxx:8080/p_/ ProxyPassReverse /misc_/ http://200.xxx.xxx.xxx:8080/misc_/ The TOP result is: Memory: 2048M real, 524M free, 7184K swap in use, 2041M swap free PID USERNAME THR PRI NICE SIZE RES STATE TIMECPU COMMAND 8035 nobody11 310 13M 13M cpu0 174:10 29.70% python Only the Zope pages are slowly... The Apache is working properly... Thanks a lot for any help, Christiano On Thu, 17 Aug 2000, J. Atwood wrote: > Hi Christiano (nice first message... :) ) > > First of all, lets define slow. What does slow mean? Have you tested it with > AB (apachebench)? You sure it is not your connection? Watched it in TOP? My > guess is that with 2.1.6 (straight) on that system you should be able to get > about 200 requests per second which is not SLOW at all. > > Check your Apache, Proxycache and SiteAccess my guess it is there. > > Turn off debugging. > > Upgrade to 2.2.1 (60% faster on dual processors). > > Take a look at > > http://www.zope.org/Members/BwanaZulia/benchmarks.html to get an idea of > what you system should be doing. > > Just some suggestions. > > J > > > From: Christiano Anderson <[EMAIL PROTECTED]> > > Date: Thu, 17 Aug 2000 11:12:00 -0300 (BRT) > > To: [EMAIL PROTECTED] > > Subject: [Zope] Zope is very slow! > > > > Hi, > > > > This is my first message to the list... > > > > I'm currently running Zope 2.1.6 + Apache 1.3.12 (with proxycache). The > > system is a Solaris 5.6 on a E450 with 2GB Ram and 2 X 450mhz... > > > > The Zope is running with Apache, using the ProxyCache and SiteAccess to > > convert all requests from port 8080 to 80. > > > > My problem is: The system is *too slowly*! > > > > Does anyone know how to optimize the Zope to run quicker? Is there > > anything wrong with this configuration?? > > > > Thanks a lot, > > > > Christiano Anderson > > > > > > > > ___ > > Zope maillist - [EMAIL PROTECTED] > > http://lists.zope.org/mailman/listinfo/zope > > ** No cross posts or HTML encoding! ** > > (Related lists - > > http://lists.zope.org/mailman/listinfo/zope-announce > > http://lists.zope.org/mailman/listinfo/zope-dev ) > > > > > > ___ 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 appears to be busy ;-)
Christiano Anderson wrote: > The TOP result is: > > Memory: 2048M real, 524M free, 7184K swap in use, 2041M swap free > > PID USERNAME THR PRI NICE SIZE RES STATE TIMECPU COMMAND > 8035 nobody11 310 13M 13M cpu0 174:10 29.70% python 30% seems qutie high to me. What are your Zope pages doing and how many people are hitting them? Cheers, Chris ___ 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] Zserver vs Apache
(man this is coming up a lot today) It is not ZServer vs Apache but ZServer alone or behind Apache. Either way you are using ZServer. ZServer will do all of your http requests and as a stand alone server it will work just fine. It is faster than putting Apache in front of it and is certainly easier to set up. It does not however offer SSL (think there is a product for this) and if you are in a mixed environment (meaning you don't control the webserver) it is easier to put behind Apache (many ways). I have a couple different sites doing to both ways. I, PERSONALLY, like ZServer alone. I find the logging situation better, the speed better and is less things running on the server. J > From: Corey <[EMAIL PROTECTED]> > Date: Thu, 17 Aug 2000 09:57:00 -0700 > To: [EMAIL PROTECTED] > Subject: [Zope] Zserver vs Apache > > I keep seeming to notice that the docs are constantly referring > to Zserver as the recomended choice for the http backend. Why > is this? Should I not attempt to integrate our Apache server > with Zope, and simply use Zserver instead? > > > Thanks, > > Corey > > > ___ > 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 is very slow!
I have limited experience with ProxyPass. I have many Zope installations (2.1.4, 2.1.6, 2.2.0b2, 2.2.0) on all sorts of different hardware configurations (all RH Linux) and non of them are slow. Most are running just plain ZServer but one (and the most hit) is running behind Apache with Zope.cgi. I suggest trying that and seeing if it makes a difference. J > From: Christiano Anderson <[EMAIL PROTECTED]> > Date: Thu, 17 Aug 2000 14:36:42 -0300 (BRT) > To: "J. Atwood" <[EMAIL PROTECTED]> > Cc: [EMAIL PROTECTED] > Subject: Re: [Zope] Zope is very slow! > > > Hi J, > > Thanks a lot for replying my message! :) > > Do you have any example of the best Apache and ProxyCache configuration to > running zope? > > My configuration looks like this: > > > ProxyRequests On > #ProxyReceiveBufferSize 65536 > ProxyReceiveBufferSize 0 > CacheRoot "/www/proxycache" > CacheSize 5000 > CacheGcInterval 1 > CacheMaxExpire 48 > CacheLastModifiedFactor 0.1 > CacheDefaultExpire 5 > ProxyPass /paginas/ http://200.xxx.xxx.xxx:8080/ > ProxyPass /p_/ http://200.xxx.xxx.xxx:8080/p_/ > ProxyPass /misc_/ http://200.xxx.xxx.xxx:8080/misc_/ > ProxyPassReverse /paginas/ http://200.xxx.xxx.xxx:8080/ > ProxyPassReverse /p_/ http://200.xxx.xxx.xxx:8080/p_/ > ProxyPassReverse /misc_/ http://200.xxx.xxx.xxx:8080/misc_/ > > The TOP result is: > > Memory: 2048M real, 524M free, 7184K swap in use, 2041M swap free > > PID USERNAME THR PRI NICE SIZE RES STATE TIMECPU COMMAND > 8035 nobody11 310 13M 13M cpu0 174:10 29.70% python > > > Only the Zope pages are slowly... The Apache is working properly... > > Thanks a lot for any help, > > Christiano > > > On Thu, 17 Aug 2000, J. Atwood wrote: > >> Hi Christiano (nice first message... :) ) >> >> First of all, lets define slow. What does slow mean? Have you tested it with >> AB (apachebench)? You sure it is not your connection? Watched it in TOP? My >> guess is that with 2.1.6 (straight) on that system you should be able to get >> about 200 requests per second which is not SLOW at all. >> >> Check your Apache, Proxycache and SiteAccess my guess it is there. >> >> Turn off debugging. >> >> Upgrade to 2.2.1 (60% faster on dual processors). >> >> Take a look at >> >> http://www.zope.org/Members/BwanaZulia/benchmarks.html to get an idea of >> what you system should be doing. >> >> Just some suggestions. >> >> J >> >>> From: Christiano Anderson <[EMAIL PROTECTED]> >>> Date: Thu, 17 Aug 2000 11:12:00 -0300 (BRT) >>> To: [EMAIL PROTECTED] >>> Subject: [Zope] Zope is very slow! >>> >>> Hi, >>> >>> This is my first message to the list... >>> >>> I'm currently running Zope 2.1.6 + Apache 1.3.12 (with proxycache). The >>> system is a Solaris 5.6 on a E450 with 2GB Ram and 2 X 450mhz... >>> >>> The Zope is running with Apache, using the ProxyCache and SiteAccess to >>> convert all requests from port 8080 to 80. >>> >>> My problem is: The system is *too slowly*! >>> >>> Does anyone know how to optimize the Zope to run quicker? Is there >>> anything wrong with this configuration?? >>> >>> Thanks a lot, >>> >>> Christiano Anderson >>> >>> >>> >>> ___ >>> Zope maillist - [EMAIL PROTECTED] >>> http://lists.zope.org/mailman/listinfo/zope >>> ** No cross posts or HTML encoding! ** >>> (Related lists - >>> http://lists.zope.org/mailman/listinfo/zope-announce >>> http://lists.zope.org/mailman/listinfo/zope-dev ) >>> >>> >> >> > > ___ 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 culture (Was: [Zope] Simple DTML date-stamp)
On Mon, 14 Aug 2000, William BC Crandall wrote: > Andy Dustman's documentation for what seems like a nice > MySQL interface puts it clearly: > > Windows is not a supported platform. Yeah, that's just me. I don't support Windows in any way. However, MySQLdb does work there, so I am told. If you can't get it to compile or something, I can't help you. -- andy dustman | programmer/analyst | comstar.net, inc. telephone: 770.485.6025 / 706.549.7689 | icq: 32922760 | pgp: 0xc72f3f1d "Therefore, sweet knights, if you may doubt your strength or courage, come no further, for death awaits you all, with nasty, big, pointy teeth!" ___ 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 is very slow!
> I am pretty sure (61%) that in the original release of 2.2.0 there was > something about a speed increase. One talked about on single processor > (20-40%) and the other was dual processor (60-80%). It partly > has to do with > that "one line of magic code" in the z2.py. > > Ethan? Paul? DC? Care to shed some light? The speedup involves changing sys.checkinterval, which controls the interval (# of bytecodes) at which the Python runtime performs certain housekeeping chores. For multithreaded programs, upping this interval can cause a significant performance improvement (more about this on python.org in the sys module docs). 2.2 sets the interval to 120, a value that seemed to provide a general speedup across a number of systems I tested. Granted, this is not very scientific, which is why there is an '-i' option to z2.py that allows you to pass your own values for the interval to experiment and find a sweet spot for your given environment (see the z2.py docstring / command help). > >> else changed I didnt see? I noticed that 2.1.6 wasnt > making the best use of > >> dual processors. > > > > I thought only ZEO would make good use fo dual processors? Note that effective use of multiple processors is mostly a function of the Python runtime (specifically the global interpreter lock) rather than an issue that Zope can address directly. So yes, ZEO is the best way to make effective use of MP. 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] Getting rid of PTK
Hi list I've seen others having problems with this as well .. I made a ZClass, not consciously touching anything about PTK. Now when I export it ('ccDoc.zexp') and import it into another Zope, I get:: Error Type: ImportError Error Value: No module named PTKDemo.PersistentUserSource Traceback (innermost last): File C:\programs\ZopeJean\lib\python\ZPublisher\Publish.py, line 214, in publish_module File C:\programs\ZopeJean\lib\python\ZPublisher\Publish.py, line 179, in publish File C:\programs\ZopeJean\lib\python\Zope\__init__.py, line 202, in zpublisher_exception_hook (Object: ElementWithAttributes) File C:\programs\ZopeJean\lib\python\ZPublisher\Publish.py, line 165, in publish File C:\programs\ZopeJean\lib\python\ZPublisher\mapply.py, line 160, in mapply (Object: manage_importObject) File C:\programs\ZopeJean\lib\python\ZPublisher\Publish.py, line 102, in call_object (Object: manage_importObject) File C:\programs\ZopeJean\lib\python\OFS\ObjectManager.py, line 488, in manage_importObject (Object: ElementWithAttributes) File C:\programs\ZopeJean\lib\python\OFS\ObjectManager.py, line 238, in _setObject (Object: ElementWithAttributes) File C:\programs\ZopeJean\lib\python\OFS\ObjectManager.py, line 254, in manage_afterAdd (Object: ElementWithAttributes) File C:\programs\ZopeJean\lib\python\ZClasses\ZClass.py, line 412, in manage_afterAdd (Object: ccDocClass) File C:\programs\ZopeJean\lib\python\ZClasses\ZClass.py, line 373, in _register (Object: ccDocClass) File C:\programs\ZopeJean\lib\python\ZODB\Connection.py, line 396, in setstate File C:\programs\ZopeJean\lib\python\ZODB\Connection.py, line 205, in _persistent_load (Info: What do I have to do with PTKDemo?? -- Jean Jordaan --technical writer-- Mosaic Sofware --Zope 2.1.6 on WinNT and W2K ___ 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] Choose where to create a ZClass instance with EM
On Thu, 17 Aug 2000, Andy McKay wrote: > Get a handle to the object where you wish to create the object then create > the object. > > For example: newobj = getattr(self, 'folderA') > > will give you folderA in self. The new object will be created in folderA. Isn't it actually that he wants to do the _setObject call on object where he wants the thing to go?: newob=self.Control.Panel.Products.MyProduct.MyClass(id) newob.id=id newob.propertysheets.Properties.manage_changeProperties(data) getattr(self,'folderA')._setObject(id,newob) newob.reindex_object() --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] Zserver vs Apache
I keep seeming to notice that the docs are constantly referring to Zserver as the recomended choice for the http backend. Why is this? Should I not attempt to integrate our Apache server with Zope, and simply use Zserver instead? Thanks, Corey ___ 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 and VirtualHost
> From: William JOYE <[EMAIL PROTECTED]> > Date: Thu, 17 Aug 2000 18:06:08 +0200 > To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]> > Subject: RE: [Zope] Zope and VirtualHost > > Are there restrictions or problems to use SiteAccess ? I have been using it for a couple of different sites (2 served off of one Zope and 5 served off another) and it has been pretty good. There are few products that are not crazy about it (breadcrumbs) but there are easy work arounds. I think Zope.org is now using it for dev.zope.org J ___ 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] NTUserFolder-1.3-Comments
Hi Toby In the source of NTUserFolder from end of last year I see: ## Experimental support for authenticating from a domain ## (rather than the local computer) Use this at your own ## risk. If you do, please let me know how you get on. I will ## only include a user interface for these parameters once I ## have independant verification that there are no problems. Have you had any feedback? Does this work at all? -- Jean Jordaan --technical writer-- Mosaic Sofware --Zope 2.1.6 on WinNT and W2K ___ 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 is very slow!
I am pretty sure (61%) that in the original release of 2.2.0 there was something about a speed increase. One talked about on single processor (20-40%) and the other was dual processor (60-80%). It partly has to do with that "one line of magic code" in the z2.py. Ethan? Paul? DC? Care to shed some light? J > From: Chris Withers <[EMAIL PROTECTED]> > Organization: New Information Paradigms > Date: Thu, 17 Aug 2000 17:15:57 +0100 > To: Andy McKay <[EMAIL PROTECTED]> > Cc: "J. Atwood" <[EMAIL PROTECTED]>, [EMAIL PROTECTED] > Subject: Re: [Zope] Zope is very slow! > > Andy McKay wrote: >> >>> Upgrade to 2.2.1 (60% faster on dual processors). >> >> Really? I didnt see anything about this in the Changes file... has something >> else changed I didnt see? I noticed that 2.1.6 wasnt making the best use of >> dual processors. > > I thought only ZEO would make good use fo dual processors? > > Chris > ___ 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 is very slow!
Andy McKay wrote: > > > Upgrade to 2.2.1 (60% faster on dual processors). > > Really? I didnt see anything about this in the Changes file... has something > else changed I didnt see? I noticed that 2.1.6 wasnt making the best use of > dual processors. I thought only ZEO would make good use fo dual processors? Chris ___ 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] NewBIE Question
After re-installing zope on NT box, I noticed that I am now running two instances of the Zope service. I was able to disable one instance but how can I permanatly remove the service and how do I know which Zope service is running? ___ 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] Announce: Squishdot 0.5.0 now available!
Good job Chris. -- Andy McKay, Developer, ActiveState http://www.ActiveState.com Programming for the People - Original Message - From: "Chris Withers" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday, August 17, 2000 5:36 AM Subject: [Zope] Announce: Squishdot 0.5.0 now available! > Squishdot 0.5.0 is now available from > http://www.zope.org/Members/chrisw/Squishdot/ > > The following changes were made: > > - Support has been added for postings to be formatted as Plain Text, >HTML or Structured text on the same site. > > - You can preview when editing postings through the management >interface. > > A whole host of bugs were also fixed, the most notable being the one > which caused the 'managemanage_editForm' bug. > > Sadly, Squishdot does not yet work with Zope 2.2 :( > > If you run into problems, remember Squishdot has a mailing list at > eGroups and a bug collector on SourceForge. > > cheers, > > Chris > > ___ > 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] Choose where to create a ZClass instance with EM
Get a handle to the object where you wish to create the object then create the object. For example: newobj = getattr(self, 'folderA') will give you folderA in self. The new object will be created in folderA. -- Andy McKay, Developer, ActiveState http://www.ActiveState.com Programming for the People - Original Message - From: "Francois-Regis CHALAOUX" <[EMAIL PROTECTED]> To: "Receipt Notification Requested" <[EMAIL PROTECTED]> Sent: Thursday, August 17, 2000 6:36 AM Subject: [Zope] Choose where to create a ZClass instance with EM > Hi, > > When I create a ZClass instance from an external Method I create by default > the instance in the same place where is located my external method (see the > code below). > > How to select a different place in my script where will be create the ZClass ? > > > Code > > > def addZClass(self,id,data): >newob=self.Control.Panel.Products.MyProduct.MyClass(id) >newob.id=id >newob.propertysheets.Properties.manage_changeProperties(data) >self._setObject(id,newob) >newob.reindex_object() > > > Bye, FR. > > > > > > > > > > > > > > > > > > ___ > 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 is very slow!
> Upgrade to 2.2.1 (60% faster on dual processors). Really? I didnt see anything about this in the Changes file... has something else changed I didnt see? I noticed that 2.1.6 wasnt making the best use of dual processors. -- Andy McKay, Developer, ActiveState http://www.ActiveState.com Programming for the People ___ 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] Total newbie with NTUserFolder 1.3 issues
I'm running Zope 2.2.0 over NT Server 4. I installed Python 1.5.2 and the latest Win32 Extensions, then unzipped NTUserFolder1.3.zip into C:\Program Files\ZopeServer\NTUserFolder, then ran both the init.py and NTUserFolder.py files after entering my Domain and PDC info into NTUserFolder.py I ran them both to get the respective .pyc files... my question is... What now? What do I need to do next to actually get this stuff working as opposed to taking up disk space, because nothing yet has actually happened and, even if It has, I have no idea how to find out. I've been checking for a Users registry entry in HKLM\Software\Digital Creations\zope\ but it doesn't exist... I get the feeling that something major, like The Point has passed me by and I can't find Docs on this anywhere. help me, Obi-Wan Kenobi, you're my only z^Hhope. Chris. > Chris Adams > Revolution - the new commerce agency > -- > Direct: +44 20 7549 5837 > Facsimile: +44 20 7549 5801 > http://www.revolutionltd.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] Product inhetitance question
Well by inheritance B has all the methods, properties etc you have in A. So the answer is yes, if A has the foobar method then B will have a foobar method. Or do I misunderstand your question? -- Andy McKay, Developer, ActiveState http://www.ActiveState.com Programming for the People - Original Message - From: "Daniel Rusch" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, August 17, 2000 8:42 AM Subject: [Zope] Product inhetitance question > Hey all, > > Say I have a fully functional (and more importantly, working) Product > will call A. > > I want to extend this Product's capabilities so I wish to derive another > class from it, call it B. > > No problem, > > class B(A): > . > > > The question is, (I think the answer is no) is there a way to inherit > (i.e. reuse common code and extend it) the manage_Add function and the > dtml files from A??? > > Thanks, > > DR > > > > ___ > 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 and VirtualHost
Are there restrictions or problems to use SiteAccess ? > -Message d'origine- > De : Andy McKay [mailto:[EMAIL PROTECTED]] > Envoyé : jeudi 17 août 2000 17:53 > À : William JOYE; [EMAIL PROTECTED] > Objet : Re: [Zope] Zope and VirtualHost > > > Yep Site Access is the product to go for, it includes help on > how to use > with Apache if I recall. > > -- > Andy McKay, Developer, ActiveState > http://www.ActiveState.com > Programming for the People > > > - Original Message - > From: "William JOYE" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Thursday, August 17, 2000 8:48 AM > Subject: [Zope] Zope and VirtualHost > > > > What's is the best way to host multiple virtual domain in > Zope with Apache > > sever ? > > > > Actually, I use PCGI method with rewrite rules in Apache > configuration > like > > this : > > > > RewriteEngine on > > > > RewriteCond %{HTTP:Authorization} ^(.*) > > > > RewriteRule ^/(.*) /home/httpd/cgi-bin/Zope/MySite/$1 > > [e=HTTP_CGI_AUTHORIZATION:%1,t=application/x-httpd-cgi,l] > > > > But I can't use BASE or URL variables because they always > include 'MySite' > > folder. Is SiteAccess product can help me ? > > > > > > ___ > > 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] Old Zope packages
On Thu, Aug 17, 2000 at 05:01:01PM +0300, Jarkko Veijalainen wrote: > problem is that it don't allow ANY of my users (including managers and > superuser) to pass Authentication when i'm trying to POST data to another > dtml document, which calls external method? > > How i manage this? I'm desperated Hallo Jarko, I really don't know, especially not without some more context. However, could you keep on sending questions to the Mailing Lists? You'll have far better chances at getting an answer there. I'll include [EMAIL PROTECTED] for this one. -- Martijn Pieters | Software Engineermailto:[EMAIL PROTECTED] | Digital Creations http://www.digicool.com/ | Creators of Zope http://www.zope.org/ | ZopeStudio: http://www.zope.org/Products/ZopeStudio - ___ 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] mysqlUserFolder woes
At 4:12 pm +0100 17/8/00, Stephen Harrison wrote: >I've been trying out mysqlUserFolder lately, but have had quite a major >problem with it. > >Basically, everything works fine - for a while - then it starts to >intermittently fail as the load to the server increases, until it is >completley broken, with the system error below. > >Has anyone else come across this, or is it just me? > >Cheers, >Stephen I'd suggest using UserDB. It's been pretty good for us. I looked at mysqlUserFolder (seemed overly complex), GUF (couldn't get it to work) and even LoginManager (too much Zen needed) and came back to UserDB. hth tone -- Dr Tony McDonald, FMCC, Networked Learning Environments Project http://nle.ncl.ac.uk/ The Medical School, Newcastle University Tel: +44 191 222 5116 Fingerprint: 3450 876D FA41 B926 D3DD F8C3 F2D0 C3B9 8B38 18A2 ___ 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 rid of PTKDemo
At 7:22 pm +0200 16/8/00, [EMAIL PROTECTED] wrote: >Hello Tony, sure I would come for such a pint offered, but for now, I am in >just the same situation - without access to this tab of any ZSQL method. So, >please, should you get an answer (I mean, a solution) could you be so kind >to share it with me? I'm not sure that this is a solution Ralf, but it fixed something here and made the ZSQL advanced tab usable again. I was having problems importing a folder. Errors like 'KeyError' with a crap character were showing up when I tried to import. I found that in the folder were subfolders with an ID of the type 'folder.gif', and title 'c://Dan/Images/folder.gif' - ie as though someone had uploaded an image, but it had created a folder instead (this behaviour by itself is pretty weird). I deleted these folders, and exported the folder I was interested in. I then got a clean 2.2.0 Data.fs.in and started up another Zope instance (BTW, the excellent HowTo at http://www.zope.org/Members/4am/instancehome should be required reading for those running multiple Zope sites from a single Zope installation...). I then imported the .zexp file and voila, everything was working and I could get to my 'Advanced' tab again. I have no idea whether PTKDemo is in my Data.fs, but this is encouraging! :) 112 % grep PTKDemo Data.fs | more 113 % grep MySQL Data.fs | more Binary file Data.fs matches (and the old Data.fs) 116 % grep PTKDemo Data.fs- | more Binary file Data.fs- matches If you *don't* have any ID's with 'unusual' characters in them, then I guess I can't help you out... >Thank again, greeting from a Berlin draught drinker... > >-- Ralf Herold :) Tone ps Ralf, I've taken the liberty of ccing this to the list as it might help others... -- Dr Tony McDonald, FMCC, Networked Learning Environments Project http://nle.ncl.ac.uk/ The Medical School, Newcastle University Tel: +44 191 222 5116 Fingerprint: 3450 876D FA41 B926 D3DD F8C3 F2D0 C3B9 8B38 18A2 ___ 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 and VirtualHost
Yep Site Access is the product to go for, it includes help on how to use with Apache if I recall. -- Andy McKay, Developer, ActiveState http://www.ActiveState.com Programming for the People - Original Message - From: "William JOYE" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, August 17, 2000 8:48 AM Subject: [Zope] Zope and VirtualHost > What's is the best way to host multiple virtual domain in Zope with Apache > sever ? > > Actually, I use PCGI method with rewrite rules in Apache configuration like > this : > > RewriteEngine on > > RewriteCond %{HTTP:Authorization} ^(.*) > > RewriteRule ^/(.*) /home/httpd/cgi-bin/Zope/MySite/$1 > [e=HTTP_CGI_AUTHORIZATION:%1,t=application/x-httpd-cgi,l] > > But I can't use BASE or URL variables because they always include 'MySite' > folder. Is SiteAccess product can help me ? > > > ___ > 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] Zope and VirtualHost
What's is the best way to host multiple virtual domain in Zope with Apache sever ? Actually, I use PCGI method with rewrite rules in Apache configuration like this : RewriteEngine on RewriteCond %{HTTP:Authorization} ^(.*) RewriteRule ^/(.*) /home/httpd/cgi-bin/Zope/MySite/$1 [e=HTTP_CGI_AUTHORIZATION:%1,t=application/x-httpd-cgi,l] But I can't use BASE or URL variables because they always include 'MySite' folder. Is SiteAccess product can help me ? ___ 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] mysqlUserFolder woes
Tony McDonald wrote: > > I'd suggest using UserDB. It's been pretty good for us. I looked at > mysqlUserFolder (seemed overly complex), GUF (couldn't get it to > work) and even LoginManager (too much Zen needed) and came back to > UserDB. One of the reasons I was trying to get mysqlUserFolder to work, is that I want to be able to store arbitrary data with the user record, such as real name, email address, etc. mysqlUserFolder does this quite nicely. If there is an easy way to achieve this using userDb then that would be another way to solve the problem. Cheers, Stephen -- Stephen Harrison[EMAIL PROTECTED] New Information Paradigms www.nipltd.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] Product inhetitance question
Hey all, Say I have a fully functional (and more importantly, working) Product will call A. I want to extend this Product's capabilities so I wish to derive another class from it, call it B. No problem, class B(A): . The question is, (I think the answer is no) is there a way to inherit (i.e. reuse common code and extend it) the manage_Add function and the dtml files from A??? Thanks, DR ___ 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] zCatalog and subobjects
I'm trying to search a zCatalog to find all the objects containing a certain type of sub-object. Right now, I use a dtml-if inside the result loop, but the result count is obviously wrong. There must be a better way to do this, right? Jean-François Ménard Intranet DPAS Pratiques d'affaires et orientations *(514) 840-3000 poste 3939 * (514) 840-5585 * [EMAIL PROTECTED] * 855 Ste-Catherine est, 6e étage Montréal, Qué. H2L 4P5 ___ 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] mysqlUserFolder woes
I've been trying out mysqlUserFolder lately, but have had quite a major problem with it. Basically, everything works fine - for a while - then it starts to intermittently fail as the load to the server increases, until it is completley broken, with the system error below. Has anyone else come across this, or is it just me? Cheers, Stephen Error Type: SystemError Error Value: Failed to import class ImplicitAcquirerWrapper from module Acquisition Traceback (innermost last): File /usr/local/zope/2-1-6/lib/python/ZPublisher/Publish.py, line 214, in publish_module File /usr/local/zope/2-1-6/lib/python/ZPublisher/Publish.py, line 179, in publish File /usr/local/zope/2-1-6/lib/python/Zope/__init__.py, line 202, in zpublisher_exception_hook (Object: ElementWithAttributes) File /usr/local/zope/2-1-6/lib/python/ZPublisher/Publish.py, line 151, in publish File /usr/local/zope/2-1-6/lib/python/Products/SiteAccess/ChangeBehaviors.py, line 226, in traverse File /usr/local/zope/hack/2-1-6/lib/python/ZPublisher/BaseRequest.py, line 504, in old_validation File /usr/local/zope/2-1-6/lib/python/ZODB/Connection.py, line 396, in setstate SystemError: (see above) -- Stephen Harrison[EMAIL PROTECTED] New Information Paradigms www.nipltd.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] How to use RESPONSE.redirect ?
Thanks for the input. -Original Message- From: Curtis Maloney [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 15, 2000 5:59 PM To: Stuart Foster; Zope List Subject: Re: [Zope] How to use RESPONSE.redirect ? On Wed, 16 Aug 2000, Stuart Foster wrote: > I want to use redirect to call another form passing the current form, how > can I do that. > > > > If I do > > The current form isn't being passed ? > If you want to pass the form variables, you're in for a fight. (o8 otherwise, you could simply try : instead of a redirect. If you want to make sure only the correct form vars are passed, you could flub it with something like: If this doesn't help, some more detail on your part might. (o8 > Any ideas.. > > TIA > Stuart > Have a better one, Curtis. ___ 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] Choose where to create a ZClass instance with EM
Hi, When I create a ZClass instance from an external Method I create by default the instance in the same place where is located my external method (see the code below). How to select a different place in my script where will be create the ZClass ? Code def addZClass(self,id,data): newob=self.Control.Panel.Products.MyProduct.MyClass(id) newob.id=id newob.propertysheets.Properties.manage_changeProperties(data) self._setObject(id,newob) newob.reindex_object() Bye, FR. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
RE: [Zope] How to use RESPONSE.redirect ?
Thanks for the input. I ended up putting the info I needed into the url I put it in a method that is usuble from a couple of forms and it seems to work. Thanks again. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Kapil Thangavelu Sent: Tuesday, August 15, 2000 3:44 PM To: Stuart Foster Cc: Zope List Subject: Re: [Zope] How to use RESPONSE.redirect ? Stuart Foster Wrote: > I want to use redirect to call another form passing the current form, how > can I do that. > > > Hi Stuart, i ran into the same problem a little while ago. i was trying to pass the user around to the proper display&process page(with inputs inplace) after a logic page that determined where they should go based on their inputs. IMO, The crux of the problem is that Zope as a web development platform should include the urlparse lib from the python core more over this problem and others like it should be remedied i believe by a standard method of extending the modules in the _ namespace with thread safe modules that a developer deems nesc. OK enough soap box... i ended up reimplementing the nesc. functionality in a python method and created another method to implement complete form insertion in much the same the style that of some ACS(arsdigita) utiltiy methods do. here they are, usage examples are included in the code. of course this solution requires evan simpson's python methods product be installed on your zope. Cheers Kapil name: url_encode_form_vars args: namespace # depends on url_encode_vars try: vars=namespace['REQUEST'].form method = namespace.getitem('url_encode_vars', 0) return method(vars) except: pass #example call to above # name: url_encode_vars args: ''' Code straight from urllib minor changes to get around assignment to sub_scripts, access to string module, and namepace issues expects a dictionary of key value pairs to be encoded example call ''' global always_safe, quote, quote_plus always_safe = _.string.letters + _.string.digits + '_,.-' def quote(s, safe = '/'): global always_safe safe = always_safe + safe res = [] for c in s: if c not in safe: res.append('%%%02x'%ord(c)) else: res.append(c) return _.string.joinfields(res, '') def quote_plus(s, safe='/'): global quote if ' ' in s: res = [] # replaec ' ' with '+' l = _.string.split(s, ' ') for i in l: res.append(quote(i, safe)) return _.string.join(res, '+') else: return quote(s, safe) def urlencode(dict): global quote_plus l = [] for k, v in dict.items(): k = quote_plus(str(k)) v = quote_plus(str(v)) l.append(k + '=' + v) return _.string.join(l, '&') return urlencode(vars) ___ 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 is very slow!
Hi Christiano (nice first message... :) ) First of all, lets define slow. What does slow mean? Have you tested it with AB (apachebench)? You sure it is not your connection? Watched it in TOP? My guess is that with 2.1.6 (straight) on that system you should be able to get about 200 requests per second which is not SLOW at all. Check your Apache, Proxycache and SiteAccess my guess it is there. Turn off debugging. Upgrade to 2.2.1 (60% faster on dual processors). Take a look at http://www.zope.org/Members/BwanaZulia/benchmarks.html to get an idea of what you system should be doing. Just some suggestions. J > From: Christiano Anderson <[EMAIL PROTECTED]> > Date: Thu, 17 Aug 2000 11:12:00 -0300 (BRT) > To: [EMAIL PROTECTED] > Subject: [Zope] Zope is very slow! > > Hi, > > This is my first message to the list... > > I'm currently running Zope 2.1.6 + Apache 1.3.12 (with proxycache). The > system is a Solaris 5.6 on a E450 with 2GB Ram and 2 X 450mhz... > > The Zope is running with Apache, using the ProxyCache and SiteAccess to > convert all requests from port 8080 to 80. > > My problem is: The system is *too slowly*! > > Does anyone know how to optimize the Zope to run quicker? Is there > anything wrong with this configuration?? > > Thanks a lot, > > Christiano Anderson > > > > ___ > Zope maillist - [EMAIL PROTECTED] > http://lists.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope-dev ) > > ___ 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 assing a string value to a variable in DTML?
Notice the quotes. See the How to on Let tags: http://www.zope.org/Members/michel/HowTos/LetTagHow-To DR "iap_y2fun.com" wrote: > Forgive me for this stupid question: > How to assing a string value to a variable in DTML? > for example: > > b='b'> > > > > it causes error, not what I expected: > given a="", b="", and eval a+b to "" > > Thanks > > iap > > ___ > 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] How to assing a string value to a variable in DTML?
Forgive me for this stupid question: How to assing a string value to a variable in DTML? for example: it causes error, not what I expected: given a="", b="", and eval a+b to "" Thanks iap ___ 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] Python function within a ZClass...
On Thu, 17 Aug 2000 15:42:17 +0200, Marcin Kasperski <[EMAIL PROTECTED]> wrote: >Vincent wrote: >> >> Is it possible to access Python function within a ZClass ? >> >> If yes, how should I do that ? >> > >Two methods > >1) create External Method (python code in separate file placed in >Extensions directory + information which file should be called in Zope >management interface) > >2) create Python Method (you must install non-standard product providing >Python Methods) - then you edit Python code just via Zope management >interface (like DTML Documents) > 3) create a python class that does what provides the methods, and use that as a base class for your ZClass pro: easy to add more methods con: need to restart server after changes need to do this before you create the ZClass 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 )
[Zope] jcNTUserFolder troubles ..
Hi all Owww, now I understand nothing anymore. There's an NTUserFolder in '/' with user zopeman (on the local machine) with Manager and Debugger roles (Debugger doesn't have any permissions, it's just used to trigger the output of debugging information). 'standard_html_header' contains: Now how on earth can this output:: corpcomms\zopeman i.e. with *no* roles. Furthermore, when I browse to '/docs/manage' I get the left frame ('manage_menu') OK, but the right frame contains the viewed 'index_html' instead of the management view ('manage_workspace'). And, having gone back and forth with this for a bit, Python is now permanently taking up 99% of CPU. When I looked, it was using 21Mb of memory. Zope has frozen. I can't even browse to the control panel to shut it down. ?!?!?! I walked over to the relevant machine to shutdown and restart the Zope service, and that took me 10 minutes because it had become completely unresponsive. Any advice, pleeeze? Could this be due to jcNTUserFolder? Has anyone used it under stress? -- Jean Jordaan --technical writer-- Mosaic Sofware --Zope 2.1.6 on WinNT and W2K ___ 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 is very slow!
Hi, This is my first message to the list... I'm currently running Zope 2.1.6 + Apache 1.3.12 (with proxycache). The system is a Solaris 5.6 on a E450 with 2GB Ram and 2 X 450mhz... The Zope is running with Apache, using the ProxyCache and SiteAccess to convert all requests from port 8080 to 80. My problem is: The system is *too slowly*! Does anyone know how to optimize the Zope to run quicker? Is there anything wrong with this configuration?? Thanks a lot, Christiano Anderson ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] ProxyPass trouble II
Stephan Goeldi wrote: > > I forgot to mention: > > The ProxyPass works ok. After some work in the management folder, Apache > sends me the error message: If the proxy rules are all working fine to start with, then there shouldn't be any reason for them to suddenly stop working. > "The proxy server received an invalid response from an upstream server. > The proxy server could not handle the request GET /. > Reason: Could not connect to remote machine: Connection refused" This is saying that it is trying to proxy your request, but the backend server is not responding (ie. the zope server is not responding). > When I reboot the server, everything goes ok again. This further strengthens the case that this problem is not related to the ProxyPass at all, rather to do with what you are doing to your zope server. It works. You do some things. It stops working. You reset the server. It works. Throughout all of that, ProxyPass is proxying your requests, so that is not your problem. Cheers, Stephen -- Stephen Harrison[EMAIL PROTECTED] New Information Paradigms www.nipltd.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] Python function within a ZClass...
Vincent wrote: > > Is it possible to access Python function within a ZClass ? > > If yes, how should I do that ? > Two methods 1) create External Method (python code in separate file placed in Extensions directory + information which file should be called in Zope management interface) 2) create Python Method (you must install non-standard product providing Python Methods) - then you edit Python code just via Zope management interface (like DTML Documents) -- Serwis nie tylko mieszkaniowy: http://www.mk.w.pl | | You have the right to accept your responsibilites instead of having | them assigned to you. (Ken Beck's Third Developer Right) | ___ 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: concerning Xron with DA
From: "Nicholas Lo" <[EMAIL PROTECTED]> > I just wonder if Xron works with ZSQL Methods. > I know that ZSQL Methods only works with the request thread. > Thanks. I can think of no reason Xron would not work with ZSQL Methods; but I haven't tried it, because I have no SQL in my applications. Xron's dispatcher thread does not directly run scheduled methods; it uses Client.py to fabricate a request. So the scheduled method runs in a request thread, just as an ordinary client request. Scheduled methods are a subclass of DTML Method, so the scheduled method would have to call your ZSQL Method. There is currently no way to pass parameters to the request. If the ZSQL Method requires parameters, the scheduled method must supply them from its context. Would you like to be the first to try it out and report back to the mail list? Or has someone else already tried this? -- Loren ___ 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] open a database connection
Hi, sorry, found it by myself somewhere in the zope directory: for the people who are interesed: manage_open_connection manage_close_connection Regards, Tom. At 14:46 17/08/2000 +0200, Tom Deprez wrote: >Hi, > >How can I open a database connection from dtml? > >Thanks in advance, > >Tom. > >___ >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] Announce: Squishdot 0.5.0 now available!
albert boulanger wrote: > If I have an existing squishdot instance and want to gain the plain > text feature, is there a recipie for doing so? Is it simply replacing > the squisdot product or do I need to modify the existing one after > adding the new product version? whoops, sorry, forgot to include this link: http://www.squishdot.org/Documentation/upgrades.html cheers, Chris ___ 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 Hosting without Long Running Processes
Bob Horvath wrote: > > Where does this leave me? In a not very nice position ;-) > I have seen where Zope can be run as a CGI, but is unbearably > slow. Is unbearable truly unbearable? Yup, it would be if you had to start up Zope for every HTTP request. That takes 20 seconds or so on average, which is a pretty long time to respond for an HTTP REQUEST ;-) > Can just ZPublisher (this is what does this right?), be > run as a CGI? I don't think if would work like you want it to :S > Of course, my other option is to move my sites. I have a freezope > account at nipltd, but I assuming they don't want people doing > redirections ala redirection.net to freezope accounts. I can't see why we would object... why do you think we would? > I have > seen other hosting companies, but most seemed rather expensive, > especially in light that I would not be giving up my current ISP > for a couple of unrelated to Zope reasons. Well, you could probably host all your sites on a single Professional Zope Hosting instance from NIP: http://www.nipltd.net/professional.html That would cover your domain names and multiple sites as well as providing email redirection, log analysis and a MySQL database. Not to mention the fact that you can customize Zope to your heart's content including what version you use, what patches you apply and what products you choose to install. Hope that helps, Chris :-) ___ 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: Pb with MIME Type x-vCard
Le 17 Aug 00, à 11:31, [EMAIL PROTECTED] a écrit : > I'm doing a method for getting vCards from a directory. > It works fine, until i want to put some with the x-vCard > MIME type I respond to my own post. It seems that vCard doesn't like a line WITH propertyname AND WITHOUT propertyvalue. So some does the trick. Pay attention, the needs to be on a separate line for line break reasons. Content-type:text/x-vCard Content-Transfer-Encoding:8bit BEGIN:VCARD VERSION:2.1 N: EMAIL;INTERNET: ''">TEL;WORK: END:VCARD -- Didier Georgieff DDAF du Bas-Rhin - Cellule SIG 2, rue des Mineurs 67070 Strasbourg Cedex tél : 03.88.25.20.33 - fax : 03.88.25.20.01 email : [EMAIL PROTECTED] GéoWeb http://10.67.90.3 (Intranet Agriculture) GéoWeb http://sertit10.u-strasbg.fr (Internet) ___ 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] open a database connection
Hi, How can I open a database connection from dtml? Thanks in advance, Tom. ___ 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] Announce: Squishdot 0.5.0 now available!
Squishdot 0.5.0 is now available from http://www.zope.org/Members/chrisw/Squishdot/ The following changes were made: - Support has been added for postings to be formatted as Plain Text, HTML or Structured text on the same site. - You can preview when editing postings through the management interface. A whole host of bugs were also fixed, the most notable being the one which caused the 'managemanage_editForm' bug. Sadly, Squishdot does not yet work with Zope 2.2 :( If you run into problems, remember Squishdot has a mailing list at eGroups and a bug collector on SourceForge. cheers, Chris ___ 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] Old Zope packages
On Thu, Aug 17, 2000 at 01:42:45PM +0100, Chris Withers wrote: > Martijn Pieters wrote: > > See http://www.zope.org/Products/Zope > > > > I agree there should be a link from the Products page. > > I'm just wondering what '2.0.0-donotuseme' was? ;-) >From the Zope 2.0.1 CHANGES file: Zope 2.0.1 Bugs Fixed - A serious security bug allowed users with local roles to gain priviledges on acquired objects. That should give you a clue. -- Martijn Pieters | Software Engineermailto:[EMAIL PROTECTED] | Digital Creations http://www.digicool.com/ | Creators of Zope http://www.zope.org/ | ZopeStudio: http://www.zope.org/Products/ZopeStudio - ___ 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] Old Zope packages
Martijn Pieters wrote: > See http://www.zope.org/Products/Zope > > I agree there should be a link from the Products page. I'm just wondering what '2.0.0-donotuseme' was? ;-) cheers, Chris ___ 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] OQL for Zope
Will Zope.org implement OQL? FR ___ 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] jcNTUserFolder questions
Hi all I'm trying out jcNTUserFolder-0.0.7.zip now. It's looking great, but it looks like I've run across some gotchas. 1. I copied the entire installation from one computer to another:: > robocopy \\corpcomms\ZopeCorpComms \\jean\programs\ZopeCorpComms /MIR (which under W2K does an exact mirror of the whole thing). Now starting it (using 'start.bat') and attempting to authenticate gets me:: AttributeError Sorry, a Zope error occurred. Traceback (innermost last): File C:\PROGRA~1\ZOPECO~1\lib\python\ZPublisher\Publish.py, line 214, in publish_module File C:\PROGRA~1\ZOPECO~1\lib\python\ZPublisher\Publish.py, line 179, in publish File C:\PROGRA~1\ZOPECO~1\lib\python\Zope\__init__.py, line 202, in zpublisher_exception_hook (Object: ApplicationDefaultPermissions) File C:\PROGRA~1\ZOPECO~1\lib\python\ZPublisher\Publish.py, line 151, in publish File C:\PROGRA~1\ZOPECO~1\lib\python\ZPublisher\BaseRequest.py, line 428, in traverse File C:\PROGRA~1\ZOPECO~1\lib\python\ZPublisher\BaseRequest.py, line 504, in old_validation (Object: broken) AttributeError: __getitem__ Would this have anything to do with jcNTUserFolder? It worked fine before. 2. I don't understand how sub-NTUserFolders work. The following text (that you get when adding an NTUserFolder in a subfolder) doesn't enlighten me. What does "undesirable (although possible)" mean? Default behavior is to acquire user settings from higher user folders note: this setting helps with nesting NT User folders. It interferes with local roles. If you plan to use local roles, you should uncheck this box. It is then undesirable (although possible) to have nested NT User Folders. What puzzles me is this: in the root I have a user 'zopeman' with Manager rights. When I create an NTUserFolder in '/docs', zopeman doesn't have rights to access it. Neither does the superuser. ?? -- Jean Jordaan --technical writer-- Mosaic Sofware --Zope 2.1.6 on W2K ___ 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] Invalid Date-Time String
> > Unfortunately I am getting an "Invalid Date-Time String" error when > > calling the manage_editProperties. I tried some possible solutions from the > > mailing lists but failed so far, e.g. using ZopeTime or ZopeTime().DateTime() > > Any help? > > ... > > > > > > I hope that helps. > unfortunately it didn't. now I am stuck :( --Oliver ___ 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] unable to login with newly created user
And upon Thursday of August 17, the illustrious Martijn Pieters spake thusly... > On Thu, Aug 17, 2000 at 01:58:04AM -0700, Corey wrote: > > Hello all, > > > > I'm new to Zope - extreme apologies if this question has already > > been answered, but I'm simply at wits end here... > > I simply cannot for the life of me log in as non-superuser. > > > > Make sure that the domains field is empty. It is a space seperated list of > domains the user is admitted from, in either ip-number or ip-address > format. '*' as a wildcard for nameparts is allowed. Example: > '*.digicool.com 194.153.144.*'. > OK, yeah - I did leave that field empty.. forgot to mention that in my post. > Also, you don't need to set the Owner role. It is a special, magic role > used as a Local Role on objects a user created. > Will having the Owner role actually keep me from logging in as that user? I can't seem to create a user *without* the Owner role anyhow... jeeze. Any other suggestions? I appreciate the help - in the mean time, I'm gong to try installing version 2.1.6. Beers, Corey ___ 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] Old Zope packages
And upon Thursday of August 17, the illustrious Jarkko Veijalainen spake thusly... > > Where can i download older versions of Zope. > http://www.zope.org/Products/Zope/ ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Pb with MIME Type x-vCard
Hello, I'm doing a method for getting vCards from a directory. It works fine, until i want to put some with the x-vCard MIME type 1 - If i only put hard coded text it works fine. I get the usual vCard page on Netscape. Content-type:text/x-vCard Content-Transfer-Encoding:8bit BEGIN:VCARD VERSION:2.1 N:name EMAIL;INTERNET:email TEL;WORK:tel END:VCARD 2 - If i put some and render it ascii it works fine. I get a html page with the rendered variables. Content-type:text/plain Content-Transfer-Encoding:8bit BEGIN:VCARD VERSION:2.1 N: EMAIL;INTERNET: TEL;WORK: END:VCARD 3 - It fails when i do the x-vCard type AND . Content-type:text/x-vCard Content-Transfer-Encoding:8bit BEGIN:VCARD VERSION:2.1 N: EMAIL;INTERNET: TEL;WORK: END:VCARD I'm on 2.1.6 and Netscape 4.51 ANy idea on this strange behaviour ? -- Didier Georgieff DDAF du Bas-Rhin - Cellule SIG 2, rue des Mineurs 67070 Strasbourg Cedex tél : 03.88.25.20.33 - fax : 03.88.25.20.01 email : [EMAIL PROTECTED] GéoWeb http://10.67.90.3 (Intranet Agriculture) GéoWeb http://sertit10.u-strasbg.fr (Internet) ___ 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] Old Zope packages
On Thu, Aug 17, 2000 at 12:03:30PM +0300, Jarkko Veijalainen wrote: > Where can i download older versions of Zope. I need Zope 2.1.6. on solaris. > I previously did my project on RH6.2 / Zope 2.1.6 and i have this week to > get my project work on Zope 2.2.0 with solaris. It doesn't work (it doesn't > pass authentication, when i try post data to another dtml document) and i'm > in hurry to test my project on Solaris, so please tell me quickly where can > i download older Zopes. See http://www.zope.org/Products/Zope I agree there should be a link from the Products page. -- Martijn Pieters | Software Engineermailto:[EMAIL PROTECTED] | Digital Creations http://www.digicool.com/ | Creators of Zope http://www.zope.org/ | ZopeStudio: http://www.zope.org/Products/ZopeStudio - ___ 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] unable to login with newly created user
On Thu, Aug 17, 2000 at 01:58:04AM -0700, Corey wrote: > Hello all, > > I'm new to Zope - extreme apologies if this question has already > been answered, but I'm simply at wits end here... > > Linux 2.2.14 > Python 1.5.2 > Zope 2.2.0 from source wo_pcgi > Zserver > > I simply cannot for the life of me log in as non-superuser. > > I've installed and unininstalled and re-installed... and read, > and re-read the docs but to no avail - I even went so far > as to try from scratch on a wholy different computer all > together and was met with the exact same issue. > > After spending plenty of time in the archives for the list > and at the zope site's howto's I still have been unsuccessfull > in gleaning any help. I must have missed something very simple > along the way somewhere. Make sure that the domains field is empty. It is a space seperated list of domains the user is admitted from, in either ip-number or ip-address format. '*' as a wildcard for nameparts is allowed. Example: '*.digicool.com 194.153.144.*'. Also, you don't need to set the Owner role. It is a special, magic role used as a Local Role on objects a user created. -- Martijn Pieters | Software Engineermailto:[EMAIL PROTECTED] | Digital Creations http://www.digicool.com/ | Creators of Zope http://www.zope.org/ | ZopeStudio: http://www.zope.org/Products/ZopeStudio - ___ 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] unable to login with newly created user
Hello all, I'm new to Zope - extreme apologies if this question has already been answered, but I'm simply at wits end here... Linux 2.2.14 Python 1.5.2 Zope 2.2.0 from source wo_pcgi Zserver I simply cannot for the life of me log in as non-superuser. I've installed and unininstalled and re-installed... and read, and re-read the docs but to no avail - I even went so far as to try from scratch on a wholy different computer all together and was met with the exact same issue. After spending plenty of time in the archives for the list and at the zope site's howto's I still have been unsuccessfull in gleaning any help. I must have missed something very simple along the way somewhere. Here, in step by step order, is what I've been doing: log in as superuser access the manage page traverse into the /acl_users folder add a new user correctly set and verify the password attach Manager and Owner roles to user submit the Change button restart Zope clear netscape cache close netscape restart netscape point browser to zope page attempt to login with new user into Manage page... *allways* fail *everytime* with an 'Authorizatin failed' msg ack! What is my feeble little mind not catching onto here? I've ran z2.py with the -D flag and logging, and went through the same steps but nothing at all in these logs provides me with anything remotely usefull... I've ran Zope as both root and nobody, with no change. This is very frustrating, I've been at it for most of the night now. I sure could use a clue... Thanks, Corey ___ 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] Old Zope packages
Where can i download older versions of Zope. I need Zope 2.1.6. on solaris. I previously did my project on RH6.2 / Zope 2.1.6 and i have this week to get my project work on Zope 2.2.0 with solaris. It doesn't work (it doesn't pass authentication, when i try post data to another dtml document) and i'm in hurry to test my project on Solaris, so please tell me quickly where can i download older Zopes. look also : 33. Is this a bug? Posting data to another DTML document (Jarkko Veijalainen) on Zope digest, Vol 1 #934 jarkkov ___ 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 trouble
I use Zope with Apache 1.3.12 via ProxyPass. This is a nice workaround, because I don't have to struggle with the Rewrite stuff. My httpd.conf settings are the following: ServerName www.leimental.net ProxyPass / http://1.2.3.4:8080/leimental.net/ ProxyPassReverse / http://1.2.3.4:8080/leimental.net/ ProxyPass /cgi-bin/ http://1.2.3.4:80/cgi-bin/ ProxyPassReverse /cgi-bin/ http://1.2.3.4:80/cgi-bin/ ProxyPass /manage/ http://1.2.3.4:8080/manage/ ProxyPassReverse /manage/ http://1.2.3.4:8080/manage/ ProxyPass /misc_ http://1.2.3.4:8080/misc_ ProxyPass /p_http://1.2.3.4:8080/p_ TIA -goe- 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] ProxyPass trouble II
I forgot to mention: The ProxyPass works ok. After some work in the management folder, Apache sends me the error message: "The proxy server received an invalid response from an upstream server. The proxy server could not handle the request GET /. Reason: Could not connect to remote machine: Connection refused" When I reboot the server, everything goes ok again. 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 )