Re: [Zope3-Users] Re: Using metadata for description

2005-05-05 Thread Florian Lindner
Am Mittwoch, 4. Mai 2005 08:40 schrieb Philipp von Weitershausen: Florian Lindner wrote: Hello, I want to allow the user to give items a short description, like for a link: Name: Zope URL: http://zope.org Description: Homepage of Zope, a web application server Is it wise

[Zope3-Users] Using metadata and __name__ in addform

2005-05-10 Thread Florian Lindner
Hello, how can I automatically create a addform that allows the user to enter the metadate zope:description and the __name__. Using addform-fields has not worked. Thanks, Florian ___ Zope3-users mailing list Zope3-users@zope.org

[Zope3-Users] Question/Problem with UserPreferences

2005-06-09 Thread Florian Lindner
Hello, I try to use the User Preference API. I've defined a Interface: class IUserSettings(Interface): email = TextLine( title = uE-mail Address) and registered it in my configure.zcml: preferenceGroup id=UserSettings title=Basic User Settings

Re: [Zope3-Users] Question/Problem with UserPreferences

2005-06-10 Thread Florian Lindner
Am Freitag, 10. Juni 2005 14:06 schrieb Stephan Richter: On Thursday 09 June 2005 12:44, Florian Lindner wrote: I try to use the value of email in a ZPT: E-Mail: span tal:replace=++preferences++/UserSettings/email / or E-Mail: span tal:replace=++preferences++UserSettings/email

[Zope3-Users] Output the template of a view class

2005-06-21 Thread Florian Lindner
Hello, sine I suspect my last email to have drowned on the list, I try to ask again. How can I ouput the template from the associated view class? class view: def __call__(self): return template How to do that? Thanks, Florian

[Zope3-Users] Syncing two attributes

2005-06-24 Thread Florian Lindner
Hello, I've one attribute A which is exposed via the Interface. Another internal attribute B should be in sync with it. So everytime A changes I want a function to be called. I think (solving another error stands before testing it) with __setattr__: def __setattr__(self, name, value):

Re: [Zope3-Users] Inline code in ZPT

2005-07-06 Thread Florian Lindner
Am Mittwoch, 6. Juli 2005 21:47 schrieb Nicolas Legault: Two questions: 1: Is it possible to have Inline code in a page template that is created on the host file system, not throught the ZMI ? I got an error that inline code is not activated, where do I activate it ? 2: Is it a bug or

[Zope3-Users] Re: [Zope3-dev] (no subject)

2005-07-09 Thread Florian Lindner
Am Samstag, 9. Juli 2005 02:20 schrieb aaron wang: hi all, I am a newcomer to python zope, I read some materials, and want to know wheather I could start on zope3 without experience on zope2. I want start on my learning by constructing a small website, but I don't have right book/tutorial

[Zope3-Users] Problems with PartialAnnotationsAdapter

2005-07-25 Thread Florian Lindner
Hello, without change of my codebase my objects which use the partial annotations adapter are not working anymore. I use it like that: contentitem.py: from zope.app.dublincore import annotatableadapter factory = annotatableadapter.partialAnnotatableAdapterFactory([title, description])

[Zope3-Users] Using attributes in a nameChooser

2005-08-05 Thread Florian Lindner
Hello, in a Containers chooseName function I want to use a attribute of the created object: def chooseName(self, name, object): return object.name File /home/florian/Desktop/zope/lib/python/CS/ContentFolder/contentfolder.py, line 15, in chooseName return object.name

Re: [Zope3-Users] Using attributes in a nameChooser

2005-08-05 Thread Florian Lindner
Am Freitag, 5. August 2005 15:49 schrieb Ruslan Spivak: В Птн, 05/08/2005 в 12:25 +0200, Florian Lindner пишет: Hello, in a Containers chooseName function I want to use a attribute of the created object: def chooseName(self, name, object): return object.name File

Re: [Zope3-Users] Re: Using attributes in a nameChooser

2005-08-06 Thread Florian Lindner
Am Freitag, 5. August 2005 21:21 schrieb Ruslan Spivak: Florian Lindner [EMAIL PROTECTED] writes: [...] Can this set_before_add behevoir be somehow defined global for the object or even better be imposed by the container? So that it does not need to be declared by every addform

[Zope3-Users] Still problems with partialAnnotationsAdapter

2005-08-19 Thread Florian Lindner
Hello, I'm still having problems with the partialAnnotationsAdapter. Refer to my posting: Subject: [Zope3-Users] Problems with PartialAnnotationsAdapter From: Florian Lindner [EMAIL PROTECTED] To: zope3-users@zope.org Date: 25.07.2005 15:14 or http://www.zope.org/Collectors/Zope3-dev/438 I've

