[Zope] Re: Preserving Context
From: Suresh V [EMAIL PROTECTED] 1. Are you using container rather than context in your script? 2. You can pass your context as a mycontext parameter to your script. I have this line of code in my page template for handling the 404 errors: div align=center tal:condition=here/hasSearchEngine I changed it thus: div align=center tal:condition=here/hasSearchEngine(mycontext) I tested the following script with mycontext as a passed parameter: return 0 catalog = '' try: catalog = getattr(mycontext, mycontext.superValues('ZCatalog')[0].id) except: pass if catalog: return 1 This threw an error concerning mycontext. TIA, Javier Have a burning question? Go to www.Answers.yahoo.com and get answers from real people who know.___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Get a reference to the latest transaction
- Original Message - From: Peter Bengtsson [EMAIL PROTECTED] To: Jonathan [EMAIL PROTECTED] Cc: Zope Generic List zope@zope.org Sent: Tuesday, December 12, 2006 10:11 AM Subject: Re: [Zope] Get a reference to the latest transaction that doesn't get a particular transaction, it gets all the latest ones. If I use that approach, how do I know that I get my particular transaction and not some other concurrent one? If you want a specific user to be able to undo a specific transaction, then you may be able do this by getting a transaction id (does transaction_commit return a transaction id?) and then stuffing the transaction id into a SESSION variable. Jonathan On 12/12/06, Jonathan [EMAIL PROTECTED] wrote: - Original Message - From: Peter Bengtsson [EMAIL PROTECTED] To: Zope Generic List zope@zope.org Sent: Tuesday, December 12, 2006 9:51 AM Subject: [Zope] Get a reference to the latest transaction Is it possible? If so, how do I get a reference to the last/current transaction that just happened within a method? Pseudo code: class MyFolder(Folder): def manage_afterAdd(self): self.image_count = 0 def addImage(self, imgdata, REQUEST): self.manage_addImage('someid', file=imgdata) self.image_count = self.image_count + 1 url = self.absolute_url() + '?transactionid=%s' % get_transaction().getId() REQUEST.RESPONSE.redirect(url) If I had that, I could then do the following in my template: div tal:condition=request/transactionid|nothing Image uploaded. a tal:attributes=href string:undoTransaction?transactionid=${request/transactionid} Undo/a /div Is it possible? You could have a look at manage_UndoForm and see how it gets the transaction information. Jonathan ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) -- Peter Bengtsson, work www.fry-it.com home www.peterbe.com hobby www.issuetrackerproduct.com ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: Preserving Context
Javier Subervi wrote: div align=center tal:condition=here/hasSearchEngine(mycontext) And where is mycontext defined? You will need a tal:define=mycontext here or something. I tested the following script with mycontext as a passed parameter: return 0 catalog = '' try: catalog = getattr(mycontext, mycontext.superValues('ZCatalog')[0].id) except: pass Bare except? You bad boy! Use except AttributeError: In fact remove the try/except and study the trace output. Suresh ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Re: Preserving Context
In your root folder you could have a script that accesses the ZCatalog which can be called from any subfolder and can tell where it was called from... try the following: create a python script (tst) in your root folder that contains the following code: return str(traverse_subpath) then invoke this script file as followings: http:/your.web.site/tst http:/your.web.site/tst/folderA http:/your.web.site/tst/folderB/folderC (substitute your own subfolders as required) This may get you what you are looking for. Alternatively, if you need more control over the parameters that are getting sent to the script file in the root folder, then you could create a script file in each subfolder which calls the 'root script' with the necessary 'localized' parameters. Jonathan - Original Message - From: Javier Subervi To: zope@zope.org Sent: Tuesday, December 12, 2006 11:55 AM Subject: [Zope] Re: Preserving Context From: Jonathan [EMAIL PROTECTED] From: Suresh V [EMAIL PROTECTED] In your script you could access the catalog as follows: afolder = context.restrictedTraverse('folderA/folderB/'+someLocalFolder) # pass 'someLocalFolder' as a parameter catalog = afolder.Catalog# assuming you have named your ZCatalog 'Catalog' The problem with this, is that this script is used at the base of a portal with several different Web sites, therefore, the root folder of each is different. And where is mycontext defined? You will need a tal:define=mycontext here or something. I added the following: div align=center tal:define=mycontext here tal:condition=here/hasSearchEngine(mycontext) ...but that didn't seem to help any: Error Type: KeyError Error Value: 'hasSearchEngine(mycontext)' Concerning your comment about the except, this script was written by an employee of mine. I'm now picking up where he left off. I cleaned it up ;) TIA, Javier -- Want to start your own business? Learn how on Yahoo! Small Business. -- ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: Preserving Context
752 From: Jonathan [EMAIL PROTECTED] In your root folder you could have a script that accesses the ZCatalog which can be called from any subfolder and can tell where it was called from... try the following: create a python script (tst) in your root folder that contains the following code: return str(traverse_subpath) then invoke this script file as followings: http:/your.web.site/tst http:/your.web.site/tst/folderA http:/your.web.site/tst/folderB/folderC (substitute your own subfolders as required) You're going to be disappointed, but whenever I substituted in any number of valid folders, I got the same result: [] an empty set! TIA, Javier Any questions? Get answers on any topic at www.Answers.yahoo.com. Try it now.___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: Preserving Context
From: Jonathan [EMAIL PROTECTED] What version of zope are you running? (I am running zope 2.9.2 on a linux box). 2.7.8 I didn't put it in 'root' since root isn't automatically called. I put it in a folder called 's' which is automatically called, then I also explicitly called it in the URL. Obviously, if the fn weren't found, Zope would have complained. It was in fact found. TIA, Javier Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail beta. http://new.mail.yahoo.com___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Re: Preserving Context
The script routine doesn't have to be located in root. traverse_subpath is populated using the names of all subfolders that occur after the script file name in the URL. So if your URL is: http:/my.web.site/folderA/scriptA/folderB/folderC, then scriptA will receive a traverse_subpath variable (in REQUEST namespace) that contains ['folderB', 'folderC']. Note: this will not work if there are any other scripts, DMTL methods etc in the URL after 'scriptA'. Jonathan - Original Message - From: Javier Subervi To: zope@zope.org Sent: Tuesday, December 12, 2006 1:48 PM Subject: [Zope] Re: Preserving Context From: Jonathan [EMAIL PROTECTED] What version of zope are you running? (I am running zope 2.9.2 on a linux box). 2.7.8 I didn't put it in 'root' since root isn't automatically called. I put it in a folder called 's' which is automatically called, then I also explicitly called it in the URL. Obviously, if the fn weren't found, Zope would have complained. It was in fact found. TIA, Javier -- Any questions? Get answers on any topic at Yahoo! Answers. Try it now. -- ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Re: Preserving Context
As far as I understand you have script (say it has id 'handle_404_scr') that handles 404 errors in 'root' folder. In this script you have something like: div align=center tal:define=mycontext here tal:condition=here/hasSearchEngine(mycontext) Yes? So how is this script called? I'm not sure what exactly is your case but you may try: div align=center tal:condition=here/hasSearchEngine(here/aq_inner) or just (without passing a parameter): div align=center tal:condition=here/aq_inner/hasSearchEngine() -- Maciej Wisniowski ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: Preserving Context
From: Jonathan [EMAIL PROTECTED] The script routine doesn't have to be located in root. traverse_subpath is populated using the names of all subfolders that occur after the script file name in the URL. So if your URL is: http:/my.web.site/folderA/scriptA/folderB/folderC, then scriptA will receive a traverse_subpath variable (in REQUEST namespace) that contains ['folderB', 'folderC']. Note: this will not work if there are any other scripts, DMTL methods etc in the URL after 'scriptA'. I figured out what I was doing wrong. Apparently, the script needs to be called *before* the folders. I had put it at the end. Okay, that works, so now how do I incorporate it? I'm running into trouble here. I've rewritten the following line several times, and several times gotten it wrong. Perhaps you could steer me right? div align=center tal:define=mycontext python:`here.traverse_subpath` tal:condition=here/hasSearchEngine(mycontext) TIA, Javier Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail beta. http://new.mail.yahoo.com___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Re: Preserving Context
- Original Message - From: Javier Subervi To: zope@zope.org Sent: Tuesday, December 12, 2006 2:29 PM Subject: [Zope] Re: Preserving Context The script routine doesn't have to be located in root. traverse_subpath is populated using the names of all subfolders that occur after the script file name in the URL. So if your URL is: http:/my.web.site/folderA/scriptA/folderB/folderC, then scriptA will receive a traverse_subpath variable (in REQUEST namespace) that contains ['folderB', 'folderC']. Note: this will not work if there are any other scripts, DMTL methods etc in the URL after 'scriptA'. I figured out what I was doing wrong. Apparently, the script needs to be called *before* the folders. I had put it at the end. Okay, that works, so now how do I incorporate it? I'm running into trouble here. I've rewritten the following line several times, and several times gotten it wrong. Perhaps you could steer me right? div align=center tal:define=mycontext python:`here.traverse_subpath` tal:condition=here/hasSearchEngine(mycontext) Your page template just needs to construct a URL (that your users can access - eg. in an html link) that contains the name of the script file at the beginning of the URL (ie. before the target subfolder(s)). The script file will have to use the traverse_subpath contents to build a string which you can then use to access the required folder: targetFolder = string.join(traverse_subpath, '/')#you will have to play with this to get the right target folder for your app aFolder = context.restrictedTraverse(targetFolder) searchRes = aFolder.Catalog(some search string here) do something with search results here Jonathan Any questions? Get answers on any topic at Yahoo! Answers. Try it now. ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Zeo question
Hi, Hope you can help 1. I am having trouble connecting a zope client to a zeo database.The server and client are in different goegraphical locations and behind different proxies and firewalls. I read that they communicate using a 'custom RPC protocol'...what does this mean and does it have any influence on which firewall/proxy rules we need to implement on our network?? 2. I can create a custom skin on each zope (in reality plone) instance right or is each zope instance is just a mirror of the other? thx -- Ian Lawrence http://ianlawrence.info Centre for Bioinformatics INSTITUTO NACIONAL DE PESQUISAS DA AMAZÔNIA-INPA RUA ANDRÉ ARAÚJO N º .2936 , BAIRRO DO ALEIXO MANAUS-AMAZONAS-BRAZIL Research Program in Biodiversity http://ppbio.inpa.gov.br PHONE: 055-92-3643-3358 CEP. 69011 -970 | Please do not send me documents in a closed | format.(*.doc,*.xls,*.ppt) | Use the open alternatives. (*.pdf,*.html,*.txt) http://www.gnu.org/philosophy/no-word-attachments.html return [type for type in types if type not in types_to_exclude] If you can see the beauty, then Python got you ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Zeo question
2. I can create a custom skin on each zope (in reality plone) instance right or is each zope instance is just a mirror of the other? Nope. It is something different. In general ZEO is about sharing ZODB (Zope Object Database) between few Zope instances. There is no mirroring but just one ZODB. ZODB is a place where all objects you have created through ZMI (Zope Management Interface) are hold. When you have standard setup (one Zope instance) it has it's own ZODB (you may see this in instance/var/data.fs. With ZEO you have ZEOServer that holds ZODB (data.fs file) and multiple ZEO Clients that are connecting to it. ZEOClient is a normal ZopeInstance that is not using it's own data.fs (ZODB) but shared one. Because of this, every object created/changed/removed on one ZEOClient is removed from shared ZODB therefore all ZEOClient see this. There is more things that can be done. You may for example define (in zope.conf) mount points for folders that are individual for each zope etc. -- Maciej Wisniowski ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Zeo question
- Original Message - From: Maciej Wisniowski [EMAIL PROTECTED] To: ian [EMAIL PROTECTED] Cc: zope@zope.org Sent: Tuesday, December 12, 2006 4:00 PM Subject: Re: [Zope] Zeo question 2. I can create a custom skin on each zope (in reality plone) instance right or is each zope instance is just a mirror of the other? Nope. It is something different. In general ZEO is about sharing ZODB (Zope Object Database) between few Zope instances. There is no mirroring but just one ZODB. ZODB is a place where all objects you have created through ZMI (Zope Management Interface) are hold. Scripts and external methods can also create objects which are stored in the ZODB When you have standard setup (one Zope instance) it has it's own ZODB (you may see this in instance/var/data.fs. With ZEO you have ZEOServer that holds ZODB (data.fs file) and multiple ZEO Clients that are connecting to it. ZEOClient is a normal ZopeInstance that is not using it's own data.fs (ZODB) but shared one. Each zope instance can access multiple ZODB's (as Maciej mentions later), which means that the zope instance can access both a shared zodb and a local zodb which is specific to the zope instance. Because of this, every object created/changed/removed on one ZEOClient is removed from shared ZODB therefore all ZEOClient see this. There is more things that can be done. You may for example define (in zope.conf) mount points for folders that are individual for each zope etc. -- Maciej Wisniowski You could store all objects in a shared zodb, even objects which are specific to a single zope instance (and control access via permissions, application logic, etc). And you can create objects in a local zodb (which would only be accessible by the local zope instance). Zope is very flexible! You just need to build a configuration which meets your use case! hth Jonathan ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] tal conditional help
I have a page template that div tag to insert another template. currently I do div content=structure here/form.pt form template /div I rely on the form.pt object to exist in the folder where the template is called from. This works okay. However, I think it would be wise to put some kind of error checking in the tal to avoid sending some kind of exception to the browser. what I think would be the correct thing is to test if form.pt exists, if not do insert nothing, otherwise insert it as above. However I can't seem to locate any tal syntax that lets me do this. I found tal:condition but haven't found any examples of using a 'exists' type of condition. Any pointers? -- David Bear phone: 602-496-0424 fax:602-496-0955 College of Public Programs/ASU University Center Rm 622 411 N Central Phoenix, AZ 85007-0685 Beware the IP portfolio, everyone will be suspect of trespassing ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] tal conditional help
On 12.12.2006, at 22:57, David Bear wrote: I have a page template that div tag to insert another template. currently I do div content=structure here/form.pt form template /div use the or operator it also catches errors div content=structure here/form.pt | nothing form template /div ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] if object does not exist in python
Can anyone show me code examples of a script that checks for the existences of a named object? -- David Bear phone: 602-496-0424 fax:602-496-0955 College of Public Programs/ASU University Center Rm 622 411 N Central Phoenix, AZ 85007-0685 Beware the IP portfolio, everyone will be suspect of trespassing ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] if object does not exist in python
+---[ David Bear ]-- | Can anyone show me code examples of a script that checks for the | existences of a named object? if namedObject in container.objectIds(): # object exists else: # doesn't Checks for named object inside the container that the script is in. -- Andrew Milton [EMAIL PROTECTED] ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope-dev] Zope Tests: 7 OK
Summary of messages to the zope-tests list. Period Mon Dec 11 12:00:00 2006 UTC to Tue Dec 12 12:00:00 2006 UTC. There were 7 messages: 7 from Zope Unit Tests. Tests passed OK --- Subject: OK : Zope-2.6 Python-2.1.3 : Linux From: Zope Unit Tests Date: Mon Dec 11 21:06:04 EST 2006 URL: http://mail.zope.org/pipermail/zope-tests/2006-December/006803.html Subject: OK : Zope-2.6 Python-2.3.6 : Linux From: Zope Unit Tests Date: Mon Dec 11 21:07:35 EST 2006 URL: http://mail.zope.org/pipermail/zope-tests/2006-December/006804.html Subject: OK : Zope-2.7 Python-2.3.6 : Linux From: Zope Unit Tests Date: Mon Dec 11 21:09:05 EST 2006 URL: http://mail.zope.org/pipermail/zope-tests/2006-December/006805.html Subject: OK : Zope-2.8 Python-2.3.6 : Linux From: Zope Unit Tests Date: Mon Dec 11 21:10:35 EST 2006 URL: http://mail.zope.org/pipermail/zope-tests/2006-December/006806.html Subject: OK : Zope-2.9 Python-2.4.4 : Linux From: Zope Unit Tests Date: Mon Dec 11 21:12:05 EST 2006 URL: http://mail.zope.org/pipermail/zope-tests/2006-December/006807.html Subject: OK : Zope-2.10 Python-2.4.4 : Linux From: Zope Unit Tests Date: Mon Dec 11 21:13:35 EST 2006 URL: http://mail.zope.org/pipermail/zope-tests/2006-December/006808.html Subject: OK : Zope-trunk Python-2.4.4 : Linux From: Zope Unit Tests Date: Mon Dec 11 21:15:05 EST 2006 URL: http://mail.zope.org/pipermail/zope-tests/2006-December/006809.html ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
[Zope-dev] ZopeVersionControl bug
is there a current maintainer or development process for ZopeVersionControl? there's been a little bit of activity lately, but it's still in CVS. in any event, CMFEditions (a versioning system for Plone) depends on ZVC, and it seems that some recent changes to Zope's DateTime implementation have caused a ZVC bug to come to the surface. dorneles has recently improved the ISO8601 support in the DateTime module (http://tinyurl.com/y9weck). one of the results is that DateTime('1') now is interpreted similarly to DateTime(1), whereas before it would raise an error. in ZVC's Repository.getVersionOfResource() method (http://tinyurl.com/yab2xw), a selector is passed in, which the method will try to use in a number of ways before deciding that there's no matching version to return. the final test looks like this: try: date = DateTime(selector) except: raise VersionControlError( 'Invalid version selector: %s' % selector ) else: ... RETRIEVE BY TIMESTAMP HERE thus the change in DateTime behaviour means if the selector is a string representation of an integer, it formerly would have been rejected as invalid, but now will be considered a timestamp lookup. since version ids are commonly string representations of integers, this can be a bit of a problem. i'm not sure whether the DateTime behaviour should be reverted, or if there should be a change in ZVC. and i'm also not sure what's going on w/ ZVC's maintenance... are there any plans to bring it over to subversion? i'm happy to commit a fix, if someone can point me in the right direction. thx, -r ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] ZopeVersionControl bug
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 13 Dec 2006, at 03:44, Rob Miller wrote: is there a current maintainer or development process for ZopeVersionControl? there's been a little bit of activity lately, but it's still in CVS. in any event, CMFEditions (a versioning system for Plone) depends on ZVC, and it seems that some recent changes to Zope's DateTime implementation have caused a ZVC bug to come to the surface. dorneles has recently improved the ISO8601 support in the DateTime module (http://tinyurl.com/y9weck). one of the results is that DateTime('1') now is interpreted similarly to DateTime(1), whereas before it would raise an error. ZopeVersionControl has no official maintainer. The DateTime implementation has problems and needs to be fixed, at the very least for those problems that cause failing CMF unit tests right now. Dorneles said he would do it but hasn't gotten to it yet. jens -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.5 (Darwin) iD8DBQFFf7LgRAx5nvEhZLIRAgUFAKCCgVQQEXsFCdRHC4dHmU4Mt6GL2gCeKmux vimAUDVO0QK5RWiSnWJJC5A= =tmEM -END PGP SIGNATURE- ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-Perl] Re: PyPerl MULTI_PERL Problem
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Pedro Algarvio, aka, s0undt3ch wrote: Both codes are available on net: ISPMan- http://ispman.cvs.sourceforge.net/ispman/ ISPManCCP - http://ccp.ufsoft.org/browser That way you can look at how I'm using PyPerl, and also point me to some bad usage of if ;) P.S.: PyPerl is initialized on: http://ccp.ufsoft.org/browser/trunk/ispmanccp/lib/app_globals.py And used mostly on: http://ccp.ufsoft.org/browser/trunk/ispmanccp/lib/ispman_helpers.py Anywhere you see *g.ispman* that's actually a ref to ISPMan's perl module. - -- Pedro Algarvio __ ___ ___ ______ __ | Y .' _| _ .-.' _| |_ .-..-. |. | | _| 1___| _ | _| _|__| _ | _| _ | |. | |__| | |_|__| ||__|_|__| |___ | |: 1 ||: 1 | |_| |::.. . ||::.. . | ufs [AT] ufsoft [DOT] org `---'`---'ufs [AT] sapo [DOT] pt -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.2.2 (GNU/Linux) iD8DBQFFfzgHniPxVTX2hA4RAl8MAJ9q/XA1V5ZQTw5WySs8AuuGvd8itQCfSdlZ Toc316Qm6BRzGkWirczepNY= =rLGU -END PGP SIGNATURE- ___ Zope-perl maillist - Zope-perl@zope.org http://mail.zope.org/mailman/listinfo/zope-perl