Re: [Zope-dev] To the brave folks trying Zope HEAD...
Sidnei da Silva wrote: | Is there any special trick to such script? Provided some pointers of | what the script should do, I wouldn't mind writing and testing it. | | There are lots of special tricks to such a script. Otherwise, I would | have written it already. :) Obviously. /me slaps his forehead | OK, here's how I think it needs to happen, with some, hopefuly helpful | notes. | | 1. The script needs to be run under Zope 2.6 or 2.7. There should |be a product that people can install that installs some method to |be run. People should be able to run this method in a running zope. |They should not need to shut down their site to do the conversion. | | 2. The method should walk the object tree, converting: | |- old-style BTrees to modern BTrees |- old-style buckets to modern buckets |- intSets to IITreeSets. Just to check: +--+---+ | Old|New| +--+---+ | BTree | OOBTree | +--+---+ | IIBTree | IIBtree | +--+---+ | OIBTree | OIBTree | +--+---+ | IOBTree | IOBTree | +--+---+ | intSet | IITreeSet | +--+---+ | bucket? | bucket? | +--+---+ No, this isn't quite right. I don't remember the details off hand. Think of it in terms of modules: objects from BTree - objects from BTrees.OOBTree objects from IOBTree - objects from BTrees.IOBTree objects from OIBTree - objects from BTrees.OIBTree objects from IIBTree - objects from BTrees.IIBTree objects from intSet - objects from BTrees.IIBTree |The individual conversions should be pretty simple. At worst involving |a for loop, but, in many cases, the constructors for the new types will |be able to accept the old types. | | 3. The hard part is walking the object tree. You will need a function that, |given an object, will return the oids of the objects it references. |Perhaps Jeremy can help you with that. I hope so *wink*. Me too. He's pretty busy. If he can't, I'll try to help. Jim -- Jim Fulton mailto:[EMAIL PROTECTED] Python Powered! CTO (540) 361-1714http://www.python.org Zope Corporation http://www.zope.com http://www.zope.org ___ Zope-Dev maillist - [EMAIL PROTECTED] 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] Changing the Appearance of the Contents of a Local File System Object
Hello. I have a folder that I have created at the root level and inside this folder I have placed one Local File System object. The Local File System object contains two File objects. When I view the Local File System object by clicking on the 'View' option provided by the management interface, I can see that it contains two File objects. What I would like to do is to change the way that these File objects are displayed. Specifically, I would like to show only certain attributes that these File objects have and hide others. Right now, the following attributes are shown: type, icon, size, and last modified time(mtime). I would like to hide the size and last modified time(mtime) attributes. I want these attributes to be set but I do not want their values to show. FYI, I am using the Local File System Product. Any help would be greatly appreciated. Thanks. - Asad ___ Zope-Dev maillist - [EMAIL PROTECTED] 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] Environment for Python Development
Hello. Do any of you know of an IDE(preferably open source) that I can use to develop/debug/test python code in? Thanks. - Asad ___ Zope-Dev maillist - [EMAIL PROTECTED] 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] Environment for Python Development
jeremy recommends this from developerWorks(TM): lesenswert - Title: Charming Python: Review of Python IDEs David looks at four open source development environments for working with Python code on Unix-like operating systems. He evaluates two general-purpose editors/environments and two Python-specific ones, and compares the merits of each. Learn more: http://www-106.ibm.com/developerworks/library/l-cpyide/?ca=dnt-449 developerWorks Need it? Get it. http://www.ibm.com/developerWorks Am Freitag, 12. Dezember 2003 14:20 schrieb Asad Habib: Hello. Do any of you know of an IDE(preferably open source) that I can use to develop/debug/test python code in? Thanks. - Asad ___ Zope-Dev maillist - [EMAIL PROTECTED] 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 ) -- mit freundlichen GrĂ¼ssen Robert Rottermann www.redCOR.ch ___ Zope-Dev maillist - [EMAIL PROTECTED] 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] Creating a Zope Product
Does anyone know how to create a Zope Product? One example would be the Local File System Object that I am using. If you could point me to some resources that would be great. Thanks. - Asad ___ Zope-Dev maillist - [EMAIL PROTECTED] 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] To the brave folks trying Zope HEAD...
| Think of it in terms of modules: | | objects from BTree - objects from BTrees.OOBTree | objects from IOBTree - objects from BTrees.IOBTree | objects from OIBTree - objects from BTrees.OIBTree | objects from IIBTree - objects from BTrees.IIBTree | objects from intSet - objects from BTrees.IIBTree Ok. +++ |Old |New | +++ |BTree.BTree |BTrees.OOBTree.OOBtree | +++ |BTree.Bucket|BTrees.OOBTree.OOBucket | +++ |IOBTree.BTree |BTrees.IOBTree.IOBTree | +++ |IOBTree.Bucket |BTrees.IOBTree.IOBucket | +++ |OIBTree.BTree |BTrees.OIBTree.OIBTree | +++ |OIBTree.Bucket |BTrees.OIBTree.OIBucket | +++ |IIBTree.IIBTree |BTrees.IIBTree.IIBTree | +++ |IIBTree.Bucket |BTrees.IIBTree.IIBUcket | +++ |intSet |BTrees.IIBTree.IITreeSet| +++ | | 3. The hard part is walking the object tree. You will need a function | that, | |given an object, will return the oids of the objects it references. | |Perhaps Jeremy can help you with that. | | I hope so *wink*. | | Me too. He's pretty busy. If he can't, I'll try to help. I started with a slight variation of Shane's change_modules.py [1]. Had to make some changes because stuff seem to have changed in the Connection class. For example, invalidate() now expects a dict instead of a oid. My plan is to change around line 130, where it creates a new pickle with new_class_spec to wake the old object, create a new one and pickle the new object. Sounds reasonable? [1] http://cvs.sourceforge.net/viewcvs.py/zodbex/zodbex/ChangeModules/change_modules.py?rev=1.3view=auto -- Sidnei da Silva [EMAIL PROTECTED] http://awkly.org - dreamcatching :: making your dreams come true http://plone.org/about/team#dreamcatcher A programming language is low level when its programs require attention to the irrelevant. ___ Zope-Dev maillist - [EMAIL PROTECTED] 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] Environment for Python Development
Hello. Do any of you know of an IDE(preferably open source) that I can use to develop/debug/test python code in? Thanks. Don't forget Boa Constructor: http://boa-constructor.sourceforge.net/ -- Jean Jordaan http://www.upfrontsystems.co.za ___ Zope-Dev maillist - [EMAIL PROTECTED] 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] problem with TAL statements across multiple lines in zope 2.7b3
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 13/12/2003, at 3:34 AM, Gerry Kirk wrote: i didn't have this problem with zope 2.6.2. I have a TAL statement as follows: tal:define = url python:test(item_typeinfo.getId() in use_folder_contents, item.absolute_url()+'/folder_contents', item.absolute_url()+'/'+action); this statement works if it is all on one line, but i get a syntax error if it is spread across multiple lines. is this a bug, or a change in TAL design? Works for me. You aren't accidently splitting inside of a string are you? - -- Stuart Bishop [EMAIL PROTECTED] http://www.stuartbishop.net/ -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.3 (Darwin) iD8DBQE/2puKAfqZj7rGN0oRAs9IAJ0SudIu20xmevZrSIHTPu2Aug9cDwCgiRFw 7x6vS4ticldQQ6H+Q4dL8xU= =hBXD -END PGP SIGNATURE- ___ Zope-Dev maillist - [EMAIL PROTECTED] 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 )