Re: [Zope3-Users] Calling createAndAdd with different object id

2005-09-11 Thread Florian Lindner
would really be perfect for me. But I need access to the form data of the add form. And AFAIK I don't have this using the NameChooser. You now a way to get the form data in the NameChooser? Thanks, Florian Alen On Sat, 2005-09-10 at 17:05 +0200, Florian Lindner wrote: Hello, I want

Re: [Zope3-Users] Object Name field on addforms

2005-09-11 Thread Florian Lindner
Am Sonntag, 11. September 2005 15:04 schrieb Florian Lindner: Hello the auto generated add forms sometimes dispaly a field for the Object Name. add.pt in src/zope/app/form/browser span tal:condition=context/nameAllowed|nothing tal:omit-tag= nbsp;nbsp;b i18n:translate=Object

Re: [Zope3-Users] Object Name field on addforms

2005-09-12 Thread Florian Lindner
Am Sonntag, 11. September 2005 20:22 schrieb Stephan Richter: On Sunday 11 September 2005 09:04, Florian Lindner wrote: I have a Container (implementing IContainer, Interface (via Interface inheritance) and via ZCML IAttributeAnnotatable and IContentContainer. On the auto-generated

Re: [Zope3-Users] Object Name field on addforms

2005-09-12 Thread Florian Lindner
Am Sonntag, 11. September 2005 20:25 schrieb Stephan Richter: On Sunday 11 September 2005 10:07, Florian Lindner wrote: The field is displayed when the addform is called with folder/+/AddCSLink.html. In this case AddCSLink.html is a view for IAdding. When folder/AddCSLink.html

Re: [Zope3-Users] Object Name field on addforms

2005-09-12 Thread Florian Lindner
Am Montag, 12. September 2005 15:07 schrieb Stephan Richter: On Monday 12 September 2005 09:02, Florian Lindner wrote: Because your container does not implement IContainerNamesContainer. If I make my container implementing IContainerNamesContainer the form field in never displayed

[Zope3-Users] Fields are not inherited

2005-09-12 Thread Florian Lindner
Hello, I have a interface: class IContentItem(Interface): The ContentItem object works as a base class for all other content objects. def __setitem__(name, object): Add a IContentItem object. title = TextLine( title = uName,

Re: [Zope3-Users] Fields are not inherited

2005-09-12 Thread Florian Lindner
Am Montag, 12. September 2005 19:47 schrieb Stephan Richter: On Monday 12 September 2005 13:30, Florian Lindner wrote: class IContentItem(Interface):     The ContentItem object works as a base class for all other content objects.     def __setitem__(name, object):         Add

Re: [Zope3-Users] Object Name field on addforms

2005-09-13 Thread Florian Lindner
Am Montag, 12. September 2005 15:09 schrieb Stephan Richter: On Monday 12 September 2005 09:05, Florian Lindner wrote: Don't use the menu/title attributes of form:addform. Use the browser:addMenuItem directive instead. Ok. But why does the addform directive registers a menu item

Re: [Zope3-Users] addview name not form

2005-09-27 Thread Florian Lindner
Am Samstag, 17. September 2005 15:10 schrieb Florian Lindner: Hello, I've a wierd error. I've a configure.zcml with: addform schema=CS.Link.interfaces.ILink name=AddCSLink.html content_factory=CS.Link.link.Link permission=CS.Add layer

Re: [Zope3-Users] addview name not form

2005-09-27 Thread Florian Lindner
Am Dienstag, 27. September 2005 15:34 schrieb Julien Anguenot: Florian Lindner wrote: Am Samstag, 17. September 2005 15:10 schrieb Florian Lindner: Hello, I've a wierd error. I've a configure.zcml with: addform schema=CS.Link.interfaces.ILink name=AddCSLink.html

Re: [Zope3-Users] addview name not form

2005-09-27 Thread Florian Lindner
Am Dienstag, 27. September 2005 17:14 schrieb Julien Anguenot: Florian Lindner wrote: Am Dienstag, 27. September 2005 15:34 schrieb Julien Anguenot: Florian Lindner wrote: Am Samstag, 17. September 2005 15:10 schrieb Florian Lindner: Hello, I've a wierd error. I've a configure.zcml

Re: [Zope3-Users] addview name not form

2005-09-29 Thread Florian Lindner
Hi, no one any more ideas? *desperated* I can't really believ that this error has not occured to anyone else, since IMO it is very a standard situation... Would it help if I create a small package which demonstrates the error? Thx, Florian ___

Re: [Zope3-Users] addview name not form

2005-09-29 Thread Florian Lindner
Am Donnerstag, 29. September 2005 20:25 schrieb Julien Anguenot: First have a look at this : http://www.zope.org/Collectors/Zope3-dev/391 The addMenuItem directive should look this way in order to work : addMenuItem title=Link class=CS.Link.link.Link

Re: [Zope3-Users] Object Name field on addforms

2005-10-05 Thread Florian Lindner
Am Sonntag, 11. September 2005 20:25 schrieb Stephan Richter: On Sunday 11 September 2005 10:07, Florian Lindner wrote: The field is displayed when the addform is called with folder/+/AddCSLink.html. In this case AddCSLink.html is a view for IAdding. When folder/AddCSLink.html

Re: [Zope3-Users] addview name not form

2005-10-06 Thread Florian Lindner
Am Montag, 3. Oktober 2005 14:01 schrieb Florian Lindner: Am Freitag, 30. September 2005 20:17 schrieb Julien Anguenot: Florian Lindner wrote: Am Donnerstag, 29. September 2005 20:25 schrieb Julien Anguenot: First have a look at this : http://www.zope.org/Collectors/Zope3-dev/391

[Zope3-Users] PAU and Session Credentials

2005-11-20 Thread Florian Lindner
Hello, I've created and registered a PluggableAuthentication in my site. I've added two plugins: PrincipalFolder and SessionCredentialsPlugin and registered both. I've configured the PAU to use these plugins. In the principal folder I've created a Principal. I've also created a loginForm.html

Re: [Zope3-Users] PAU and Session Credentials

2005-11-27 Thread Florian Lindner
Am Freitag, 25. November 2005 00:06 schrieb Christian Lück: Hi Florian, Florian Lindner wrote: If I try to call a page which reguired a specific permission the loginForm comes up. But when I enter the login and password of the Principal in the Principal Folder or a the manager principal

[Zope3-Users] unauthenticated principal

2005-11-27 Thread Florian Lindner
Hello, my error log has a entry to a unauthenticated principal: unauthenticated, pre1, CS.User, beschreibung but why is there a username (pre1) being print? What does the unauthenticated means in that context? Thanks, Florian ___ Zope3-users mailing

[Zope3-Users] Stephan Philipp: New versions of your books?

2005-12-11 Thread Florian Lindner
Hello, I think both your books are, due to the fast pace of Zope3 development outdated in large sections. Are there any plans for new version of these books? Or any new Zope3 books upcoming? Thanks, Florian ___ Zope3-users mailing list

[Zope3-Users] Get classes implementing Interface

2005-12-26 Thread Florian Lindner
Hello, how can I get all classes that implement a specific interface? What interface do I need to search for, when I want all objects that can be added and work as container? IContainer seem to be implemented by a lot more objects... Thanks, Florian

Re: [Zope3-Users] Get classes implementing Interface

2005-12-28 Thread Florian Lindner
Am Mittwoch, 28. Dezember 2005 14:48 schrieb Jim Fulton: Florian Lindner wrote: Hello, how can I get all classes that implement a specific interface? What interface do I need to search for, when I want all objects that can be added and work as container? IContainer seem to be implemented

Re: [Zope3-Users] Re: Get classes implementing Interface

2005-12-30 Thread Florian Lindner
Am Freitag, 30. Dezember 2005 10:20 schrieb Philipp von Weitershausen: Florian Lindner wrote: Am Mittwoch, 28. Dezember 2005 14:48 schrieb Jim Fulton: Florian Lindner wrote: Hello, how can I get all classes that implement a specific interface? What interface do I need to search for, when I

Re: [Zope3-Users] Re: Get classes implementing Interface

2005-12-30 Thread Florian Lindner
Am Freitag, 30. Dezember 2005 17:45 schrieb Jim Fulton: Philipp von Weitershausen wrote: Florian Lindner wrote: my first use case is that I want to enhance the HomefolderManager to make it possible to select something else than a Folder to be created automatically. Right now I have forked

Re: [Zope3-Users] Re: Get classes implementing Interface

2005-12-31 Thread Florian Lindner
Am Freitag, 30. Dezember 2005 20:57 schrieb Jeff Shell: On 12/30/05, Florian Lindner [EMAIL PROTECTED] wrote: Am Freitag, 30. Dezember 2005 17:45 schrieb Jim Fulton: Philipp von Weitershausen wrote: So, what you want is not a list of classes but a list of factories that can create

Re: [Zope3-Users] Re: Get classes implementing Interface

2005-12-31 Thread Florian Lindner
Does anyone got this mail? I've not received a copy from the mailinglists neither it shows up in the archives... Am Freitag, 30. Dezember 2005 20:57 schrieb Jeff Shell: On 12/30/05, Florian Lindner [EMAIL PROTECTED] wrote: Am Freitag, 30. Dezember 2005 17:45 schrieb Jim Fulton: Philipp von

Re: [Zope3-dev] Re: [Zope3-Users] Re: Get classes implementing Interface

2006-01-04 Thread Florian Lindner
Am Samstag, 31. Dezember 2005 14:48 schrieb Florian Lindner: Am Freitag, 30. Dezember 2005 20:57 schrieb Jeff Shell: On 12/30/05, Florian Lindner [EMAIL PROTECTED] wrote: Am Freitag, 30. Dezember 2005 17:45 schrieb Jim Fulton: Philipp von Weitershausen wrote: So, what you want

Re: [Zope3-Users] Re: Get classes implementing Interface

2006-01-08 Thread Florian Lindner
Am Freitag, 30. Dezember 2005 13:30 schrieb Philipp von Weitershausen: Florian Lindner wrote: my first use case is that I want to enhance the HomefolderManager to make it possible to select something else than a Folder to be created automatically. Right now I have forked a version

[Zope3-Users] Convert from string to class

2006-01-17 Thread Florian Lindner
Hello, I've a string like zope.app.folder.Folder and I want to get the class zope.app.folder.Folder from this string. How can I do that? It's probably more a python problem that Zope... but I hope you excuse. Thanks, Florian ___ Zope3-users mailing

Re: [Zope3-Users] Still trying to figure out PAU

2006-02-04 Thread Florian Lindner
Am Freitag, 3. Februar 2006 17:11 schrieb Rupert Redington: Florian Lindner wrote: Am Freitag, 3. Februar 2006 04:07 schrieb Gary Poster: On Feb 2, 2006, at 4:41 PM, Florian Lindner wrote: Hello, I'm still desperately trying to figure out the PluggableAuthentication. Since no one

[Zope3-Users] Best way to add a Principal to PAU

2006-02-05 Thread Florian Lindner
Hello, I've managed to add a principal to a principal folder inside a PAU: pau = getUtility(IAuthentication) pfolder = pau.keys()[0] principal = InternalPrincipal(def, pwd123,a title, a description) pfolder[def] = principal but I doubt that the most elegant way. How can I achieve do it

Re: [Zope3-Users] Re: Get classes implementing Interface

2006-02-06 Thread Florian Lindner
Am Montag, 6. Februar 2006 12:19 schrieb Stephan Richter: On Sunday 08 January 2006 10:01, Florian Lindner wrote: I do it this way now:             utils =  getUtilitiesFor(IFactory)             self.objects = {}             for i in utils:                 if IContainer in i[1

[Zope3-Users] Trying to use browser:form - 404

2006-02-09 Thread Florian Lindner
Hello, I try to create a form build from a schema with browser:form: form name=registrationForm.html schema=.interfaces.registrationForm class=.views.registrationForm permission=zope.Public layer=centershock for=*/ interfaces.registrationForm

Re: [Zope3-Users] Trying to use browser:form - 404

2006-02-10 Thread Florian Lindner
Am Freitag, 10. Februar 2006 11:37 schrieb Lennart Regebro: On 2/10/06, Florian Lindner [EMAIL PROTECTED] wrote: It does not implement registrationForm. But I thought that interfaces.registrationForm is only for providing the schema to build the form, because of the for=* it should

Re: [Zope3-Users] Trying to use browser:form - 404

2006-02-10 Thread Florian Lindner
Am Donnerstag, 9. Februar 2006 22:45 schrieb Bernd Dorn: On 09.02.2006, at 19:27, Florian Lindner wrote: Hello, I try to create a form build from a schema with browser:form: form name=registrationForm.html schema=.interfaces.registrationForm class

Re: [Zope3-Users] Trying to use browser:form - 404

2006-02-10 Thread Florian Lindner
Am Freitag, 10. Februar 2006 14:05 schrieb Garanin Michael: Do you register the 'centershock'skin? Write this part of zcml-code, please. Yes, there are a number of page directives that use the centershock skin and are working correctly. Florian ___

Re: [Zope3-Users] Trying to use browser:form - 404

2006-02-10 Thread Florian Lindner
Am Freitag, 10. Februar 2006 15:18 schrieb Garanin Michael: I simulate this for Buddy from buddydemo (see attached) == it is normal work for Buddy-object! I think you make mistakes: 1) __init__ for 'view' always get 3-parameters (self, context, request) I've removed __init__ from the view

[Zope3-Users] zope3-users rejects mail

2006-02-10 Thread Florian Lindner
Hello, some (not all) of my postings to zope3-users are being rejected: Final-Recipient: rfc822; zope3-users@zope.org Action: failed Status: 5.0.0 Diagnostic-Code: X-Postfix; host mail.zope.org[63.240.213.173] said: 550 Error: Message content rejected (in reply to end of DATA command)

Re: [Zope3-Users] Trying to use browser:form - 404

2006-02-10 Thread Florian Lindner
Am Freitag, 10. Februar 2006 20:10 schrieb Garanin Michael: I've played with zope.formlib before that. I didn't manage to generate a entire form, just the input ... statemenets were generated, without any html headers or anything like that. So I need to add them manually with python code

Re: [Zope3-Users] Trying to use browser:form - 404

2006-02-10 Thread Florian Lindner
Am Samstag, 11. Februar 2006 00:29 schrieb Alen Stanisic: On Fri, 2006-02-10 at 22:18 +0100, Florian Lindner wrote: Thanks for your example. But I've the same error, a 404. in views.py: from zope.formlib.form import EditForm from interfaces import IRegistrationForm class

Re: [Zope3-Users] Trying to use browser:form - 404

2006-02-11 Thread Florian Lindner
Am Samstag, 11. Februar 2006 00:58 schrieb Alen Stanisic: On Sat, 2006-02-11 at 00:44 +0100, Florian Lindner wrote: I get a system error: 2006-02-11T00:41:25 ERROR SiteError http://horus:8080/++skin++centershock/cs/registrationForm.html Traceback (most recent call last): File /home

Re: [Zope3-Users] Trying to use browser:form - 404

2006-02-11 Thread Florian Lindner
Am Samstag, 11. Februar 2006 10:18 schrieb Helmut Merz: Am Freitag, 10. Februar 2006 22:18 schrieb Florian Lindner: in configure.zcml: ... name=registrationForm.html And I try to call it with: /++skin++centershock/cs/registerForm.html Is this really your code

Re: [Zope3-Users] Trying to use browser:form - 404

2006-02-11 Thread Florian Lindner
Am Samstag, 11. Februar 2006 12:44 schrieb Helmut Merz: Am Samstag, 11. Februar 2006 11:21 schrieb Florian Lindner: Am Samstag, 11. Februar 2006 10:18 schrieb Helmut Merz: Is this really your code (registrationForm.html vs. registerForm.html)? Then a 404 shouldn't be a surprise

Re: [Zope3-Users] Trying to use browser:form - 404

2006-02-11 Thread Florian Lindner
Am Samstag, 11. Februar 2006 11:59 schrieb Garanin Michael: File /home/florian/Zope3/src/zope/schema/_bootstrapfields.py, line 171, in get return getattr(object, self.__name__) ForbiddenAttribute: ('blablubb', CS.centershock.centershock.Centershock object at 0xb757a46c) That is

Re: [Zope3-Users] Trying to use browser:form - 404

2006-02-11 Thread Florian Lindner
Am Samstag, 11. Februar 2006 16:51 schrieb Helmut Merz: Am Samstag, 11. Februar 2006 14:11 schrieb Florian Lindner: blablubb is a field of my interface. Of which interface? IRegistrationForm only or also ICentershock? (and no typos? ;-)) of IRegistrationForm

Re: [Zope3-Users] Trying to use browser:form - 404

2006-02-11 Thread Florian Lindner
Am Samstag, 11. Februar 2006 16:40 schrieb Garanin Michael: I still don't understand why it's necessary that the content object needs to implement or be adaptable to the schema from which the form is generated. Florian It's normal and it's right: content object MUST be adaptable to

[Zope3-Users] Users need to activate their accounts

2006-02-12 Thread Florian Lindner
Hello, how would you implement something like that? What comes into my mind is: 1) Let the registration script create a PendingPrincipal object and store them into a folder. The activation script create a real user in the PAU based on the PendingPrincipal und deletes the PendingPrincipal. Can

