Re: [Zope3-Users] IntID utility not found

2006-06-12 Thread Bernd Dorn
On 11.06.2006, at 23:39, Florian Lindner wrote: Hello, suddenly I get this error, the code used to work File /home/xgmde/Zope3//lib/python/zope/component/_api.py, line 207, in getUtility raise ComponentLookupError(interface, name) ComponentLookupError: (InterfaceClass

[Zope3-Users] Re: I fold. What are ++etc++ and ++resource++ etc?

2006-06-12 Thread Rocky Burt
On Sun, 2006-11-06 at 02:03 +0300, Michael Dexter wrote: 2. Fall out of search engines. 3. Break existing links. 4. Fail the over-the-phone test of URl's... Just a quick note to address these three. In generall, mostly the ++resource++ stuff is used to access gifs, jpgs, css, etc. For real

[Zope3-Users] Re: Generate view for adapted interface

2006-06-12 Thread Rocky Burt
On Mon, 2006-12-06 at 00:19 +0200, Philipp von Weitershausen wrote: zope.formlib will automatically adapt your object to the form interface if it doesn't provide it. So, when you have form for IMyObject that uses form fields from, say, IDublinCore, it will automatically adapt your object to

Re: [Zope3-Users] Re: I fold. What are ++etc++ and ++resource++ etc?

2006-06-12 Thread Tom Dossis
Michael Dexter wrote: My question is thus very naive: what is the ++xyz++ and @@xyz syntax and can it be avoided? yes... The following are normally all equivalent.. http://host/content/++view++edit.html http://host/content/@@edit.html http://host/content/edit.html This presumes that you've

Re: [Zope3-Users] Re: I fold. What are ++etc++ and ++resource++ etc?

2006-06-12 Thread Philipp von Weitershausen
Chris Withers wrote: Philipp von Weitershausen wrote: Failing to find a clear explanation, I only see a ways for Zope3-based sites to: 1. Be toyed with by the user. How so? ooo look, pretty shiny things in urls, I wonder what they mean Right. What's the problem though? You can toy with

[Zope3-Users] Vocabularies beyond SimpleVocabulary

2006-06-12 Thread Anders Bruun Olsen
Hi, I am trying to figure out how to implement vocabularies. My experimentation app is database of books which has a container for people and one for books. What I need to do is be able to form relations between these such that for a book I can choose from a list of the people in the database who

[Zope3-Users] Vocabularies beyond SimpleVocabulary

2006-06-12 Thread Piotr Chamera
Anders Bruun Olsen wrote: Hi, I am trying to figure out how to implement vocabularies. My experimentation app is database of books which has a container for people and one for books. What I need to do is be able to form relations between these such that for a book I can choose from a list of

[Zope3-Users] Re: Vocabularies beyond SimpleVocabulary

2006-06-12 Thread Philipp von Weitershausen
Piotr Chamera wrote: I am just working on similar code. I'm beginner in zope and python, so I post this code for improvements from other users. I have defined simple factory for my vocabularies (root folder is hardvired in the code, it gets subfolder by name and creates title from given

Re: [Zope3-Users] Re: Vocabularies beyond SimpleVocabulary

2006-06-12 Thread Piotr Chamera
Philipp von Weitershausen wrote: Piotr Chamera wrote: def getVocabulary(context, items_container, title_field): list = [] root=zapi.getRoot(context) for (oid, oobj) in root.get(books).get(items_container).items(): obj = removeAllProxies(oobj) Don't remove (security) proxies

Re: [Zope3-Users] Re: I fold. What are ++etc++ and ++resource++ etc?

2006-06-12 Thread Klaus Bremer
Ursprüngliche Nachricht am: Mon, 12 Jun 2006 20:53:32 +0200 von: Philipp von Weitershausen : [EMAIL PROTECTED] If you can't manage to spell @ over the phone, then good luck spelling your email address. It's a long time ago, but I remember a situation at school where we were learning to

[Zope3-Users] list woes

2006-06-12 Thread Marco Mariani
I'm having this stripped-down use case. class IToy(Interface): name = TextLine(title=uToy) class Toy(Persistent): name = FieldProperty(IToy['name']) class IGadget(Interface): name = TextLine(title=uGadget) class Gadget(Persistent): name = FieldProperty(IGadget['name'])

Re: [Zope3-Users] list woes

2006-06-12 Thread Marco Mariani
Marco Mariani wrote: class Gadget(Persistent): name = FieldProperty(IGadget['name']) def __init__(self,toy): super(Person, self).__init__(self) Of course it's super(Gadget, self) This is not real code, I've simplified a lot

[Zope3-Users] Question about ForbiddenAttribute...

2006-06-12 Thread Thierry FLORAC
Hi, I'm trying to build a sample photos management application for Zope-3.2, with the following interfaces and classes : - class IGalleryPhoto(IContainer) ... - class IGalleryContainer(IContainer) (marker interface used for preconditions) - class IGalleryFolder(IGalleryContainer)