[Zope-dev] aq_inContextOf attribute error
Hello All ! After installing latest stable version of Zope (2.2.4) I tried to install ZFormulator version 0.2. And as result got 2 problems with permissions system. First was in ZFormulator itself, and was corrected: __roles__ = ('manager',) was changed to __roles__ = ('Manager',) but this bug correction worked fine for previous versions of Zope, and in current version adding of field produced error: Attribute Error: aq_inContextOf in line 231 of lib/python/AccessControl/User.py I am nor Zope nor Python hacker, but I tried to correct this line a little, and this worked for me. Please advice did I made it correct way or not. User.py line 231: Here was the original code (which produced error): if not parent.aq_inContextOf(self.aq_parent.aq_parent,1): Here is replacement (added check is attribute exists): if hasattr(parent, 'aq_inContextOf') and not parent.aq_inContextOf(self.aq_parent.aq_parent,1): After this correction everything works fine, but since I am not Zope/Python guru, but just a user which wanted some program to start working, I keeping changed locally, but of course I am interested was this correction OK. Regards. -- Alex V. Koval ___ 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] ZCatalog catalog_object
Itamar Shtull-Trauring wrote: Chris Withers wrote: ...in which case, I wonder why CatalogAwareness goes to the trouble of unindexing and then re-indexing? Because in older ZCatalog (before 2.3 and maybe before 2.2.4), catalog_object did not uncatalog automatically. When in doubt, assume ZCatalog is broken :p Hmmm... I wonder if Chris P or anyone else in the know could confirm the recommended steps to recatalog an object? 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] Local Factories in Products
Johan Carlsson wrote: In ZClasses it is possible to control where a ZClass instance should be permitted to be added, in other words show up in the factory listing in a ObjectManagers manage_main view. Didn't Itamar have a proposal/project on this? How did it work out? 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] CatalogAware
Chris Withers wrote: Michael Bernstein wrote: Hmm. Aren't postings CatalogAware? If they're not, shouldn't they be? Why? ;-) Squishdot manages the cataloging, re-cataloging and un-cataloging of its own postings. I don't think CatalogAware would make that process any simpler or more reliable... I guess it's just a matter of only reinventing the wheels you have to, and writing less code as a result. Squishdot seems like it would fall into the category covered by the following howtos: http://www.zope.org/Members/tseaver/inherit_ZCatalog http://www.zope.org/Members/AlexR/CatalogAware But I'm probably overlooking something. Cheers, Michael Bernstein. ___ 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] dynamic permissions in zope
Hi, I'm very new to zope and have to eximine, if it's usable for our requirements. The question I have, is very simple or perhaps very difficult, I don't know. Our requrements are a permissioning system which depends on a matrix: There are two independend qualities which describe, if a user is allowed to see a document. This can be displayed in a matrix. Only if *both* qualities match, the user is allowed to see it. As far as I understand zope, it is not possible to map this directly (as by all other systems I know). So my question: Is it possible to connect a permission (or role) in zope with a method (instead of a static flag which was set)? If it is possible, it should be possible to call a special algorithm with this request, which can implement whatever is needed. So, it would be (easy) possible to *integrate* this functionality. (I called this permissions "dynamic", because the are evaluated when requestet.) Or does anybody has another (better) idea? Any help is very apreciated, Heinz-Josef Claes [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] Local Factories in Products
Chris Withers wrote: In ZClasses it is possible to control where a ZClass instance should be permitted to be added, in other words show up in the factory listing in a ObjectManagers manage_main view. Didn't Itamar have a proposal/project on this? It's still unimplemented - you can view the details at http://dev.zope.org/Wikis/DevSite/Proposals/RestrictedCreation, and there's some implementation suggestions from Jim Fulton in the discussion area. -- Email: [EMAIL PROTECTED] Web: http://itamarst.org ___ 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] ZPatterns example update....
At 03:08 PM 1/2/01 +1100, Itai Tavor wrote: Hi Steve, Steve Spicklemire wrote: "Itai" == Itai Tavor [EMAIL PROTECTED] writes: Itai Maybe with this Itai SkinScript: WITH Doers.getItem(self.doerID) CALCULATE Itai self.doerID=RESULT.id or '' ? But I'm not really sure about Itai this... Ahh.. I think my brain just imploded in a recursive death spiral, but I get intent of the idea. This would work I think: WITH Doers.getItem(self.doerID) COMPUTE self.myDoer=RESULT or Doers.getItem('doNothing') where there is a default 'doer' named 'doNothing' in one of the Doers Racks. This guy would 'fill in' for the ToDo's doer when no 'real' doer can be found... I like that. ;-) Yeah, this looks good... whether it's appropriate or not depends on how you expect the case where there's no Doer to behave - if you needed to know explicitly that a Doer doesn't exist, returning a 'nothing' doer could confuse things. BTW, I can't see the recursion in my script... but maybe my brain is still in vacation mode :) Your script uses an attribute (doerID) in the WITH clause that is provided by the COMPUTE clause. This is infinitely recursive in theory. In practice, it will result in the non-existence of the doerID attribute, as ZPatterns treats recursive attribute references as non-existence of the attribute. The WITH clause will fail with an AttributeError. ___ 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] Conflict Errors
Chris McDonough wrote: The ZODB tries hard to avoid error conditions for you by retrying conflicting writes, but if you really pound the snot out of a particular object, it'll let you know. That's gotta be one for the Zope quotes board, if I could onyl remember the URL :-) and step through a real-world ConflictError situation. Neither of which I have time to do right now... sorry, Chris. this one by saying "I don't know" because it's one of those things where learning exactly what is going on can chew up time like nobody's business, because I'd need to step through the code line-by-line. I shouldn't even be in here. :-( Hey, no problem, the help was much appreciated :-) However, if anyone does know what constitutes a 'seperate object' in ZODB terms, it be really useful to know. I'm guessing a class which inherits from Persistent? Dictionaries don't, 'cos they're python builtins, which I'm pretty certain was the problem in my case... 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] Local Factories in Products
Itamar Shtull-Trauring wrote: Chris Withers wrote: In ZClasses it is possible to control where a ZClass instance should be permitted to be added, in other words show up in the factory listing in a ObjectManagers manage_main view. Didn't Itamar have a proposal/project on this? It's still unimplemented - you can view the details at http://dev.zope.org/Wikis/DevSite/Proposals/RestrictedCreation, and there's some implementation suggestions from Jim Fulton in the discussion area. I think the point was missed slightly in the discussion. Right now containers can limit what kinds of objects they can contain. It should also be possible for objects to limit what kinds of containers can contain them. Shane ___ 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 confuse the publishing process
Steve Spicklemire wrote: Hi Chris, OK... you need to tell us where the index_html's are and what they have in them! ;-) Doesn't seem to matter what's in them... Say there's one in folder1 and one in folder2, which one should be used? Why are neither of them being used? cheers, Chris Do you have a dtml-var folderx somewhere? don't think so... Chris If you go to a URL that ends in a folder, you get the Chris index_html in that folder, right? Chris Well, yes and no... Chris If you go to: http://server.com/folder1/folder2/folder1 Chris ...where folder1 is a folder in your Zope's root, folder2 Chris is contained in folder1, but doesn't itself contain a Chris folder1 (so the last folder1 in the url is also the first Chris one, just acquired), Zope returns the following: Chris htmlhead base Chris href="http://localhost:8080/testnav/normaltest/testnav/" Chris /head Chris body Folder instance at 014B3D80 /body /html ___ 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] ANNOUNCE: PartitionedFileStorage
Chris Withers wrote: Shane Hathaway wrote: I just realized I could use the "patch" command to backport. So I made a new tarball. Have fun! http://www.zope.org/Members/hathawsh/PartitionedFileStorage/PartitionedFileStorage-0.0.1-2_2.tar.gz/view great :-) It's installed and running now. No problems yet, btu then I haven't seen any partitioning either... how long doI have to wait? ;-) Until 512 MB. However, you can change the default partition size in FileStorage.py. Note that it behaves correctly with partitions of varying size, so you don't have to worry that it'll get confused if you set it to a partition size of 10 MB when your first partition is already 50 MB. BTW, Evan helped me find and correct a bug. You'll only run into it if you set your partition size to less than the size of the largest ZODB objects. --- PartitionedFile.py~ Wed Nov 22 16:14:27 2000 +++ PartitionedFile.py Mon Dec 11 12:01:18 2000 @@ -343,7 +343,7 @@ file = self.__seekToNextPartition() if file is not None: state = self.__state -toAppend = file.read(size) +toAppend = file.read(size - len(data)) data = data + toAppend else: break Shane ___ 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] PartitionedFileStorage - Eek!
Shane Hathaway wrote: BTW, Evan helped me find and correct a bug. You'll only run into it if you set your partition size to less than the size of the largest ZODB objects. That's fixed in 0.0.2, right? Well, anyway, I changed the line in FileStorage.py as follows: # Use 0.5 GB partitions because that's what fits on a CD. defaultOps = PartitionedFileOperations( DefaultPartitionNamingStrategy(partlen=4)) #DefaultPartitionNamingStrategy(partlen=2L**29)) ...so I could try and provoke a split, but, now, when I try to add objects, I get: Error Type: CorruptedDataError Error Value: 41904222L Traceback (innermost last): File E:\Zope\22C38D~1.5B1\lib\python\ZPublisher\Publish.py, line 222, in publish_module File E:\Zope\22C38D~1.5B1\lib\python\ZPublisher\Publish.py, line 187, in publish File E:\Zope\22C38D~1.5B1\lib\python\Zope\__init__.py, line 221, in zpublisher_exception_hook (Object: ApplicationDefaultPermissions) File E:\Zope\22C38D~1.5B1\lib\python\ZPublisher\Publish.py, line 171, in publish File E:\Zope\22C38D~1.5B1\lib\python\ZPublisher\mapply.py, line 160, in mapply (Object: manage_main) File E:\Zope\22C38D~1.5B1\lib\python\ZPublisher\Publish.py, line 112, in call_object (Object: manage_main) File E:\Zope\22C38D~1.5B1\lib\python\App\special_dtml.py, line 120, in __call__ (Object: manage_main) (Info: E:\Zope\2.2.5b1\lib\python\OFS\main.dtml) File E:\Zope\22C38D~1.5B1\lib\python\DocumentTemplate\DT_String.py, line 528, in __call__ (Object: manage_main) File E:\Zope\22C38D~1.5B1\lib\python\App\special_dtml.py, line 120, in __call__ (Object: manage_tabs) (Info: E:\Zope\2.2.5b1\lib\python\App\manage_tabs.dtml) File E:\Zope\22C38D~1.5B1\lib\python\DocumentTemplate\DT_String.py, line 528, in __call__ (Object: manage_tabs) File E:\Zope\22C38D~1.5B1\lib\python\DocumentTemplate\DT_With.py, line 146, in render (Object: _(manage_options=filtered_manage_options())) File E:\Zope\22C38D~1.5B1\lib\python\App\PersistentExtra.py, line 114, in locked_in_version (Object: ApplicationDefaultPermissions) File E:\Zope\22C38D~1.5B1\lib\python\ZODB\Connection.py, line 432, in modifiedInVersion File E:\Zope\22C38D~1.5B1\lib\python\ZODB\DB.py, line 364, in modifiedInVersion File E:\Zope\2.2.5b1\lib\python\ZODB\FileStorage.py, line 679, in modifiedInVersion (Object: E:\Zope\2.2.5b1/var/Data.fs) CorruptedDataError: (see above) Any ideas? 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] dynamic permissions in zope
Steve Alexander wrote: I believe the latest LoginManager allows you to specify what roles a user has, and compute these each request, based on the details of the request. This is probably more useful than having dynamically computed permissions; While I can see how a user's roles will vary according to where they are, what they are doing and when they are doing it, I cannot see why permissions need to change in that way. However, you mention that you are new to Zope. ZPatterns can be difficult to understand and get into. Other than the creators of ZPatterns, I haven't heard of anyone using this computed permissions system. What I forgot to mention: LoginManager is a Zope product that is built using ZPatterns, another Zope product. When you are doing advanced things with LoginManager, you need to know how ZPatterns works. There are a couple of HOWTO documents on using LoginManager. It will be only a small change to alter the "userRoles" method that returns the roles a user should have to calculate these roles based on other criteria. See these documents for information about how to set up LoginManager. http://www.zope.org/Members/dlpierson/sqlLogin http://www.zope.org/Members/jok/SQL_based_LoginManager -- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.net ___ 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] OracleStorage, and possibly others
Jim Fulton wrote: - Policies to control whether multiple revisions are stored or whether revisions are removed by packing on a object-by-object or transaction-by-transaction basis. You could keep significant historical revisions for important objects, such as Wiki pages, templates, scripts, etc., with a policy to decide which revisions are significant. - The ability to set policies to implement quotas. We are also working on ZEO storage replication. This may have a big impact on the storage API, or lead to specialized APIs for replicated storages. very cool :-) Any idea when these will be around to play with? Please help stamp out Data.fs! :-) Nah... we like it, especially once Shane's PartionedFile storage makes it into production... 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] ANNOUNCE: PartitionedFileStorage
Shane Hathaway wrote: BTW, Evan helped me find and correct a bug. You'll only run into it if you set your partition size to less than the size of the largest ZODB objects. The new version of FileStorage.py in PartitionedFileStorage for 2.3 overwrites some of the changes made the FileStorage locking protocol in CVS. These are the ones using _commit_lock_acquire _commit_lock_release. -- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.net ___ 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] What's 'section' in blocks[0] in block dtml tag?
Lee, I've been diddling around with the same stuff. It took me a lot of introspection with printing of errors via MrCreosote/Spew. To answer your question, 'section' is an object which contains an attribute 'blocks'. If you want to render the dtml in there, you can run the 'render_blocks' method in 'zope-instance/lib/Python/pDocumentTemplate.py' You pass it the section.blocks object and a mapping dictionary which is the current namespace stack that gets passed in as the only argument to the 'render' method in you tag definition. If you just want the raw text, check you the render_blocks method, so you can see how they take apart the 'section.blocks' object. As to the object hiarchy of everything, your guess is as good as mine as to why there's a list of tuples of blocks wrapped in a section object, wrapped in another blocks object, I have know idea. Perhaps the designer of the document templates could answer... -Brett "LEE" == LEE Kwan Soo [EMAIL PROTECTED] writes: LEE Hi. I'm playing/struggling to make a custom block dtml tag. LEE Let me call it, dtml-quote tag. LEE dtml-quote tag is similar to dtml-comment tag except it will emit LEE html_quoted, not rendered version of what lies LEE between dtml-quote ... /dtml-quote. LEE (I feel it will be usefull when I show write some dtml examples on my LEE korean zope site). LEE After seeing around some python sources, LEE I finally got that tname is the name of the tag, args is args, and section LEE is something, in the following code. LEE def __init__(self, blocks): LEE tname, args, section = blocks[0] LEE and section seems to have 6 attributes/methods: LEE '__name__', '_v_blocks', '_v_cooked', '_vars', 'blocks', 'globals', 'raw' LEE But that mistic raw is null string, '' and blocks is no help for me. LEE How can I retrieve the raw source string enclosed in a block tag pair? LEE LEE Kwan Soo. LEE ps. My English is evem more cryptic this morning. Sorry I've sat up alnight play LEE Kingdom Under Fire. LEE ___ LEE Zope-Dev maillist - [EMAIL PROTECTED] LEE http://lists.zope.org/mailman/listinfo/zope-dev LEE ** No cross posts or HTML encoding! ** LEE (Related lists - LEE http://lists.zope.org/mailman/listinfo/zope-announce LEE 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] PartitionedFileStorage - Eek!
Chris Withers wrote: Shane Hathaway wrote: BTW, Evan helped me find and correct a bug. You'll only run into it if you set your partition size to less than the size of the largest ZODB objects. That's fixed in 0.0.2, right? Should be, although I just realized I don't know whether 0.0.2 was intended for Zope 2.2 or 2.3. Well, anyway, I changed the line in FileStorage.py as follows: # Use 0.5 GB partitions because that's what fits on a CD. defaultOps = PartitionedFileOperations( DefaultPartitionNamingStrategy(partlen=4)) #DefaultPartitionNamingStrategy(partlen=2L**29)) ...so I could try and provoke a split, but, now, when I try to add objects, I get: Error Type: CorruptedDataError Error Value: 41904222L Ugh. I have no idea what might have happened. That's why I'm wary: if something goes wrong, the symptoms will show up a long time after the problems occur. Now BerkeleyStorage is on its way and once that's ready, PartitionedFileStorage will have such a small audience that it won't be worth the trouble. Oh well, it was a fun experiment. Shane ___ 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] ANNOUNCE: PartitionedFileStorage
Steve Alexander wrote: Shane Hathaway wrote: BTW, Evan helped me find and correct a bug. You'll only run into it if you set your partition size to less than the size of the largest ZODB objects. The new version of FileStorage.py in PartitionedFileStorage for 2.3 overwrites some of the changes made the FileStorage locking protocol in CVS. These are the ones using _commit_lock_acquire _commit_lock_release. Well, it's pretty easy to use diff and patch to correct it. But like I told ChrisW, I think BerkeleyStorage will fill the need that PartitionedFileStorage was only partitially addressing. OTOH I've been running it for a while now on my box and have had no signs of problems. Shane ___ 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] Conflict Errors
Y'know since replying to this message originally, I've learned a lot about pickled representations of Zope objects and I think I can answer this more cogently: - Instances of classes which inherit from Persistence.Persistent are represented as an individual pickle. Their attributes are contained in this pickle, unless those attributes are themselves instances of something that inherits from Persistence.Persistent. - References to persistent objects in other objects are kept as an object identifier. This means, for example, that a dictionary of integers to persistent object instances looks something like this in a pickle:: {1:oid 1, 2:oid 2, ...} If this dictionary is an attribute of a persistent object, adding, changing, or removing items from it will modify its containing persistent object. It was this "reference by oid" concept that turned the light on for me here, hopefully it can do the same for you. One of the potential big wins with the current Zope implementation of a BTree is that it exposes a mapping interface, so you can treat it just like a dictionary. However, internally, it's composed of a number of separate persistent objects that can be changed independently of each other. This means that changing one item in a BTree will change one persistent object that makes up a BTree, but will not necessarily effect the other persistent objects that compose it. Unortunately, currently, the BTree implementation has some problems that cause that *not* to be the case in many situations, and independent writes to it often conflict. We are working on another BTree implementation to resolve the issue. - Original Message - From: "Chris Withers" [EMAIL PROTECTED] To: "Chris McDonough" [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday, January 02, 2001 11:50 AM Subject: Re: [Zope-dev] Conflict Errors Chris McDonough wrote: The ZODB tries hard to avoid error conditions for you by retrying conflicting writes, but if you really pound the snot out of a particular object, it'll let you know. That's gotta be one for the Zope quotes board, if I could onyl remember the URL :-) and step through a real-world ConflictError situation. Neither of which I have time to do right now... sorry, Chris. this one by saying "I don't know" because it's one of those things where learning exactly what is going on can chew up time like nobody's business, because I'd need to step through the code line-by-line. I shouldn't even be in here. :-( Hey, no problem, the help was much appreciated :-) However, if anyone does know what constitutes a 'seperate object' in ZODB terms, it be really useful to know. I'm guessing a class which inherits from Persistent? Dictionaries don't, 'cos they're python builtins, which I'm pretty certain was the problem in my case... 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] PartitionedFileStorage - Eek!
Shane Hathaway [EMAIL PROTECTED] wrote: Now BerkeleyStorage is on its way and once that's ready, PartitionedFileStorage will have such a small audience that it won't be worth the trouble. Oh well, it was a fun experiment. Can you pleae expand on this.. what about BerkeleyStorage is on its way and when ? Been using it for soem tests and like it very much, sincerely hoping it might get rolled into Zope and Python before long. thanks - Jason ___ Jason CUNLIFFE = NOMADICS['Interactive Art and Technology'] ___ 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] PartitionedFileStorage - Eek!
Shane Hathaway wrote: Should be, although I just realized I don't know whether 0.0.2 was intended for Zope 2.2 or 2.3. There is no difference between the PartitionedFile.py files in the 2.2 and 2.3 versions, so I guess 0.0.2 will do as well for either. -- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.net ___ 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] uncataloging objects
hi there. i have certain problems with the catalog class. i have something over 9000 objects (all of the same type) cataloged, and it does not only take REAL long to reindex them (but hey, i could live with that), sometimes it also makes the python-process sort of 'hang up' - it merly crushes the whole zope process.. the even bigger problem is that it makes trouble when uncataloging objectsthat seems to fail completely: here's some code from the class-definition, where i try to uncatalog the object: def killMe(self): "deletes the record. in fact the record has to be uncataloged first." try: self.Catalog.uncatalog_object('/'+self.absolute_url(1)) except: return "couldn't uncatalog the record." try: self.records.manage_delObjects(ids=self.getId()) # 'records' is a folder, in which the objects are stored except: return "couldn't delete the record." return Globals.MessageDialog( titel='Record deleted', message='Record deleted successfully.', ) so i let my objects kill themselves;) what really confuses me is the fact that while performing that function, no exeption is raised. the uncataloging-call is inside a try/except, but it seems to be performed regulary. but: it isn't! the object, while already deleted, remains still cataloged, which leads to some unpleasant error-pages (key-error) when contained inside the result-set of a search. i have a zope 2.2.2 under linux installed, with hotfixes 2000-10-02, 2000-10-11, 2000-12-08, 2000-12-15a and 2000-12-18, zcatalog 2.2.0 and some selfwritten stuff does anybody have an idea what goes wrong here? regards, rob. Robert Prosencweb: http://www.matrixware.at/ mail: [EMAIL PROTECTED] Matrixware phone:+43( 1) 713 43 06 - 2 postal: Geusaugasse 39 (Ecke Kundmanngasse) A-1030 Vienna, AUSTRIA while !asleep() sheep++ winmail.dat
[Zope-dev] ANN: CoreSessionTracking Release 0.4
Hello, A new development release of the "Core Session Tracking" product (0.4) is available at http://www.zope.org/Members/mcdonc/Products/CoreSessionTracking This release makes substantial interface and feature changes including using an internal mounted storage to provide an "internal" session data container to each session data manager, autoexpiring session data objects, as well as vastly improved documentation. Please check it out! Thanks, 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] dynamic permissions in zope
Steve Alexander [EMAIL PROTECTED] wrote: Steve Alexander wrote: I believe the latest LoginManager allows you to specify what roles a user has, and compute these each request, based on the details of the request. This is probably more useful than having dynamically computed permissions; While I can see how a user's roles will vary according to where they are, what they are doing and when they are doing it, I cannot see why permissions need to change in that way. However, you mention that you are new to Zope. ZPatterns can be difficult to understand and get into. Other than the creators of ZPatterns, I haven't heard of anyone using this computed permissions system. What I forgot to mention: LoginManager is a Zope product that is built using ZPatterns, another Zope product. When you are doing advanced things with LoginManager, you need to know how ZPatterns works. There are a couple of HOWTO documents on using LoginManager. It will be only a small change to alter the "userRoles" method that returns the roles a user should have to calculate these roles based on other criteria. See these documents for information about how to set up LoginManager. http://www.zope.org/Members/dlpierson/sqlLogin http://www.zope.org/Members/jok/SQL_based_LoginManager The workflow-as-finite-state-machine implementation I am working on for the PTK has similar requirements: the permission associated with a particular method (e.g., 'edit'), depends on the workflow status of the object (e.g., you need more privileges to edit the object once it has been "published"). My temporary workaround is to have each method assert the appropriate permission, as part of creating its audit trail entry. I plan to arrange for the permission-role mapping computation to be handled by the workflow tool, as well. Tres. -- === Tres Seaver[EMAIL PROTECTED] Digital Creations "Zope Dealers" http://www.zope.org ___ 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] Re: [Zope-PTK] A subclass from PortalMember of Membership Product andObjectManager won't list contained objectsObjectManager won't list contained objects
Dirksen wrote: My site is installed with the Membership system. I want to store some photos in each member. So I create a new member ZClass, subclassing PortalMember and ObjectManager, and set the 'manage_main' as the main view. Under the instance of this new member ZClass, I can add images, but I can't find them! 'objectItems' always return None. Yet the image file is there. I can edit their properties as in '/test/acl_users/jay/photo1/manage_main', but '/test/acl_users/jay/manage_main' just won't show a thing! I'm guessing you have installed the latest tarball of the PTK, and not the CVS version; that tarball shipped with a bug in PortalFolder, which prevented classes which had not registered as "portal content" from showing up in its objectItems()/objectValues/objectIds() lists. Please try upgrading to the latest CVS and see if the problem persists (http://www.zope.org/Products/PTK/ has directions for getting the CVS version). Alternately, here is the patch for PTKBase/PortalFolder.py: diff -u -r1.25 -r1.27 --- PortalFolder.py 2000/11/08 22:48:38 1.25 +++ PortalFolder.py 2000/11/21 21:36:17 1.27 @@ -110,9 +110,22 @@ ) def all_meta_types( self ): -return ( self.content_meta_types - + PortalFolder.inheritedAttribute( 'meta_types' ) - ) + +names = {} +types = [] + +for cmt in self.content_meta_types: +names[ cmt[ 'name' ] ] = 1 +types.append( cmt ) + +superTypes = PortalFolder.inheritedAttribute( 'all_meta_types' )( self ) + +for smt in superTypes: +if not names.has_key( smt[ 'name' ] ): +names[ smt[ 'name' ] ] = 1 +types.append( smt ) + +return tuple( types ) def manage_addPortalFolder(self, id, title='', REQUEST=None): @@ -130,11 +143,13 @@ listActions__roles__ = () def listActions( self, info ): -return [ { 'name' : 'View' +return ( { 'name' : 'View' , 'url': info.folder_url , 'permissions': [] , 'category' : 'folder' - } ] + } + , + ) _morphSpec__roles__ = () def _morphSpec( self, spec ): Tres. -- === Tres Seaver[EMAIL PROTECTED] Digital Creations "Zope Dealers" http://www.zope.org ___ 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] ANNOUNCE: PartitionedFileStorage
But like I told ChrisW, I think BerkeleyStorage will fill the need that PartitionedFileStorage was only partitially addressing. How is the new BerkeleyStorage product coming along? /Magnus ### This message has been scanned by F-Secure Anti-Virus for Microsoft Exchange. For more information, connect to http://www.F-Secure.com/ ___ 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] Allowed characters in Zope ids
I recently read RFC 2396 which defines the generic URI syntax and especially the URL syntax. I recognized, that * Zope forbids many characters in ids (with the error message "not allowed in URLs"), that are legal characters in URL path segments: generally allowed in URL's: -_.!~*'() Zope accepted:_. ~ allowed in path segments: :@=+$, Zope accepted: , This, probably, is not a big problem. But, it would be easy to fix. * Zope allows space characters in (ObjectManager) id's. The space is not a valid URL character. Zope forbids spaces in property ids. * The URL path segment syntax provides for a parameter section suffix where each parameter is introduced with ';'. Future Zope versions should probably take care of this (recent) extension. It might, too, provide a good way to pass values in URLs without the pollution of the query string. 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] How to store a dictionary in propert sheet?
At 12:08 AM 01/02/2001 -0800, Dirksen wrote: Please give me a hint. Get the product TinyTablesPlus. You could create a "lines" property with something like: key1:value1 key2:value2 Then string split it and create the dictionary just before you need to use it. But I've found TinyTablesPlus to be very very handy. chas ___ 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] standard_error_message woes!
Just catching up on my mail... Gaaah! I'm totally miffed/pissed/confused/sad about this. I have Zope 2.2.4, and if I go to: http://docwhat.gerf.org:9673/fish (an non-existant object) I get the HTTPResponse.py _error_html() function as called by notFoundError(). As already mentioned, not all errors (unfortunately) get handled by standard_error_message - authorisation being the main culprit. In addition, if an error occurs in a standard_error_message it'll also cause the plain, default error page to be displayed. Looks like you're handling a 404 (Not Found) so I'd advise checking your custom page is correct first as an error there could be causing the custom error message to be superceded. All good fun :-/ Hope that's a useful starter... John -- John Chandler / Software Developer / New Information Paradigms Ltd [ Linux in the office, AmigaOS in the home, PalmOS in the pocket ] The opinions above aren't those of my company... ...but then, they aren't really mine either. ___ 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] standard_error_message woes!
John Chandler wrote: As already mentioned, not all errors (unfortunately) get handled by standard_error_message - authorisation being the main culprit. In addition, if an error occurs in a standard_error_message it'll also cause the plain, default error page to be displayed. Hurm... I would have thought/it would be nice if an error occurs in standard_error_message then, the next standard_error_message up the acquisition path would get used, resorting to the hard coded one only if there isn't anything else... Is that the case? 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] [Ann] Squishdot 0.7.3 Released
Squishdot 0.7.3 is now available to download from http://www.zope.org/Members/chrisw/Squishdot/ The following major changes were made: - Fixed TinyTable detection that got broken in 0.7.2. - Fixed problems with moderated Squishdot sites and searching. - Fixed the behaviour of Squishdot's ZCatalog when Squishdot Sites were moved, copied or renamed. There were some other small changes and improvements. 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] downgrading from 2.1.x from 2.2.0 to use NTuser authentication
On Wed, 20 Dec 2000 13:15:22 -0800, Erik Myllymaki [EMAIL PROTECTED] wrote: I would really like to use the jc/ntuserfolder products but see that they haven't been brought up to speed with the new 2.2.x security model. Will downgrading to 2.1.x render my site inaccessible? What will I have to change security wise so I can use these pages from the old version? Alternatively, I might take a stab at bring the jc/ntuserfolder up to date with the new security model - any insight from those in the know appreciated(am I underestimating that task?). [You should be able to find several references to this in the archives.] Firstly, these old XXXUserFolder products still work acceptably unless you are using the PTK (or other similar products). The incompatability is not with Zope, but rather with these other products. Adding to NUserFolder to keep up with API changes is probably not the best solution, because the User Folder API has been significantly extened. A better approach is to use a customisable User Folder product like LoginManager. It should be possible to transplant the authentication functions from NTUserFolder. Ive not tried this, but it looks easy enough. I hope this helps, Toby Dickenson [EMAIL PROTECTED] ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Zope vs. Enhydra
On Friday 29 December 2000, at 18 h 52, the keyboard of [EMAIL PROTECTED] wrote: But really, has anyone had any experience with the *other* open source Web Application Server, Enhydra? Why, *the* other? There is only one? http://www.brics.dk/bigwig/ ___ 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] terrible kludge to set password
On Mon, Jan 01, 2001 at 04:29:24PM -0500, Kyler B. Laird wrote: I was unsuccessful at finding any examples of changing a user's password from DTML, but I did see a few requests for such functionality. http://www.zope.org/Members/tseaver/user_settable_passwords -- Mike Renfro / RD Engineer, Center for Manufacturing Research, 931 372-3601 / Tennessee Technological University -- [EMAIL PROTECTED] ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Something missing in Python Methods
Hi, Curtis... You're right for the word "method"... But that's in fact why they are not called "methods" anymore ! :-)) Don't blame Python Script team : it's a non-trivial problem, both for security and... feasibility reasons ! I don't know wether it actually works for Python Methods, but you should try to pass your environment, just as you would for DTML Methods, like this : dtml-var "MyPythonMethod (_.None, _)" And then you should gain access to Zope environment. But remember this is not elegant and may lead you to security problems. Regards, P.-J. Curtis Maloney wrote: Greetings Yeh, yeh.. I know.. I should be using Python Scripts, or whatever... but for various reasons, I'm still using 2.1.6... What I want to know is, why can't Python Methods refer to anything not explicitly passed to them? I don't want to have to make everything that invokes the method have to know to pass it half a dozen objects. Isn't the idea of a method to be executed in the namespace of it's parent? I want my method to be able to access objects in it's own folder... What am I missing? 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 ) -- If the only tool you have is a hammer, you tend to see every problem as a nail. Si le seul outil dont vous disposez est un marteau, vous avez tendance à voir chaque problème comme un clou. --Abraham Maslow ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] html_quote in python methods?
I am using Python Methods a lot now. Good: no more dtml-with to get to the objects I need. Yay! no more worrying about closing blocks. Yay! OK, when I make a syntax error, there is no help in the traceback. My Python is getting better and better as a result. To give something back, I have a hint that took me a while to figure out: print 'td width="33%"%s/td' % (self.thevariable) will not work. The first % needs to be escaped like so: print 'td width="33%%"%s/td' % (self.thevariable) Now, can I use html_quote in a Python Method? I am letting people enter data for redisplay, and I know some Bozo (TM) will somehow put in "table" and break the page. Can I keep this from happening? html_quote does not seem to be in the Python Method namespace. Regards, -- Jim Washington ___ 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] Something missing in Python Methods
From: Curtis Maloney [EMAIL PROTECTED] What I want to know is, why can't Python Methods refer to anything not explicitly passed to them? I don't want to have to make everything that invokes the method have to know to pass it half a dozen objects. Isn't the idea of a method to be executed in the namespace of it's parent? I want my method to be able to access objects in it's own folder... Yep. You just need to make the first parameter of your method 'self', and not have any parameters with default values. For example, method plusX:: paramsself, x/params return len(self.objectIds()) + x ...can be called like 'folder.plusX(3)'. You can also acquire objects that your method needs from 'self'. Cheers, Evan @ digicool 4-am ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] manage_users( ) method
Happy new year everyone, all the best. Question: Where can I get the specifications for acl_users.manage_users()? Mohan. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Kyler B. Laird Sent: Monday, January 01, 2001 4:29 PM To: [EMAIL PROTECTED] Subject: [Zope] terrible kludge to set password I was unsuccessful at finding any examples of changing a user's password from DTML, but I did see a few requests for such functionality. I bumped around quite awhile today trying to figure out how to do it. I didn't come up with a good way, but I did find something that works. So, although it's terribly ugly, I thought I'd throw my example out. Perhaps it'll save someone else some time. dtml-call "REQUEST.set('name', 'k.laird.1')" dtml-call "REQUEST.set('password', '5678')" dtml-call "REQUEST.set('confirm', '5678')" dtml-call "REQUEST.set('roles', ['CRUP_admin'])" dtml-call "acl_users.manage_users('Change', REQUEST, RESPONSE)" --kyler ___ 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] UNEXPECTED: Acquisition.Explicit may acquire implicitly
Dieter Maurer wrote: While trying to understand, what the "bself= self.aq_explicit" in "OFS.DTMLMethod.__call__" should do, I detected an unexpected behaviour: usually, this "bself" acquires implicitly from its container (though not from its context) More precisely: if "bself.aq_self" is itself an implicit acquisition wrapper, the "bself.aq_explicit" acquires implicitly from "bself.aq_self.aq_parent". The following Python module demonstrates the behaviour: --- from Acquisition import Implicit class C(Implicit): pass b= C() b.i= 0 b.d= C() b.h= C() e_bd= b.d.aq_explicit try: e_bd.i print 'e_bd implicitly acquired i' except AttributeError: pass e_bhd= b.h.d.aq_explicit try: e_bhd.i print 'e_bhd implicitly acquired i' except AttributeError: pass --- At first, I thought this were a bug. At second thought, however, it appears to be quite natural, though unexpected: if o is self.__of__(parent), then getattr(o.aq_explicit,k) = getattr(self,k).__of__(o) If "self" is an implicit wrapper itself, then acquisition may be used to look up "k". This implies, that the idiom dtml-if "_.hasattr(o.aq_explicit,)" cannot be used safely to test, whether "o" has attribute itself (rather than acquired it). We probably should have a standard function for this kind of test. Mhhh Something like "dtml-if "_.hasattr(o.aq_base,)"" ? P.-J. 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 ) -- If the only tool you have is a hammer, you tend to see every problem as a nail. Si le seul outil dont vous disposez est un marteau, vous avez tendance à voir chaque problème comme un clou. --Abraham Maslow ___ 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: Can't import objects ... is transparent folder still the reason ?
Didier Georgieff wrote: I have a problem importing objects (Yihaw Folder derived from Object Manager) on 2.2.4 and Transparent Folder (see traceback at the end). Some months ago i had some similar problem with the first/removed Transparent Folder version. Is this same problem still there on Transparent Folder 0.3, or do i have to search the problem elsewhere for a workaround ? I wonder if you might consider installing ZDebug, which might give you a little more info. Zope 2.2.5b1 also has some modified code that may affect the results. BTW the idea of hooking traversal to implement TF didn't work out. But the latest version, 0.3, solves the acquisition problems, meaning that Zope's security policies should work correctly now for transparent objects. 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] dtml-in: total??
Hello, I'm making a generic DTML-method which shows a bar like AltaVista does: [ previous] [1] [2] [3] [4] [next ] I need to know the number of rows the database returned. In appendix A of the Zope book, I see I can use total-name etc. How can I get the total number of rows, independent of column names? Can I do it without rewriting the SQL-queries? Bye, Edwin Martin. --- The world is moving so fast these days that the person who says it can't be done is generally interrupted by someone doing it. -- Harry Emerson Fosdick ___ 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] Editing the z2.py File
On Friday 22 December 2000, at 18 h 56, the keyboard of Michael Bernstein [EMAIL PROTECTED] wrote: Umm, even if *everything* else fails, you can still manually truncate the Data.fs file to remove the last transaction Well, this file is not human-readable so I do not really see how to truncate it properly? ___ 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 vs. Enhydra
You may be interested to know that the HiperDOM project, currently in development by DC and my company, aims ot bring to Zope a template system similar to the XMLC of Enhydra. Check it out: http://www.zope.org/Members/mj/HiperDom In my opinion, you really can't compare Enhydra with Zope. Enhydra is exclusively a programmers tool. Zope, through it's friendly UI, enables you to delegate many maintenance activities to end-users, where they belong. Regards, Luciano Ramalho Hiperlogica Sao Paulo - Brazil ___ 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: decline description (KMM493282C0KM)
Hi there, Thanks for writing to CNET. Regards, CNET Support Services http://home.cnet.com/?tag=st.cn.support.2 *Please include original message in your reply* Original Message Follows: - Subject: Sub: U | Zope.org | Zope | Cross-platform | PC:Internet:Site Management | cat10070 --- DOWNLOAD.COM Registration Form: --- Title (Update of an existing title): Zope Version: 2.2.2 Release date: --- 18-09-2000 URLs: http://www.zope.org/Products/Zope/Products/Zope/2.2.2 Size: -- 3952206 License: --- Free Code License: --- Open source/free Uninstaller: Yes Expiration: --- -- Publisher: --- Zope.org Contact: --- Zope Community E-Mail: - [EMAIL PROTECTED] phone: - Publisher URL: http://www.zope.org/ Developer support link: --- http:// Price: --- Price type: --- Keywords: - internet,content management,application server,web development, python Description: - http://www.zope.org/Products/Zope/Products/Zope/2.2.2/CHANGES.txt Functionality limitations: -- n/a Platform: - Cross-platform Program Type: - Specific OS: - cross-platform Other requirements: --- Category: - PC:Internet:Site Management | cat10070 Optimized: On RegNow.com: --- RegNow.com link: --- http:// == ___ 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] Selection and Lines Properties for DTML Docs
I'm new to Zope and am interested in the use of document properties for separating content and design in documents (i.e., using dtml-var prop_name in the "edit" tab to insert properties defined on the "properties" tab. I've had success with simple text properties and would like to be able to present the user with selection properties (choice 1, choice 2, ...). That works well when I first define a "lines" property, then a "selection" property. But, what I'd really like to do is hide the lines property from the user. I've tried putting a lines property in another document, then setting the selection value to 'source_doc.lines_prop'. That yields an error "No select variable source_doc.lines_prop." Any ideas on the right way to do this? Please feel free to point me to good documentation! _ Steve McMahon, SunType Publishing Systems [EMAIL PROTECTED] voice fax: (530) 757-7682 http://www.suntype.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] html_quote in python methods?
Can you do an import in python methods? Still have to install and play with them. If so you can: from DT_Util import html_quote Theres probably a better way... as per DT_var.py -- Andy McKay, Developer. ActiveState. - Original Message - From: "Jim Washington" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, January 02, 2001 6:32 AM Subject: [Zope] html_quote in python methods? I am using Python Methods a lot now. Good: no more dtml-with to get to the objects I need. Yay! no more worrying about closing blocks. Yay! OK, when I make a syntax error, there is no help in the traceback. My Python is getting better and better as a result. To give something back, I have a hint that took me a while to figure out: print 'td width="33%"%s/td' % (self.thevariable) will not work. The first % needs to be escaped like so: print 'td width="33%%"%s/td' % (self.thevariable) Now, can I use html_quote in a Python Method? I am letting people enter data for redisplay, and I know some Bozo (TM) will somehow put in "table" and break the page. Can I keep this from happening? html_quote does not seem to be in the Python Method namespace. Regards, -- Jim Washington ___ 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] Sendmail examples
steve smith wrote: Anyone have any good, real-world examples using DTML-Sendmail tags? Would especially appreciate examples integrating SQL queries. Ta! Steve ___ 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 ) Hello, I've an example here. I'm using sql to find and check passwd/user. If this sql_check_passwd is true, i'll find in another table, the user's e_mail. Then i'll send an e-mail for him. Here is: dtml-in sql_check_passwd dtml-in sql_find_e_mail dtml-if "code == _['sequence-item'].code_table" dtml-sendmail mailhost=MailHost to: dtml-var e_mail from: [EMAIL PROTECTED] subject: dtml-var subject - here, you put the message /dtml-sendmail scriptalert("Your message was send successfully")/script br /dtml-if cod_pesq /dtml-in sql_find_e_email dtml-else scriptalert("User/Passwd incorrect.")/script /dtml-in sql_check_passwd []'s Marcus Mendes ___ 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] CZAN Anyone?
Lots of reasons, mainly motivated by laziness^H^H^H^H^H^H^H^H me not having the time to keep up with everything, I want to be informed automatically :) Cya Jonathan :) laziness is good, otherwise people would just keep doing things the hard way... ___ 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] Selection and Lines Properties for DTML Docs
Im not sure what you mean by "hide it from the user", it all depends upon the rights you give your user. If I create a lines property on my root folder called selection_list, I can then in folder /test/ make a property test_selection, type selection, value selection_list. The problem you -- Andy McKay, Developer. ActiveState. - Original Message - From: "Steve McMahon" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, January 02, 2001 9:36 AM Subject: [Zope] Selection and Lines Properties for DTML Docs I'm new to Zope and am interested in the use of document properties for separating content and design in documents (i.e., using dtml-var prop_name in the "edit" tab to insert properties defined on the "properties" tab. I've had success with simple text properties and would like to be able to present the user with selection properties (choice 1, choice 2, ...). That works well when I first define a "lines" property, then a "selection" property. But, what I'd really like to do is hide the lines property from the user. I've tried putting a lines property in another document, then setting the selection value to 'source_doc.lines_prop'. That yields an error "No select variable source_doc.lines_prop." Any ideas on the right way to do this? Please feel free to point me to good documentation! _ Steve McMahon, SunType Publishing Systems [EMAIL PROTECTED] voice fax: (530) 757-7682 http://www.suntype.com ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Selection and Lines Properties for DTML Docs
Im not sure what you mean by "hide it from the user", it all depends upon the rights you give your user. If I create a lines property on my root folder called selection_list, I can then in folder /test/ make a property test_selection, type selection, value selection_list. The problem you may have is that you are trying to put it on another document, rather than on a folder in the acquistion path. -- Andy McKay, Developer. ActiveState. - Original Message - From: "Steve McMahon" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, January 02, 2001 9:36 AM Subject: [Zope] Selection and Lines Properties for DTML Docs I'm new to Zope and am interested in the use of document properties for separating content and design in documents (i.e., using dtml-var prop_name in the "edit" tab to insert properties defined on the "properties" tab. I've had success with simple text properties and would like to be able to present the user with selection properties (choice 1, choice 2, ...). That works well when I first define a "lines" property, then a "selection" property. But, what I'd really like to do is hide the lines property from the user. I've tried putting a lines property in another document, then setting the selection value to 'source_doc.lines_prop'. That yields an error "No select variable source_doc.lines_prop." Any ideas on the right way to do this? Please feel free to point me to good documentation! _ Steve McMahon, SunType Publishing Systems [EMAIL PROTECTED] voice fax: (530) 757-7682 http://www.suntype.com ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Selection and Lines Properties for DTML Docs
At 10:08 AM 1/2/01, Andy McKay wrote: Im not sure what you mean by "hide it from the user", it all depends upon the rights you give your user. In this case, I just meant that it shouldn't appear in the properties list for the particular page. I want to give the editor of the particular page's properties the ability to make a selection, but not the ability to change the list of possible selections. If I create a lines property on my root folder called selection_list, I can then in folder /test/ make a property test_selection, type selection, value selection_list. The problem you may have is that you are trying to put it on another document, rather than on a folder in the acquistion path. You're diagnosis is dead-on. I added my lines property to the containing folder and it worked perfectly. I'm still mystified, though, as to why I couldn't put the lines property in another document in the same folder and use the notation 'doc_id.lines_id' to refer to the lines property in the other document. Thanks, Steve -- Andy McKay, Developer. ActiveState. - Original Message - From: "Steve McMahon" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, January 02, 2001 9:36 AM Subject: [Zope] Selection and Lines Properties for DTML Docs I'm new to Zope and am interested in the use of document properties for separating content and design in documents (i.e., using dtml-var prop_name in the "edit" tab to insert properties defined on the "properties" tab. I've had success with simple text properties and would like to be able to present the user with selection properties (choice 1, choice 2, ...). That works well when I first define a "lines" property, then a "selection" property. But, what I'd really like to do is hide the lines property from the user. I've tried putting a lines property in another document, then setting the selection value to 'source_doc.lines_prop'. That yields an error "No select variable source_doc.lines_prop." Any ideas on the right way to do this? Please feel free to point me to good documentation! _ Steve McMahon, SunType Publishing Systems [EMAIL PROTECTED] voice fax: (530) 757-7682 http://www.suntype.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 ) _ Steve McMahon, SunType Publishing Systems [EMAIL PROTECTED] voice fax: (530) 757-7682 http://www.suntype.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] Selection and Lines Properties for DTML Docs
Because acquistion can't find it. It can find all the objects in the folder and all the properties on a folder, but it doesn't go into each object and look at its properties... -- Andy McKay, Developer. ActiveState. - Original Message - From: "Steve McMahon" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, January 02, 2001 10:26 AM Subject: Re: [Zope] Selection and Lines Properties for DTML Docs At 10:08 AM 1/2/01, Andy McKay wrote: Im not sure what you mean by "hide it from the user", it all depends upon the rights you give your user. In this case, I just meant that it shouldn't appear in the properties list for the particular page. I want to give the editor of the particular page's properties the ability to make a selection, but not the ability to change the list of possible selections. If I create a lines property on my root folder called selection_list, I can then in folder /test/ make a property test_selection, type selection, value selection_list. The problem you may have is that you are trying to put it on another document, rather than on a folder in the acquistion path. You're diagnosis is dead-on. I added my lines property to the containing folder and it worked perfectly. I'm still mystified, though, as to why I couldn't put the lines property in another document in the same folder and use the notation 'doc_id.lines_id' to refer to the lines property in the other document. Thanks, Steve -- Andy McKay, Developer. ActiveState. - Original Message - From: "Steve McMahon" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, January 02, 2001 9:36 AM Subject: [Zope] Selection and Lines Properties for DTML Docs I'm new to Zope and am interested in the use of document properties for separating content and design in documents (i.e., using dtml-va r prop_name in the "edit" tab to insert properties defined on the "properties" tab. I've had success with simple text properties and would like to be able to present the user with selection properties (choice 1, choice 2, ...). That works well when I first define a "lines" property, then a "selection" property. But, what I'd really like to do is hide the lines property from the user. I've tried putting a lines property in another document, then setting the selection value to 'source_doc.lines_prop'. That yields an error "No select variable source_doc.lines_prop." Any ideas on the right way to do this? Please feel free to point me to good documentation! _ Steve McMahon, SunType Publishing Systems [EMAIL PROTECTED] voice fax: (530) 757-7682 http://www.suntype.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 ) _ Steve McMahon, SunType Publishing Systems [EMAIL PROTECTED] voice fax: (530) 757-7682 http://www.suntype.com ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Selection and Lines Properties for DTML Docs
Steve McMahon wrote: I'm new to Zope and am interested in the use of document properties for separating content and design in documents (i.e., using dtml-var prop_name in the "edit" tab to insert properties defined on the "properties" tab. I've had success with simple text properties and would like to be able to present the user with selection properties (choice 1, choice 2, ...). That works well when I first define a "lines" property, then a "selection" property. But, what I'd really like to do is hide the lines property from the user. I've tried putting a lines property in another document, then setting the selection value to 'source_doc.lines_prop'. That yields an error "No select variable source_doc.lines_prop." Any ideas on the right way to do this? Please feel free to point me to good documentation! In order to give users a set of configurable options throughout the application this is what I did. In the root folder of the application I defined a lines type property for each option. For example, telephone number types (home, work, cell etc.) The selection looks like this: trtdPhone Type: /tdtd SELECT name="phone_type" dtml-in valid_phone_types OPTION value="dtml-var sequence-item"dtml-var sequence-item/OPTION /dtml-in /SELECT /td/tr The DTML Method valid_phone_types just returns a list of what it found in the phone_types property: dtml-call expr="REQUEST.set('the_list', [])" dtml-in phone_types dtml-let current_item=sequence-item dtml-call expr="the_list.append(current_item)" /dtml-let /dtml-in dtml-return the_list This is the form entry for the user to edit the lines property. Note it is in a table with others but the key thing to look at is the way the line break is in the middle of the 'dtml-var'. If you don't do this you will end up with extra/empty lines in your property. tr td valign="middle"bPhone Types:/b/td tdtextarea name="phone_types:lines" rows="10" cols="30" dtml-in phone_typesdtml-let cur_item=sequence-itemdtml-var "_.string.strip(cur_item)" /dtml-let/dtml-in /textarea /td /tr HTH, -- Tim Cook, President -- Free Practice Management,Inc. | http://www.FreePM.com Office: (901) 884-4126 Censorship: The reaction of the ignorant to freedom. ___ 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] CZAN Anyone?
I did actually start toying with this on the holidays for the hell of it. But then got bored and started relaxing instead. Basically my first task was putting basic product info in a more friendly xml format... http://zope.agmweb.ca/Zope/products -- Andy McKay, Developer. ActiveState. - Original Message - From: "Andy McKay" [EMAIL PROTECTED] To: "Jonathan (Listserv Account)" [EMAIL PROTECTED]; "zope-misc" [EMAIL PROTECTED] Sent: Tuesday, January 02, 2001 9:58 AM Subject: Re: [Zope] CZAN Anyone? Lots of reasons, mainly motivated by laziness^H^H^H^H^H^H^H^H me not having the time to keep up with everything, I want to be informed automatically :) Cya Jonathan :) laziness is good, otherwise people would just keep doing things the hard way... ___ 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] HELP re: MailHost and Hotfix 2000_-12-08
Hello, I am having difficulty in setting up the MailHost on the Zope Server. Every time I try I get an error: Zope has encountered an error while publishing this resource. Debugging Notice Zope has encountered a problem publishing your object. Cannot locate object at: zope/manage_addProduct/MailHost/manage_addMailHost I am having the same problem as a post I found on the eGroups list Hello, after the installation of the 12-08 fix you can't add MailHost anymore. I see that the product use a "legacy" method. Any solution? Thank you in advance. -- Best regards, Salvatore Sciacco I too have installed this Hotfix_2000-12-08 Thanks for all your help Norman ___ 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] dtml-in: total??
dtml-var sequence-length - Original Message - From: "Edwin Martin" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, January 02, 2001 7:23 AM Subject: [Zope] dtml-in: total?? Hello, I'm making a generic DTML-method which shows a bar like AltaVista does: [ previous] [1] [2] [3] [4] [next ] I need to know the number of rows the database returned. In appendix A of the Zope book, I see I can use total-name etc. How can I get the total number of rows, independent of column names? Can I do it without rewriting the SQL-queries? Bye, Edwin Martin. --- The world is moving so fast these days that the person who says it can't be done is generally interrupted by someone doing it. -- Harry Emerson Fosdick ___ 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] Problem installing zope products
Hello, I am having problems installing zope products (*.zexp files) using the import function. I have tried several products including TimeTracker-0.0.3.zexp, EvTracker.zexp, ZPhotoAlbum-1.0.zexp and others. I get the same error when trying to install these three. For example with Time Tracker I get... The object TimeTracker does not support this operation Traceback (innermost last): File /opt/zope/Zope-2.2.4-src/lib/python/ZPublisher/Publish.py, line 222, in publish_module File /opt/zope/Zope-2.2.4-src/lib/python/ZPublisher/Publish.py, line 187, in publish File /opt/zope/Zope-2.2.4-src/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook (Object: ApplicationDefaultPermissions) File /opt/zope/Zope-2.2.4-src/lib/python/ZPublisher/Publish.py, line 171, in publish File /opt/zope/Zope-2.2.4-src/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: manage_importObject) File /opt/zope/Zope-2.2.4-src/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: manage_importObject) File /opt/zope/Zope-2.2.4-src/lib/python/OFS/ObjectManager.py, line 537, in manage_importObject (Object: ApplicationDefaultPermissions) File /opt/zope/Zope-2.2.4-src/lib/python/OFS/CopySupport.py, line 406, in _verifyObjectPaste (Object: ApplicationDefaultPermissions) Copy Error: (see above) I am running zope 2.2.4 on Debian Linux (Potato). I installed this from source instead of from the .deb in the /opt/zope/Zope-2.2.4-src/ directory as you can see from the error mesages. I can't understand why these errors occur. The scripts under zope are all owned by the user nobody. Some help or guidance would be greatly appreciated since these products seem quite powerfull and usefull. Thanks. Darrin ___ 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] manage_users( ) method
On Tue, 2 Jan 2001, Mohan Baro wrote: Where can I get the specifications for acl_users.manage_users()? I know it's not the best answer, but you can read the source: ZOPE_DIR/lib/python/AccessControl/User.py [EMAIL PROTECTED], [EMAIL PROTECTED] /--\ | `long long long' is too long for GCC | \--/ ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] HELP re: MailHost and Hotfix 2000_-12-08
Norman Khine wrote: Hello, I am having difficulty in setting up the MailHost on the Zope Server. Every time I try I get an error: Zope has encountered an error while publishing this resource. Debugging Notice Zope has encountered a problem publishing your object. Cannot locate object at: zope/manage_addProduct/MailHost/manage_addMailHost I am having the same problem as a post I found on the eGroups list Two solutions: 1) Temporarily move Hotfix_2000-12-08 to a different place on your system, restart Zope, create the MailHost, move the product back, and restart again. 2) Upgrade to Zope 2.2.5b1. 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] Advice on searching/indexing Word documents?
Our company has a repository of staff CVs (Resumes) as Word Documents and I am about to embark on creating a new feature for our Zope Intranet to allow project managers to search those documents for keywords such as particular skills or projects. I am thinking about several possibilities such as a skills/CVs database linked in via ODBC, or some task that converts the Word documents to text files which can then be searched by Zope (I think Zope can do this, and I assume it can't search Word format directly?). Has anyone ever approached a similar problem, does anyone have any tips on how to index/search a load of documents in Zope? Any tips/suggestions/comments would be most welcome. Thanks, Alex == Alex Bowyer IT Consultant, Logica Australasia Tel: +61 2 9202 8130 Fax: +61 2 9922 7466 E-mail : [EMAIL PROTECTED] WWW: http://www.logica.com.au/ == ___ 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] Advice on searching/indexing Word documents?
I've been thinking about doing this. I wonder if there are any C filter libraries that read word docs. The word 2000 docs are supposedly non-binary, so you could proabaly write a parser of sorts in python or C/Lex; I used to write text filters in C and Lex for my previous employer - one of these days I will figure out how to extend python with C and do this. I'm thinking about doing this type of thing in order to make PDFs searchable (as well as IPTC catopn data in JPG files). Perhaps in the mean time, one could set up a macro in normal.dat template file that ftps the doc to zope on every save and updates properties containing the full text for the document. Sort of kludgy, but I assume it would work, if you were familiar with VBA coding, and had access to a http client component. Doing it this way would make it so you would likely have to manually reindex the catalog. There might be a way around that though, to automate it... Sean = Sean Upton Senior Programmer/Analyst SignOnSanDiego.com The San Diego Union-Tribune 619.718.5241 [EMAIL PROTECTED] = -Original Message- From: Bowyer, Alex [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 02, 2001 2:45 PM To: '[EMAIL PROTECTED]' Subject: [Zope] Advice on searching/indexing Word documents? Our company has a repository of staff CVs (Resumes) as Word Documents and I am about to embark on creating a new feature for our Zope Intranet to allow project managers to search those documents for keywords such as particular skills or projects. I am thinking about several possibilities such as a skills/CVs database linked in via ODBC, or some task that converts the Word documents to text files which can then be searched by Zope (I think Zope can do this, and I assume it can't search Word format directly?). Has anyone ever approached a similar problem, does anyone have any tips on how to index/search a load of documents in Zope? Any tips/suggestions/comments would be most welcome. Thanks, Alex == Alex Bowyer IT Consultant, Logica Australasia Tel: +61 2 9202 8130 Fax: +61 2 9922 7466 E-mail : [EMAIL PROTECTED] WWW: http://www.logica.com.au/ == ___ 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 Projects in NL/Europe?
Hi all, Just wondering: are there any Zope projects are available in the Netherlands/Benelux/Europe? We did one last year but they seem hard to find. Are there commercial projects available or is Zope mostly used on internal projects? Is there any demand for Zope expertise around here? Reason I'm asking is that I'd love to continue working with Zope, but it's hard to justify in a company focused on Microsoft and Oracle, especially if there is no money to be made. I can learn Perl on company time and Linux is our internet server OS of choice, but JSP/Java and .NET (the latter is not that bad, uses SOAP/XML-RPC) is next if we don't find a use for our Zope expertise. Thnx Jonathan ___ 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] Logica bruker Zope (...)
Se her dah.. -Morten [Alex Bowyer] | Our company has a repository of staff CVs (Resumes) as Word Documents and I | am about to embark on creating a new feature for our Zope Intranet to allow | project managers to search those documents for keywords such as particular | skills or projects. | | I am thinking about several possibilities such as a skills/CVs database | linked in via ODBC, or some task that converts the Word documents to text | files which can then be searched by Zope (I think Zope can do this, and I | assume it can't search Word format directly?). | | Has anyone ever approached a similar problem, does anyone have any tips on | how to index/search a load of documents in Zope? | | Any tips/suggestions/comments would be most welcome. | | Thanks, | | Alex | | == | Alex Bowyer | IT Consultant, Logica Australasia | Tel: +61 2 9202 8130 | Fax: +61 2 9922 7466 | E-mail : [EMAIL PROTECTED] | WWW: http://www.logica.com.au/ | == | | ___ | 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] ANN: CoreSessionTracking Release 0.4
Hello, A new development release of the "Core Session Tracking" product (0.4) is available at http://www.zope.org/Members/mcdonc/Products/CoreSessionTracking This release makes substantial interface and feature changes including using an internal mounted storage to provide an "internal" session data container to each session data manager, autoexpiring session data objects, as well as vastly improved documentation. Please check it out! Thanks, 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] Advice on searching/indexing Word documents?
I used to write text filters in C and Lex for my previous employer - one of these days I will figure out how to extend python with C and do this. Here's one that's written entirely in Python: http://www.cosc.canterbury.ac.nz/~greg/python/Plex/ I've seen a couple of other implementations out there. --jfarr ___ 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] Advice on searching/indexing Word documents?
Alex, If your running Zope on Win32 you could use COM to snatch the text fairly easily and quickly. The COM interface to Word is well documented in the help files (if they're not installed, you'll find them on the CD). I used this technique to create XML from Word in the past and it works (was too slow for my needs tho, YMMV) hth Phil [EMAIL PROTECTED] On Tue, 02 Jan 2001, Bowyer, Alex wrote: Our company has a repository of staff CVs (Resumes) as Word Documents and I am about to embark on creating a new feature for our Zope Intranet to allow project managers to search those documents for keywords such as particular skills or projects. I am thinking about several possibilities such as a skills/CVs database linked in via ODBC, or some task that converts the Word documents to text files which can then be searched by Zope (I think Zope can do this, and I assume it can't search Word format directly?). Has anyone ever approached a similar problem, does anyone have any tips on how to index/search a load of documents in Zope? Any tips/suggestions/comments would be most welcome. Thanks, Alex == Alex Bowyer IT Consultant, Logica Australasia Tel: +61 2 9202 8130 Fax: +61 2 9922 7466 E-mail : [EMAIL PROTECTED] WWW: http://www.logica.com.au/ == ___ 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] Advice on searching/indexing Word documents?
Cool. I'll have to take a look at this. Does anyone know if there is any effort aimed at writing document filters for use with Zope? A lot of commercial products used for knowledge management (like NextPage LivePublish, some Intranet search engines, etc) already have features like this, and I would think that a project for document filters would be a good idea, if something like this doesn't already exist. Possible things that could be filtered for input: - The IPTC header data from a JPG/TIF image - comtains a few things like the caption (the same one that you can edit in photoshop) - This would be a good addition to various Image classes. - Office documents (word, excel, powerpoint, wordperfect, staroffice, etc) - PDF and Postscript documents - Illustration files (Illustrator, CorelDraw) The value of such filters to Zope for use in knowledge-management and digital asset management would be great; I'm wondering if anyone is working on anything like this? Sean -Original Message- From: Jonothan Farr [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 02, 2001 4:22 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: [Zope] Advice on searching/indexing Word documents? I used to write text filters in C and Lex for my previous employer - one of these days I will figure out how to extend python with C and do this. Here's one that's written entirely in Python: http://www.cosc.canterbury.ac.nz/~greg/python/Plex/ I've seen a couple of other implementations out there. --jfarr ___ 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] browser window as canvas for configurable objects?
I'm new to zope, so maybe these questions are naive. I have several objects that I want to display on my browser screen simultaneously. Each object lives in its own zope directory, and I can trivially include them in a bigger canvas using a table and dtml-with and dtml-var. So far so good. Each of the sub objects can put up its own links for configuration, etc. Some of the sub objects might be pageable (e.g. have links to next 10 items, previous 10), or they might be configurable (you could go to a screen to establish filtering parameters for that object). What I'm looking for is the simplest possible effective way to manage these links so that after the customization operation or the next page oeration, or whatever is handled, the original page is displayed (and of course any affected objects are updated). In some cases there may be a side-excursion made before the page is re-displayed (e.g. for "next 10 items", there is no side excursion), for "update filtering parameters" or update object, a separate form will be brought up). I should mention that the same objects may appear in the same or different forms on different pages, i.e. there isn't just one main page. Some alternatives I can see are: 1. Use javascript, and do a history.go(-1) or -2, as the case may be to go back to the original page. Disadvantage: requires an extra round-trip, probably would have to make sure page wasn't cached, may break user's model of how navigation works (if he made a mistake in the configuration, he'd have to go forward, rather than backward, to retrieve the configuration form, for example). 2. Use a pop-up window. Redraw the original when done. Advantage: by labelling the main window "main" or whatever, it's easy for unrelated objects to "return" to the main application by (1) causing "main" to reload and (2) deleting their own window. 3. Use frames. Seems overly complex. But maybe this is just a general aversion to hacking to much html. 4. Use existing zope infrastructure to finesse this. I'm not sure how to do this--my main confusion centers around how much state to I have to preserve (and where?) to re-create exactly the same request that I had at a previous level--in a totally generic fashion. 5. Build some sort of Product that represents this model directly. This seems the most promising, if not the easiest. Can someone point me to any prior art on this, or offer any suggestions? It seems to me that since zope is supposed to be about "object publishing", then this application should (ideally) be dead-easy. But at the moment I'm scratching my head. Any help would be greatly appreciated. Thanks! P.S. Does anyone else think this facility would be useful? Bob Sidebotham [EMAIL PROTECTED] __ Do You Yahoo!? Yahoo! Photos - Share your holiday photos online! http://photos.yahoo.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] Logica bruker Zope (...)
[Morten W. Petersen] | Se her dah.. Sorry guys. -Morten ___ 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 Projects in NL/Europe?
Hi, From the Netherlands, - Original Message - From: "Jonathan" [EMAIL PROTECTED] To: "Zope Mailinglist" [EMAIL PROTECTED] Sent: Wednesday, January 03, 2001 12:43 AM Subject: [Zope] Zope Projects in NL/Europe? Just wondering: are there any Zope projects are available in the Netherlands/Benelux/Europe? What do you mean by 'available'? We did one last year but they seem hard to find. What do you mean by 'hard to find' ? Where did you look? I'ts a matter of analyzing your clients needs/wishes etc. and matching the outcome of this process with the right tools, platform etc. When in comes down to interactive, database driven web applications in combination with decentralized content management we think Zope is the best platform around (btw it's our firm believe that these kind of websites will be very much in demand, so there is money to be made). It's a matter of convincing the client. Basically your client has to find Zope with your aid. Are there commercial projects available or is Zope mostly used on internal projects? I guess you mean projects developed inhouse versus outhouse. It's my impression that most Zope projects are at this moment developed inhouse (BeNeLux). That doesn't mean that there isn't room for commercial enterprises. It has more to do with 'playing safe', and lack of creativity from the commercial perspective. Is there any demand for Zope expertise around here? You have to create the demand (based on ... see above). Reason I'm asking is that I'd love to continue working with Zope, but it's hard to justify in a company focused on Microsoft and Oracle, especially if there is no money to be made. I think there is (lots of) money to make, but if your company has no strategy for Zope (only a, short sighted, strategy based, only on the major brand names) you are going nowhere with your Zope expertise within your company. Btw, if you have Zope knowledge you know that Zope has no problems with Microsoft and Oracle. I can learn Perl on company time and Linux is our internet server OS of choice, but JSP/Java and .NET (the latter is not that bad, uses SOAP/XML-RPC) is next if we don't find a use for our Zope expertise. (Repeat myself) What did you do to find it? Btw Zope can be integrated with JSP/Java, SOAP/XML-RPC and Perl. My background, I''m co-president/owner of a Dutch based ICT consultancy firm (founded in 1987). Our strategy is now focussed on Zope webapplications based on our 'crystal ball' (content management is the keyword) and input from our clients. Besides that I'm one of the keymembers of a small team that developes webapplications, with Zope, for the Faculty of Social Sciences of the Leiden University. Part of this system is an advanced webbased learning system. Thnx Jonathan regards, Henny van der Linde ___ 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] Core Session Tracking kudos namespaces
1. The Core Session Tracking looks like it will be really helpful. I AM BLOWN AWAY BY THE QUALITY OF THE DOCUMENTATION. Congratulations for making really readable, easy to use installation and use instructions. Part of the reason I'm so blown away, of course, is that the quality of this documentation is so very much superior to most of the existing documentation. The author obviously put himself in the position of someone who didn't know anything about the topic, and wrote the documentation to satisfy this person (i.e. me). Thanks! 2. Question. The interface to the session data object, requiring set/get calls to get key/value pairs seems a little inconsistent with the very simple existing interfaces for other zope namespaces. As a newbie, I admit to being very confused about namespaces in zope, and the GOOD THING about the core session tracking is that it is very clear that you're accessing a variable from that scope. There's no way you can accidently acquire something else. On the other hand, the ability to access the session variables with simple variable references seems like it would be a win (especially if they were safely qualified by the session object). I really just want to do something like "SESSION.varname". Is this something that can be wrapped on top of the existing interface? Bob Sidebotham [EMAIL PROTECTED] __ Do You Yahoo!? Yahoo! Photos - Share your holiday photos online! http://photos.yahoo.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] Core Session Tracking kudos namespaces
1. The Core Session Tracking looks like it will be really helpful. I AM BLOWN AWAY BY THE QUALITY OF THE DOCUMENTATION. Congratulations for making really readable, easy to use installation and use instructions. Part of the reason I'm so blown away, of course, is that the quality of this documentation is so very much superior to most of the existing documentation. The author obviously put himself in the position of someone who didn't know anything about the topic, and wrote the documentation to satisfy this person (i.e. me). Thanks! Thanks for the kudos! 2. Question. The interface to the session data object, requiring set/get calls to get key/value pairs seems a little inconsistent with the very simple existing interfaces for other zope namespaces. As a newbie, I admit to being very confused about namespaces in zope, and the GOOD THING about the core session tracking is that it is very clear that you're accessing a variable from that scope. There's no way you can accidently acquire something else. On the other hand, the ability to access the session variables with simple variable references seems like it would be a win (especially if they were safely qualified by the session object). I really just want to do something like "SESSION.varname". Is this something that can be wrapped on top of the existing interface? Yes. I will think about this, because I'm not very happy about the current data object interface. It definitely needs work. I had orignally intended to use a straight mapping (dictionary) interface, but we've got a lot of DTML code that looks like "_[[['']]]" already, so I didn't want to perpetuate the problem by encouraging __getitem__ and __setitem__ access in DTML. :-) That's why you can't do SESSION['varname'] right now, and instead you need to use SESSION.get('varname'). This lends itself better to things like: dtml-with sessionmanager dtml-with getSessionData dtml-var "get('a')" /dtml-with /dtml-with which potentially has the same rhythm as dtml-with sessionmanager dtml-with getSessionData dtml-call "set('a', 'b')" /dtml-with /dtml-with as opposed to the following combination dtml-with sessionmanager dtml-let SESSION=getSessionData dtml-var "SESSION['a']" /dtml-with /dtml-with vs dtml-with sessionmanager dtml-let SESSION=getSessionData dtml-call "SESSION.set('a', 'b')" /dtml-with /dtml-with The enforced parity in the former set of DTML snippets between get and set methods makes the data object a little easier to explain to non-Python people. And it's easier to explain to Python people that the data object isn't a mapping than to explain to non-Python people what a mapping is in the first place and how and why they need to do all the funny quoting and bracketing. :-) The __getattr__ interface for retrieval and .set() for insertion might work better, however, because it doesn't require quoting at all. It still has the problem that you may want to use an indirect variable name, in which case you'd need to use something like "_.getattr(sessiondataobject, aname)", which is just as evil. You also can't do assignments in DTML, so you'd still need a 'set' method. A potential rhythm, however, might look like: dtml-with sessionmanager dtml-with getSessionData dtml-call "set('a', 'b')" /dtml-with /dtml-with and dtml-with sessionmanager dtml-with getSessionData dtml-var a /dtml-with /dtml-with I sorta like it the original way now that I've written that down. :-) It's easier to explain, AFAICS. ___ 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] Core Session Tracking kudos namespaces
The advantage of the last form (below), is that you can use acquisition, and don't need to know whether the variable came from the session or from elsewhere. If you *really* want it to come from the session only, you can always add the "only" tag to the dtml-with call. In conjunction with this, it might be nice to have a special call that sets the variable, if defined by acquisition, in the session. Something like dtml-call "sessionmanager.getSessionData.set('a')" would set "a" to the acquired value for "a", leave it undefined if not defined, and not change it if it was not acquirable elsewhere (the acquired value would take precedence over the session value). Even better would be if I could just say dtml-call "SESSION.set('a')". Bob --- Chris McDonough [EMAIL PROTECTED] wrote: A potential rhythm, however, might look like: dtml-with sessionmanager dtml-with getSessionData dtml-call "set('a', 'b')" /dtml-with /dtml-with and dtml-with sessionmanager dtml-with getSessionData dtml-var a /dtml-with /dtml-with I sorta like it the original way now that I've written that down. :-) It's easier to explain, AFAICS. __ Do You Yahoo!? Yahoo! Photos - Share your holiday photos online! http://photos.yahoo.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] Core Session Tracking kudos namespaces
And as I've just figured out by trying to convert some stuff to sessions, a not unconsequential result of allowing session variables to be acquired (if only for read purposes), is that existing code is easier to adapt. I might now call a script without burying form variables or parameters in the URL. If I use implicit acquisition (where the posted form data and URL data is read FIRST), then I can gracefully upgrade these scripts without changing anything. With the current scheme I have to go and search out all occurences of variables like "customer_id" and change them to session syntax. So I guess I'm arguing that the read case and write cases are fundamentally different, that you basically want to support the introduction of session variables into the namespace for read purposes through acquisition, and it's (marginally) OK if read/write don't share the same syntax. Bob Bob Sidebotham wrote: The advantage of the last form (below), is that you can use acquisition, and don't need to know whether the variable came from the session or from elsewhere. If you *really* want it to come from the session only, you can always add the "only" tag to the dtml-with call. __ Do You Yahoo!? Yahoo! Photos - Share your holiday photos online! http://photos.yahoo.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 )