Re: [Zope] Trapping zope exceptions in python script

2005-12-15 Thread Nikko Wolf
Andreas Jung wrote: --On 14. Dezember 2005 12:54:56 -0700 Nikko Wolf [EMAIL PROTECTED] wrote: So you could try this instead: for item in itemList: try: context.afolder.manage_delObjects([item]) except: continue Wa... DON'T DO THAT. You should

Re: [Zope] Trapping zope exceptions in python script

2005-12-14 Thread Nikko Wolf
Jonathan wrote: I am trying to catch a 'BadRequest' exception in the following python script excerpt: for item in itemList: try: context.afolder.manage_delObjects([item]) except BadRequest: continue NameError: global name 'BadRequest' is not defined The following would

Re: [Zope] probably a simple answer..

2005-11-21 Thread Nikko Wolf
External methods can certainly use the built in Python open function. However, I'd shudder at the thought of creating an Excel file rather than a plain-text CSV (comma separated values) file, since the former is (I presume) closed-source and binary, whilst the latter is simple text, human

Re: [Zope] Deleting objects from an external method

2005-10-17 Thread Nikko Wolf
Dieter Maurer wrote: Nikko Wolf wrote at 2005-10-14 15:37 -0600: I'm trying to allow users to delete objects that have been accidentally created. I have criteria for what that means, but since I *DO NOT* want them to delete object except by this method, I want to avoid granting

Re: [Zope] Deleting objects from an external method

2005-10-17 Thread Nikko Wolf
Chris Withers wrote: Nikko Wolf wrote: I'm trying to allow users to delete objects that have been accidentally created. I have criteria for what that means, but since I *DO NOT* want them to delete object except by this method, I want to avoid granting Delete objects to them (non

[Zope] Deleting objects from an external method

2005-10-14 Thread Nikko Wolf
I'm trying to allow users to delete objects that have been accidentally created. I have criteria for what that means, but since I *DO NOT* want them to delete object except by this method, I want to avoid granting Delete objects to them (non-Managers). Can this even be done? At the base

Re: [Zope] how determine all Zope/Plone dependencies for chroot jail?

2005-09-23 Thread Nikko Wolf
[EMAIL PROTECTED] wrote: I'd like to run Zope/Plone in a chroot jail. How determine all dependencies to make this possible?? (What does it need outside of the zope instance home?) Go ahead and create the 'jail' and add what files you think it needs, and keep adding missing files until it

Re: [Zope] Starting a search from the correct folder

2005-07-01 Thread Nikko Wolf
Dieter Maurer wrote: You are aware that you will not get a list (but a tree) when you look down from some starting point? I suspect he meant a list in the HTML - he is using ul and li tags there. But Dieter, can you elaborate on what you mean? Isn't the result from objectValues() a

Re: [Zope] Starting a search from the correct folder

2005-07-01 Thread Nikko Wolf
Andreas Jung wrote: --On 30. Juni 2005 22:27:37 +0100 John Poltorak [EMAIL PROTECTED] wrote: I have some code which here:- ul tal:condition=python: context.objectValues(['Folder']) li tal:repeat=item python: context.objectValues(['Folder']) a href=ABSOLUTE_URL

[Zope] Re: [ZPT] Recursive structures

2005-07-01 Thread Nikko Wolf
Ian Bicking wrote: I'm surprised this has never come up for me before, but now I want to render a recursive data structure and I'm at a loss how I might do that in ZPT. Or, what the best workaround would be. E.g.: ['a', 'b', ['c', ['d', 'e']]] Becomes: ul lia/li lib/li ul lic/li

Re: [Zope] how to get info about an object (dir/type)

2005-06-30 Thread Nikko Wolf
See: http://epydoc.sourceforge.net/ (which I have not yet used). Andreas Jung wrote: --On 30. Juni 2005 13:48:19 +0200 gabor [EMAIL PROTECTED] wrote: generally.. if i have a reference to an object. how do i find out what his methods are? By determining its class or meta_type and then by

Re: [Zope] External editor for ZMI