Re: [Zope3-Users] Lookup AddForms

2006-02-12 Thread Florian Lindner
Am Sonntag, 12. Februar 2006 21:54 schrieb Marc Rijken: Hi All, In an application I want to lookup for the addform registered for a schema. I have tried to lookup via the adapter. That failed, because the schema is not used as an interface for an adapter. I do not know where to look now. Can

Re: [Zope3-Users] Zope 3 Developer's LiveBook

2006-02-14 Thread Florian Lindner
Am Dienstag, 14. Februar 2006 19:41 schrieb Paul Dumais: Thanks, everyone for your comments. I'm not sure how commited I am to doing this, but I might as well take the rock soup approach. A rock soup is better than no soup, and everyone else can add their favorite ingredients to make it into

[Zope3-Users] What attributes are made persistent

2006-02-14 Thread Florian Lindner
Hello, in a class derived from Persistent, which attributes are stored? All or only those thar are declared in the interface? def __init__(self): self.queue = {} self.queue seem is empty each time I restart Zope. Thanks, Florian ___

Re: [Zope3-Users] Lists dont accept default values

2006-02-15 Thread Florian Lindner
Am Mittwoch, 15. Februar 2006 14:40 schrieb Frank Burkhardt: Hi, I wrote a schema like this to have a list of objects on a content object: class IMyContent(Interface): mynumbers=List( title=_(uCool Numbers), required=True, value_type=Int(

[Zope3-Users] more efficient role - permission mapping in ZCML

2006-02-22 Thread Florian Lindner
Hello, I'v a number of permissions (A, B, C, D) which I want to map to a number of roles (x, y, z). x should have permission A, B, C, D y should have A, B, C z should have A Is there a faster way of doing that in ZCML than grant permission=A role=x / grant permission=B

[Zope3-Users] Wierd import problem

2006-02-28 Thread Florian Lindner
Hello, I've a wierd problem which is supposed to be plain simple but I can't see it... Zope3 gives on startup: File /home/florian/Desktop/zope/lib/python/CS/user_management/views.py, line 2, in ? from interfaces import IRegistrationForm File

[Zope3-Users] Creating objects in software space when making site

2006-03-06 Thread Florian Lindner
Hello, my content object depends on a number of utilities to be present. It is usually also used as a site. During development it happens often that I delete and recreate it. Can I install a hook or something so I can make that these utilies are being created when my objects becomes a site? How

[Zope3-Users] New way of using skins

2006-03-08 Thread Florian Lindner
Hello, I have: zope:interface interface=.interfaces.ICentershockSkin type=zope.publisher.interfaces.browser.IBrowserSkinType name=centershock / class ICentershockSkin(zope.app.rotterdam.Rotterdam): What do I have to give for the layer or type (what is the

[Zope3-Users] Deprecate conditionally

2006-03-27 Thread Florian Lindner
Hello, I want show a deprecation warning only if a argument of a function is set to False. def foo(arg1, arg2, arg3 = False): if not arg3: arg3 = deprecation.deprecated(arg3, arg3=False is deprecated.) But that does not show anything. How do it correctly? Thanks, Florian

[Zope3-Users] ZPT traverser for finding site

2006-03-28 Thread Florian Lindner
Hello, is there a ZPT traverser for finding the nearest site in Zope3? a tal:attributes=href site/registrationForm/absoluteURLregister/a/li because registrationForm is registered in my object which forms the site. Thanks, Florian ___ Zope3-users

Re: [Zope3-Users] Programatically add plugins to PAU

2006-04-12 Thread Florian Lindner
Am Mittwoch, 12. April 2006 08:50 schrieb Stephan Richter: On Wednesday 12 April 2006 02:39, Michael Howitz wrote: This is how we did it in a project: createAuthenticationUtils is called on handling the ObjectAddedEvent for the folder (which is programmatically made a site) which should

Re: [Zope3-Users] Programatically add plugins to PAU

2006-04-12 Thread Florian Lindner
Am Mittwoch, 12. April 2006 08:39 schrieb Michael Howitz: Florian Lindner wrote: Hello, I've a PluggableAuthentication and want to add and register some plugins to it. Adding works fine: principal_folder = zope.app.authentication.principalfolder.PrincipalFolder(prefix = cs

[Zope3-Users] Generating loginForm with formlib

2006-04-20 Thread Florian Lindner
Hello, I want to generate a login form for the PAU session credentials plugin. The plugin expects a form that have a login and a password field. I've created a interface: class ILoginForm(Interface): For generating the login form. login = TextLine(title=uUsername,

[Zope3-Users] Static vocabulary

2006-04-30 Thread Florian Lindner
Hello, I want to define an vocabulary schema field with a fixed sets of values. How can I do that? How can I define it directly in ZCML? Thanks, Florian ___ Zope3-users mailing list Zope3-users@zope.org

[Zope3-Users] formlib: Some additional text

2006-05-05 Thread Florian Lindner
Hello, I've a normal formlib: class xy(Formlib): form_fields = IInterface page class .views.xy / (pseudo-code) Now I want to place some additional text above the form stuff. But I want to keep all this usefull JavaScript stuff that form lib inserts. How can I do that? Thanks,

Re: [Zope3-Users] formlib: Some additional text

2006-05-05 Thread Florian Lindner
Am Freitag, 5. Mai 2006 17:10 schrieb Fred Drake: On 5/5/06, Florian Lindner [EMAIL PROTECTED] wrote: Now I want to place some additional text above the form stuff. But I want to keep all this usefull JavaScript stuff that form lib inserts. Can you use the extra_info slot? I think

[Zope3-Users] Problem with Umlauts

2006-05-08 Thread Florian Lindner
Hello, I have an schema like that: class IAbbreviation(Interface): abbreviation = TextLine( title = uAbkürzung, required = True) meaning = TextLine( title = uBedeutung, required = True)

Re: [Zope3-Users] Problem with Umlauts

2006-05-08 Thread Florian Lindner
Am Montag, 8. Mai 2006 22:16 schrieb Egon Frerich: Hi Florian, do you have the first line # -*- coding: utf8 -*- in your python module? No. And is the source encoded in UTF-8? Yes. But with the line above added to the file it works now. Never heard of that line... Thanks, Florian

Re: [Zope3-Users] How to make catalog working?

2006-05-16 Thread Florian Lindner
Am Dienstag, 16. Mai 2006 12:02 schrieb Frank Burkhardt: Hi, On Mon, May 15, 2006 at 11:16:09PM +0200, Florian Lindner wrote: Hello, I've added some content objects of interface IFoo to my site. Then I added a catalog to my site (and also a IntID utility). I registered both

Re: [Zope3-Users] How to make catalog working?

2006-05-16 Thread Florian Lindner
Am Dienstag, 16. Mai 2006 13:23 schrieb Jim Washington: Frank Burkhardt wrote: Hi, On Mon, May 15, 2006 at 11:16:09PM +0200, Florian Lindner wrote: Hello, I've added some content objects of interface IFoo to my site. Then I added a catalog to my site (and also a IntID utility). I

Re: [Zope3-Users] How to make catalog working?

2006-05-16 Thread Florian Lindner
Am Dienstag, 16. Mai 2006 21:51 schrieb Frank Burkhardt: Hi, On Tue, May 16, 2006 at 07:08:34PM +0200, Florian Lindner wrote: Am Dienstag, 16. Mai 2006 12:02 schrieb Frank Burkhardt: [snip] The IntID utility has to be registered *before* all the objects you want to find. No object

Re: [Zope3-Users] How to make catalog working?

2006-05-17 Thread Florian Lindner
Am Dienstag, 16. Mai 2006 21:51 schrieb Frank Burkhardt: Hi, On Tue, May 16, 2006 at 07:08:34PM +0200, Florian Lindner wrote: Am Dienstag, 16. Mai 2006 12:02 schrieb Frank Burkhardt: [snip] The IntID utility has to be registered *before* all the objects you want to find. No object

[Zope3-Users] How to use catalog.searchResults

2006-05-20 Thread Florian Lindner
Hello, I have a catalog: (Pdb) catalog zope.app.catalog.catalog.Catalog object at 0xb4a3f66c with one index: (Pdb) for i in catalog.keys(): print i AbbreviationIndex but I can't find a way to use the search results function: (Pdb) catalog.searchResults(AbbreviationIndex = ABC) *** TypeError:

Re: [Zope3-Users] How to use catalog.searchResults

2006-05-21 Thread Florian Lindner
Am Sonntag, 21. Mai 2006 17:58 schrieb mats.nordgren: (Pdb) catalog.searchResults(AbbreviationIndex = ABC) *** TypeError: ('two-length tuple expected', 'ABC') (Pdb) catalog.searchResults([AbbreviationIndex ,ABC]) *** TypeError: searchResults() takes exactly 1 argument (2 given) (Pdb)

[Zope3-Users] Again unicode problem (in configure.zcml)

2006-05-30 Thread Florian Lindner
Hello, Zope gives this message on startup: File /home/florian/Zope3/src/zope/schema/_bootstrapfields.py, line 165, in _validate raise WrongType(value, self._type) zope.configuration.xmlconfig.ZopeXMLConfigurationError: File /home/florian/Desktop/zope/etc/site.zcml, line 7.2-7.55

Re: [Zope3-Users] Generating loginForm with formlib

2006-06-02 Thread Florian Lindner
Am Donnerstag, 1. Juni 2006 22:27 schrieb Stephan Richter: On Thursday 20 April 2006 09:38, Florian Lindner wrote: but formlib generates the two fields with name=form.login therefore the session credentials plugin is able to extract the credentials. How can I use formlib to generate

Re: [Zope3-Users] Utilities

2006-06-05 Thread Florian Lindner
Am Montag, 5. Juni 2006 08:14 schrieb David Johnson: What is the best to find the nearest utility without using a name? zapi.getUtility() seems to require a name (though the documentation implies otherwise). zapi.getAllRegisiteredUtilitiesFor() works but it seems to me if you have lots of

[Zope3-Users] Problem with 3.3 beta1

2006-06-07 Thread Florian Lindner
Hello, my code works with svn, but not with beta1: File /home/xgmde/Zope3//lib/python/zope/component/_api.py, line 207, in getUtility raise ComponentLookupError(interface, name) ComponentLookupError: (InterfaceClass zope.app.intid.interfaces.IIntIds, '') The problem is clear but it should

[Zope3-Users] Using restructered text

2006-06-15 Thread Florian Lindner
Hello, how can I use (render to html) restructered text that is in a static file? Thanks, Florian ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users

Re: [Zope3-Users] Create catalog index via script

2006-06-18 Thread Florian Lindner
Am Samstag, 17. Juni 2006 10:38 schrieb Achim Domma: Hi, I have a workspace object, which I initialize in the IObjectCreatedEvent. I try to add a catalog with an index like this: ensureUtility(workspace,zope.app.intid.interfaces.IIntIds,'',IntIds,asObjec t=True)

Re: [Zope3-Users] Formlib and invariants

2006-07-19 Thread Florian Lindner
Am Mittwoch, 19. Juli 2006 03:25 schrieb Darryl Cousins: Hi All, I've had a bit of a struggle getting formlib error views to play nicely with invariants. That is the problem I have found to trouble me is in the zope.formlib.form.FormBase method error_views. When I use the schema: class

[Zope3-Users] nextURL not working as expected

2006-08-07 Thread Florian Lindner
Hello, I habe a view class derived from zope.formlib.form.AddForm: class AddLink(form.AddForm): form_fields = form.fields(ILink) def createAndAdd(self, data): self.link = Link() self.link.title = data['title'] self.link.description = data['description']

Re: [Zope3-Users] zope3's TAL ZPT reference

2006-08-07 Thread Florian Lindner
Am Montag, 7. August 2006 14:57 schrieb Michele Amori: Hello all, actually I'm a zope newbie. I must develop web applications with zope 3.2, in the next future, so I'd like some help from this ML. I'm searching for a ZPT (or TAL) reference for Zope 3...where is it? Take a look here:

[Zope3-Users] Re: default defaultView

2006-08-10 Thread Florian Lindner
Am Mittwoch, 9. August 2006 00:27 schrieb Philipp von Weitershausen: Florian Lindner wrote: Hello, is there a kind of default defaultView? So when a object is called and no defaultView is defined that a view like index.html is called? I thought yes, but a test has not proven

[Zope3-Users] How does the static-apidoc script works?

2006-08-14 Thread Florian Lindner
Hello, how does that script works? Executing gives an error: [EMAIL PROTECTED] ~/Zope3 $ python utilities/static-apidoc /home/florian/z3-doc/ Traceback (most recent call last): File utilities/static-apidoc, line 37, in ? main() File /home/florian/Zope3/src/zope/app/apidoc/static.py, line

[Zope3-Users] Blog package

2006-08-17 Thread Florian Lindner
Hello, is there a blog package for Zope3 around? Thanks, Florian ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users

Re: [Zope3-Users] Generate edit form from user setting

2006-08-22 Thread Florian Lindner
Am Donnerstag, 17. August 2006 23:04 schrieb Fred Drake: On 8/17/06, Florian Lindner [EMAIL PROTECTED] wrote: I have a zope.app.preference.preference.PreferenceGroup based on an IUserSettings interface for which I want to generate an edit form. I've tried to do it with a class based

Re: [Zope3-Users] How does the static-apidoc script works?

2006-09-07 Thread Florian Lindner
Am Mittwoch, 6. September 2006 12:25 schrieb Stephan Richter: On Monday 14 August 2006 17:46, Florian Lindner wrote: ow does that script works? Executing gives an error: [EMAIL PROTECTED] ~/Zope3 $ python utilities/static-apidoc /home/florian/z3-doc/ Traceback (most recent call last

Re: [Zope3-Users] Books example

2006-09-09 Thread Florian Lindner
Am Freitag, 8. September 2006 09:03 schrieb Sébastien VINOT: Hello, I'm using both books to learn Zope3 : - Web component Development with Zope 3 (Philipp Von Weitershausen) The home page of this book is at http://worldcookery.com/ - Zope 3 (Stephan Ritcher)

Re: [Zope3-Users] Logout

2006-09-22 Thread Florian Lindner
Am Freitag, 22. September 2006 09:42 schrieb FB: Hi, On Thu, Sep 21, 2006 at 07:25:06AM -0500, David Johnson wrote: Does anyone know how to logout? We've been using logout.html as the logout page for Zope Realm Basic Auth, and it does not seem to log us out. We're using IE 6. It's not

[Zope3-Users] edit form is not being used

2006-10-26 Thread Florian Lindner
Hello, I have an INewsfeed which is derived from IContentItem. There is an editform defined: editform schema=..interfaces.INewsfeed name=edit.html permission=zope.ManageContent layer=CS.skin.interfaces.IZMISkin menu=zmi_views title=Edit /

  1   2   >