[Zope-dev] Accessing objects starting with _
I know that Zope uses the fact that an object or method starts with _ as a security feature, but is there a way of circumventing it? I am looking at the posibility of developing a basic level of Microsoft Frontpage support, but ALL frontpage actions contain _ in the folder names. If there is just one point in the code that I need to add a few exceptions to the Can't start with _ rule, then I can do that - This project is fairly important. Adrian... -- Adrian Hungate All views expressed in this email are those of the whole world, however some people don't realise this yet. ___ 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-dev] how to preserv information
Hi, I'm a new zope programmer. I created a page which show different products (from a oracle database) which can be selected (products are shoiwn in checkbox format). As I have a lot of product I also manage button ('Next' and 'previous') The proble is : When I select some products from on page and then I use the button 'next' or 'pervious I lose the selected product of the last page.. Is someone can help me and give me some solution ?? Thanks for your help
Re: [Zope-dev] Accessing objects starting with _
Adrian Hungate wrote: If there is just one point in the code that I need to add a few exceptions to the Can't start with _ rule, then I can do that - This project is fairly important. I don't think there's many places in the code. grep is probably your best friend... 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 )
Re: [Zope-dev] Re: Temporary Storage + Sessions + Versions: How?
Yeah... Either this or a storage that doesn't cause a version lock error when accessing an object that has been changed in a version are potential solutions. - Original Message - From: Joseph Wayne Norton [EMAIL PROTECTED] To: Chris McDonough [EMAIL PROTECTED] Cc: Joachim Werner [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Monday, January 14, 2002 11:53 PM Subject: Re: [Zope-dev] Re: Temporary Storage + Sessions + Versions: How? Chris and Joachim - Maybe this is too simplistic of an approach ... but why not have the session data manager automatically create a new, session data container (temporary storage) for a given zope version. The session data manager can be optimized for the case of no version and then when and if needed create temporary storages on demand for a particular version. - j ___ 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 )
Re: [Zope-dev] how to preserv information
Hi Champier, Please use the [EMAIL PROTECTED] list to post questions about programming in Zope. The zope-dev list is for folks to talk about coding Zope itself. Please also try not to send mail in HTML format. Thanks! - C - Original Message - From: Champier To: [EMAIL PROTECTED] Sent: Tuesday, January 15, 2002 4:41 AM Subject: [Zope-dev] how to preserv information Hi, I'm a new zope programmer. I created a page which show different products (from a oracle database) which can be selected (products are shoiwn in checkbox format). As I have a lot of product I also manage button ('Next' and 'previous') The proble is : When I select some products from on page and then I use the button 'next' or 'pervious I lose the selected product of the last page.. Is someone can help me and give me some solution ?? Thanks for your help ___ 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 )
Re: [Zope-dev] CMF attribute horror or too many [t|T]itles
Hi Romain, This is slightly offtopic for zope-dev. It probably belongs on the Zope CMF list. Thanks! - C - Original Message - From: Romain Slootmaekers [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, January 15, 2002 12:26 AM Subject: [Zope-dev] CMF attribute horror or too many [t|T]itles Yo dudes, just a stupid simple question: After wrestling with the documentation, I have created my own CMF content type and it actually works except for some details. In retrospect, it was 90% code browsing, and 10% useful documentation,... cmf is fun, but the cmf dogbowl really sucks .. Anyway, The type I created has a method def Title(self,REQUEST=None): ... and that gets used by some of the skins, The meta data of the object also has an attribute Title, which is used by the Topics for indexing, Now my problem: when a topic lists one of my objects, it lists them with ... li a href=dtml-objURL;dtml-var Title./a /li ... but neither my Title() method nor the Meta-data's Title attribute gets to be used. I get an empty string. Where does that one come from ? To make it even more confusing, the object also acquires a title attribute from somewhere higher up the acquisition tree. PS: I noticed the same problem when adding fi a File object through the zope management api instead of the portal management interface. Anyone any clues ? TIA, Sloot. ___ 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-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-dev] FYI: Sprint schedule online
Whew, at long last, I've posted a Sprint Schedule at: http://dev.zope.org/Wikis/DevSite/Projects/ComponentArchitecture/SprintSchedule Boy, that URL is too long. I edited the dev.zope.org homepage to add links to the Zope3 page and the sprint schedule. This page also answers the question, What is a sprint? --Paul ___ 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 )
Re: [Zope-dev] FYI: Sprint schedule online
On Tuesday, January 15, 2002, at 07:45 AM, Paul Everitt wrote: Whew, at long last, I've posted a Sprint Schedule at: http://dev.zope.org/Wikis/DevSite/Projects/ComponentArchitecture/SprintSchedule Boy, that URL is too long. I edited the dev.zope.org homepage to add links to the Zope3 page and the sprint schedule. This page also answers the question, What is a sprint? You of all people better not be whining about Zope URLs! ;) Jeffrey P Shell, [EMAIL PROTECTED] ___ 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 )
Re: [Zope-dev] FYI: Sprint schedule online
From: Paul Everitt [EMAIL PROTECTED] http://dev.zope.org/Wikis/DevSite/Projects/ComponentArchitecture/SprintSched ule Boy, that URL is too long. Hey, at least it's not http://dev.zope.org/foobar?grok=blahablaha.nsf% doc=876H97098788798u798707087556234023462078 . You gotta see the positive things. :-) ___ 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-dev] Utility of zope.org wiki page subscriptions
I'm finding the wiki page notifications mechanism extremely helpful for tracking wiki activity. While there's not much time available to tweak it further for people's needs, i'd like to collect feedback about how it does and doesn't serve other people's purposes, so that when we get around to the comprehensive effort we'll be able to factor-in that info! If you're using the feature and have comments, or not using the feature because of some shortcoming, please take a moment and add your comments to the effort feedback page: http://dev.zope.org/Wikis/DevSite/Projects/FishbowlNotificationsForNow/FeedBack If you're not using the feature because you don't know about it (what the heck am i talking about, anyway?-), see a copy of the announcement at: http://dev.zope.org/Wikis/DevSite/Projects/FishbowlNotificationsForNow/ReleaseAnnouncement (For those of you that missed that announcement and the subscriptions links, i think the feature is quite useful as is, and can significantly enhance the fishbowl process if it's used.) -- Ken [EMAIL PROTECTED] ___ 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-dev] Using Queue within a Zope product
I need to put messages into a queue from within a Zclass, and then get and process them from an external long running process. I have created a class which imports a derivative of queue, the class instantiates a queue as a class object. The idea is that the queue will use a persistent object for the queue (list), and then some external process can also use the same object(list) in its queue processing. Both the zclasses that inherit from this queue and the external process must use the same mutexes... Questions: 1 Should the queue.queue object be made persistent or should we instantiate it with an external list which is the persistent object. Can either of these be done an how. 2. Assuming we can do something like the above what are the considerations wrt package distribution. Max Slimmer Solutions Architect eMail: [EMAIL PROTECTED] Service Development - ECS Office:(707)829-2450 VERITAS Software Inc. Cell: (707)280-9299 ___ 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-dev] Zope 2.5.0b4 problems w/ ZEO
Trying to start a ZEO client using Zope 2.5.0b4 doesn't work: -- 2002-01-15T20:13:20 INFO(0) client Trying to connect to server: ('192.168.1.52', 8900) -- 2002-01-15T20:13:20 INFO(0) ClientStorage Connected to storage -- 2002-01-15T20:13:20 ERROR(200) ZODB Couldn't load state for '\x00\x00\x00\x00\x00\x00\x00\x02' Traceback (innermost last): File /data/www/Zope.8/src/Zope-2.5.0b4-src/lib/python/ZODB/Connection.py, line 471, in setstate TypeError: ('__init__() takes exactly 3 arguments (1 given)', extension class Products.Sessions.SessionDataManager.SessionDataManagerTraverser at 88ba2f8, ()) -- 2002-01-15T20:13:20 PANIC(300) z2 Startup exception -- 2002-01-15T20:13:20 ERROR(200) ZODB Couldn't load state for '\x00\x00\x00\x00\x00\x00\x00\x02' Traceback (innermost last): File /data/www/Zope.8/src/Zope-2.5.0b4-src/lib/python/ZODB/Connection.py, line 471, in setstate TypeError: ('__init__() takes exactly 3 arguments (1 given)', extension class Products.Sessions.SessionDataManager.SessionDataManagerTraverser at 88ba2f8, ()) Traceback (innermost last): File /data/www/Zope.8/Zope/z2.py, line 495, in ? File string, line 1, in ? File /data/www/Zope.8/src/Zope-2.5.0b4-src/lib/python/Zope/__init__.py, line 71, in ? File /data/www/Zope.8/src/Zope-2.5.0b4-src/lib/python/OFS/Application.py, line 245, in initialize File /data/www/Zope.8/src/Zope-2.5.0b4-src/lib/python/ZODB/Connection.py, line 471, in setstate TypeError: ('__init__() takes exactly 3 arguments (1 given)', extension class Products.Sessions.SessionDataManager.SessionDataManagerTraverser at 88ba2f8, ()) -- 2002-01-15T20:13:21 PROBLEM(100) zdaemon zdaemon: Tue Jan 15 15:13:21 2002: The kid, 12557, died on me. Any ideas or suggestions? --andy. ___ 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 )
Re: [Zope-dev] Accessing objects starting with _
Adrian Hungate writes: I know that Zope uses the fact that an object or method starts with _ as a security feature, but is there a way of circumventing it? I am looking at the posibility of developing a basic level of Microsoft Frontpage support, but ALL frontpage actions contain _ in the folder names. If there is just one point in the code that I need to add a few exceptions to the Can't start with _ rule, then I can do that - This project is fairly important. You can use a SiteAccess AccessRule to map the _ transparently to something different. There are HowTos on Zope.org on how to use SiteAccess for similar tasks. Dieter ___ 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 )
Re: [Zope-dev] Accessing objects starting with _
Now there is an idea. Not product'able (Is that a word?) but it might work for this specific instance. Thanks Adrian... -- Adrian Hungate All views expressed in this email are those of the whole world, however some people don't realise this yet. - Original Message - From: Dieter Maurer [EMAIL PROTECTED] To: Adrian Hungate [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday, January 15, 2002 8:02 PM Subject: Re: [Zope-dev] Accessing objects starting with _ Adrian Hungate writes: I know that Zope uses the fact that an object or method starts with _ as a security feature, but is there a way of circumventing it? I am looking at the posibility of developing a basic level of Microsoft Frontpage support, but ALL frontpage actions contain _ in the folder names. If there is just one point in the code that I need to add a few exceptions to the Can't start with _ rule, then I can do that - This project is fairly important. You can use a SiteAccess AccessRule to map the _ transparently to something different. There are HowTos on Zope.org on how to use SiteAccess for similar tasks. Dieter ___ 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-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 )
Re: [Zope-dev] Zope 2.5.0b4 problems w/ ZEO
Andrew Sydelko wrote: Trying to start a ZEO client using Zope 2.5.0b4 doesn't work: -- 2002-01-15T20:13:20 INFO(0) client Trying to connect to server: ('192.168.1.52', 8900) -- 2002-01-15T20:13:20 INFO(0) ClientStorage Connected to storage -- 2002-01-15T20:13:20 ERROR(200) ZODB Couldn't load state for '\x00\x00\x00\x00\x00\x00\x00\x02' Traceback (innermost last): File /data/www/Zope.8/src/Zope-2.5.0b4-src/lib/python/ZODB/Connection.py, line 471, in setstate TypeError: ('__init__() takes exactly 3 arguments (1 given)', extension class Products.Sessions.SessionDataManager.SessionDataManagerTraverser at 88ba2f8, ()) -- 2002-01-15T20:13:20 PANIC(300) z2 Startup exception -- 2002-01-15T20:13:20 ERROR(200) ZODB Couldn't load state for '\x00\x00\x00\x00\x00\x00\x00\x02' Traceback (innermost last): File /data/www/Zope.8/src/Zope-2.5.0b4-src/lib/python/ZODB/Connection.py, line 471, in setstate TypeError: ('__init__() takes exactly 3 arguments (1 given)', extension class Products.Sessions.SessionDataManager.SessionDataManagerTraverser at 88ba2f8, ()) Traceback (innermost last): File /data/www/Zope.8/Zope/z2.py, line 495, in ? File string, line 1, in ? File /data/www/Zope.8/src/Zope-2.5.0b4-src/lib/python/Zope/__init__.py, line 71, in ? File /data/www/Zope.8/src/Zope-2.5.0b4-src/lib/python/OFS/Application.py, line 245, in initialize File /data/www/Zope.8/src/Zope-2.5.0b4-src/lib/python/ZODB/Connection.py, line 471, in setstate TypeError: ('__init__() takes exactly 3 arguments (1 given)', extension class Products.Sessions.SessionDataManager.SessionDataManagerTraverser at 88ba2f8, ()) -- 2002-01-15T20:13:21 PROBLEM(100) zdaemon zdaemon: Tue Jan 15 15:13:21 2002: The kid, 12557, died on me. Any ideas or suggestions? --andy. Hi Andy, in this particular case, ZEO is a red herring... In beta 4 (and curiously, not on the HEAD--I'm sure I'll hear a mea maxima culpa soon from someone) the base class for the SessionDataManagerTraverser was made to be a persistent object. Since the base class changed, the ZODB is now having fits trying to reconcile the change in base classes. Since the session data manager object gets created automatically by Zope when it doesn't exist at system startup, you can make a new one (which inherits from Persistent) by: 1) Edit .../Products/Sessions/SessionDataManager and change the SessionDataManagerTraverser to not be persistent by duplicating the class line, commenting out one, and removing the Persistent word from the other 2) Restart Zope 3) Delete the session data manager from the root object 4) Stop Zope 5) Undo the editing change you did in step 1 6) Restart Zope The problem will now have been addressed in the ZODB. HOWEVER, since you mention you are running ZEO, all clients will have to have the same code base to be able to function. You won't be able to do this without upgrading all of your code at the same time. ___ 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-dev] A Free Invitation
Dear Netpreneur, Simply for accepting our FREE invitation to see this opportunity work for YOU, we'll lock in your position and EVERYONE who signs up AFTER you, signs up UNDER you!! http://wisechoice.50megs.com You can take your time and review all the benefits of your free membership, because frankly, there are too many remarkable benefits to be able to understand them all at a glance. Why are we doing this? Because when you see the astronomical growth and momentum, and you see how this program was designed to help any sincere marketer succeed, you'll accept the downline we've placed under you, and you'll decide to harvest your piece of this incredible event. Join the team of Internet Marketing Professionals that are presenting this opportunity to hundreds of people every day ! You can Join Free at: http://wisechoice.50megs.com There is absolutely NO risk in joining You owe it to yourself to see it work today!! Best Regards, Sondra This email is intended for people doing business on the Internet. If we have reached you in error please accept our apologies. Please use the email provided above to be removed from future mailings- = remove in subject area. ¡.a¨h gÊ«~·É¨h¡Êi×kz˶m§ÿæj)rj(r¢zùYb²Öh¥àÞ¿:)zàÛiÿùb²Û3¢¨®æj)fjåËbú?Î^uëÍ¡Êè²Êh²Û(¬tÌ-éܡا¥j×+-²m§ÿåËlÎ^¢¸?¨¥©ÿ+-wèÿ:)y©ç¢éÜzm§ÿåËlÎ^¢¸?¨¥©ÿ+-wèÿ:)
Re: [Zope-dev] Using Queue within a Zope product
I need to put messages into a queue from within a Zclass, and then get and process them from an external long running process. When you say an external long running process, do you mean that you'll want to access them from a separate process via something like XML-RPC? or ZEO? Or HTTP? What is your preferred way to get access to the items in the queue? I have created a class which imports a derivative of queue, the class instantiates a queue as a class object. The idea is that the queue will use a persistent object for the queue (list), and then some external process can also use the same object(list) in its queue processing. Both the zclasses that inherit from this queue and the external process must use the same mutexes... I dont think you mean external process here, I think you might mean something else... two processes can not share the same mutex. Do you maybe mean thread? Questions: 1 Should the queue.queue object be made persistent or should we instantiate it with an external list which is the persistent object. Can either of these be done an how. I think you could probably wrap the Queue class in a persistent wrapper... that'd work. Anything that can be pickled can be made persistent, so as long as the Queue class doesnt have a subobject that can't be pickled, you can make it persistent. You'll need to write a Python product to do so (see the Zope developer's Guide). 2. Assuming we can do something like the above what are the considerations wrt package distribution. None, really... if you intend to share just the class data. If you intend to share exports of instance data (the queues themselves), not much of an issue here either... just need to make sure that each Zope you run on has the Product you create. HTH, - C ___ 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 )
Re: [Zope-dev] Zope 2.5.0b4 problems w/ ZEO
in this particular case, ZEO is a red herring... In beta 4 (and curiously, not on the HEAD--I'm sure I'll hear a mea maxima culpa soon from someone) the base class for the SessionDataManagerTraverser was made to be a persistent object. Since the base class changed, the ZODB is now having fits trying to reconcile the change in base classes. Ugg. Since the session data manager object gets created automatically by Zope when it doesn't exist at system startup, you can make a new one (which inherits from Persistent) by: snip This all sounds right. Thanks Matt! Unfortunately, I don't think I can really make it so the transition between 2.4 - 2.5 (forwards and backwards) is completely seamless in all cases all I can do is provide software that helps folks get over their partiuclar hump. I think what might be in order is: - A monkey patch to 2.3 and 2.4 that causes the request to ignore the effects of a bad __before_publishing_traverse__ entry. This will be the prescription for AttributeError: __call__ errors when downgrading from 2.5 to 2.3/2.4. (Alternately, I could code up a little script that deleted the root __before_publising_traverse__ method, but that would also rid the site of access rules at the root). - Prominent mention of Matt's workaround for upgrading from 2.5.0 beta 1-3 to 2.5.0 beta 4. ___ 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-dev] One object where there should be two
I am having a problem with XMLKit. I have the following code in which should use one disk based DTML Method and produce two slightly different creation forms, one for XML and one for RSS (a specialization of the XML form):- manage_addRSSDocumentForm = Globals.DTMLFile('www/addXMLDocument', globals(), kind='RSS') manage_addXMLDocumentForm = Globals.DTMLFile('www/addXMLDocument', globals(), kind='XML') The problem is that both of my constructors run the RSS form, the XML version never gets displayed. I have checked the code in __init__ and it appears fine:- context.registerClass( XMLDocument.XMLDocument, meta_type='XML Document', permission='Add XML Documents', icon='www/XMLDocument.gif', constructors=( XMLDocument.manage_addXMLDocumentForm, XMLDocument.manage_addXMLDocument, ), ) context.registerClass( XMLDocument.RSSDocument, meta_type='RSS Document', permission='Add RSS Documents', icon='www/RSSDocument.gif', constructors=( XMLDocument.manage_addRSSDocumentForm, XMLDocument.manage_addRSSDocument, ), ) I've tried just about everything I can think of, can anyone shed any light? Is this a special rule I have broken? Thanks. Adrian... -- Adrian Hungate All views expressed in this email are those of the whole world, however some people don't realise this yet. ___ 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 )