2005-06-27 Thread Nikko Wolf
I prefer: emacs with ExternalEditor - to edit ZODB objects, emacs with TRAMP - to edit native filesystem files via SSH, see: http://savannah.nongnu.org/download/tramp/ emacs via FTP (with AngeFTP or with TRAMP) is also good for both of these when configured. But be aware that content

Re: [Zope] Generating links from a list

2005-06-27 Thread Nikko Wolf
John Poltorak wrote: My links list consists of simple lines such as org-1,First link org-2,Second Link org-x,Another Link How do I prepend a hardcoded path to org-1 instead of what is getting generated? I would like to see the link for org-1 being generated as

Re: [Zope] Sequencing pages

2005-06-27 Thread Nikko Wolf
John Poltorak wrote: If I create individual pages for a website as sub folders of a sites main folder, how do I control the sequence of pages if I automatically generate a set of links to all the folders? See the FileLibrary example, probably located at:

[Zope] TypeError: Cache values must be persistent objects.

2005-06-21 Thread Nikko Wolf
Help! I'm trying to develop a filesystem-based Product (here 'ABCD') and unless I remove the ABCD folder from my Products directory, I get the following error IN THE MANAGEMENT INTERFACE. Is it possible to determine what's causing the problem? After multiple restarts, I did a global Find

Re: [Zope] Single worklist for documents with different states?

2005-06-15 Thread Nikko Wolf
Nikko Wolf wrote: I've implemented a workflow (in Plone Workflow, ... and so I moved this question to the Plone list. D'oh. ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding

[Zope] Single worklist for documents with different states?

2005-06-14 Thread Nikko Wolf
I've implemented a workflow (in Plone Workflow, derived from DCWorkflow), and would like my reviewers to see a worklist portal. However, since I have two reviewer roles that must independently review the document, I have two intervening states in my workflow (ie: needAB then either needA or

Re: [Zope] Product architecture question (long)

2005-06-13 Thread Nikko Wolf
Dieter Maurer wrote: Nikko Wolf wrote at 2005-6-7 14:25 -0600: ... - The primary purpose for the site's existence is to manage some content files (text/ml) and allow a workflow process on those. The workflow will likely change and hopefully will have minimal programming

Re: [Zope] Product architecture question (long)

2005-06-09 Thread Nikko Wolf
Dieter Maurer wrote: Nikko Wolf wrote at 2005-6-7 14:25 -0600: - I do not want ANY access by unauthorized users. Obviously they must be able to reach a login page, and get instructions on how to request an account, password reset, etc. Put all content in a subfolder

[Zope] Zope Permissions

2005-06-08 Thread Nikko Wolf
Dieter Maurer wrote: Nikko Wolf wrote at 2005-6-7 14:25 -0600: - I do not want ANY access by unauthorized users. Obviously they must be able to reach a login page, and get instructions on how to request an account, password reset, etc. Put all content

[Zope] Product architecture question (long)

2005-06-07 Thread Nikko Wolf
I've been using Zope (w/Plone) for some time now and am still trying to understand how best to architect the solution for my site. I'm presuming I need to create a Product for the new types of objects/files I want, but even on that topic I'm not completely convinced. My objectives and

Re: [Zope] XML Content handling questions.

2005-06-01 Thread Nikko Wolf
2) I also need to serve up web-based forms and allow the user to create XML content based on a user-selected schema. Something like what Chiba (http://chiba.sf.net/) is targeting. Of course, though, that isn't a Python/Zope solution. Has anyone seen anything that works?

Re: [Zope] Creating links dynamically

2005-06-01 Thread Nikko Wolf
Now, if you're uploading files to Zope, rather than the file system, it's a little different, in that you have to get the data from an object, and you'll probably have to split it by newline yourself. John Poltorak wrote: This is the way I had been thinking of setting it up, but can't

[Zope] XML Content handling questions.

2005-05-27 Thread Nikko Wolf
Three questions, in order of importance (to me): 1) Is it possible to validate an (uploaded) XML file against a schema (currently on the Zope server)? What, if any, extra packages are needed?I want to use this in my upload forms to alert the user if their files are invalid. 2) I