Re: [Zope3-Users] How do I learn how to use Zope?

2009-06-16 Thread Hermann Himmelbauer
Am Dienstag 16 Juni 2009 01:26:24 schrieb Edward Zwart: > I've been limping along for a couple weeks trying to learn this > framework, and I'm completely stuck, and can barely even form a good > question... so apologies in advance... > > My problem is I'm brand new to Zope, and it's impossible to t

Re: [Zope3-Users] Problems with (understanding?) the pluggable authenticator utility

2009-05-12 Thread Hermann Himmelbauer
Am Dienstag 12 Mai 2009 22:04:13 schrieb legok...@aol.com: > Hello, > i created the permissions in my permissions.zcml, mapped them to roles > in roles.zcml, and included the files in the configure.zcml. But after > restarting zope, i still cant see anything interesting on the "grants" > page. What

Re: [Zope3-Users] Pluggable Authentication with stock user/manager principals?

2009-01-08 Thread Hermann Himmelbauer
Am Donnerstag 08 Januar 2009 01:46:04 schrieb Sebastian Bartos: > Hello there Zope3 folks, > > I'm kind of new to Zope 3. Was playing around with Zope 2 and Plone for > a while before I settled with Zope 3 a few months ago. Starting to get > the hang out of it (well, slowly). > > Anyway, still have

Re: [Zope3-Users] Zope3 and SQLAlchemy

2008-11-18 Thread Hermann Himmelbauer
Am Dienstag 18 November 2008 13:06:31 schrieb Thierry Florac: > Hi, > > I currently have to integrate an SQL database (PostgreSQL, with PostGIS > extensions) into my Zope3 application. > I'd like to use SQLAlchemy to handle this, and I've seen that several > packages are available : z3c.zalchemy, z

Re: [Zope3-Users] programming concept help needed

2008-11-14 Thread Hermann Himmelbauer
Am Freitag 14 November 2008 22:55:33 schrieb Jim Pharis: > Zope3'ers, > > I'm struggling with one particular concept in Zope3 and I'm hoping > someone can provide me with some insight into this. > > Let me stage an example to explain the concept I'm struggling with. I > have 2 content types, a car

Re: [Zope3-Users] "Smarter" values for values = [ ] in Choice schema fields?

2008-11-06 Thread Hermann Himmelbauer
Am Donnerstag 06 November 2008 17:30:27 schrieb Marius Gedminas: > On Thu, Nov 06, 2008 at 02:13:56PM +0100, Hermann Himmelbauer wrote: > > I quite often have Choice schema fields in my applications. In many > > cases, these choice fields should have fixed values, thus I do i

[Zope3-Users] "Smarter" values for values = [] in Choice schema fields?

2008-11-06 Thread Hermann Himmelbauer
Hi, I quite often have Choice schema fields in my applications. In many cases, these choice fields should have fixed values, thus I do it like this: color = Choice( title=u"Color", values=['red', 'green', 'yellow']) My application then uses the these values for further processing, e.g.: if colo

Re: [Zope3-Users] Zope 3 tutorial

2008-11-04 Thread Hermann Himmelbauer
Am Dienstag 04 November 2008 07:05:05 schrieb Jaideep Das: > I am looking for a good tutorial for latest zope 3. I was following the > tutorial http://www.benjiyork.com/quick_start/ but its not working with > new version of zope3(3.3.1). So was looking for something latest and up to > date. I pe

Re: [Zope3-Users] i18nextract.py issue

2008-10-31 Thread Hermann Himmelbauer
Am Donnerstag 30 Oktober 2008 15:39:03 schrieb hass: > Hi, > > I have been struggling to extract messageIDs out of my application and > list save them into a .POT file. > I only know that this used to be a relatively straightforward process > untill 3.2 when zope was installed from the source code

Re: [Zope3-Users] Buildout seems to be broken due to missin g back35.py in zope.app.component.

2008-10-15 Thread Hermann Himmelbauer
Am Mittwoch 15 Oktober 2008 19:28:55 schrieb Christophe Combelles: > Hermann Himmelbauer a écrit : > > Am Mittwoch 15 Oktober 2008 16:59:24 schrieb Benji York: > >> On Wed, Oct 15, 2008 at 10:46 AM, Hermann Himmelbauer <[EMAIL PROTECTED]> wrote: > >>> Hi, &g

Re: [Zope3-Users] Buildout seems to be broken due to missing back35.py in zope.app.component.

2008-10-15 Thread Hermann Himmelbauer
Am Mittwoch 15 Oktober 2008 16:59:24 schrieb Benji York: > On Wed, Oct 15, 2008 at 10:46 AM, Hermann Himmelbauer <[EMAIL PROTECTED]> > wrote: > > Hi, > > It seems that buildout is broken: > > Are you referring to the Zope 3 trunk buildout? Well, Stephan Richter clea

Re: [Zope3-Users] Buildout seems to be broken due to missing back35.py in zope.app.component.

2008-10-15 Thread Hermann Himmelbauer
Am Mittwoch 15 Oktober 2008 16:46:06 schrieb Hermann Himmelbauer: > Hi, > It seems that buildout is broken: > > A "bin/buildout" fetched some new packages, especially: > zope.app.component-3.5.0 > > The previous version was: > zope.app.component-3.4.1 >

[Zope3-Users] Buildout seems to be broken due to missing back35.py in zope.app.component.

2008-10-15 Thread Hermann Himmelbauer
Hi, It seems that buildout is broken: A "bin/buildout" fetched some new packages, especially: zope.app.component-3.5.0 The previous version was: zope.app.component-3.4.1 The problem is, that a file, called "back35" is missing in zope.app.component-3.5.0 which is, however, imported/needed in sev

Re: [Zope3-Users] thoughts about z3c.form-package

2008-10-09 Thread Hermann Himmelbauer
Am Mittwoch 08 Oktober 2008 17:14:35 schrieb Tim Cook: > (Thanks Roger and Adam for your earlier replies.) > > On Wed, 2008-10-08 at 16:59 +0200, Hermann Himmelbauer wrote: > > Moreover, z3c.form is complex, but it isn't hard if one knows what to > > do/how to do - whic

Re: [Zope3-Users] thoughts about z3c.form-package

2008-10-09 Thread Hermann Himmelbauer
Am Donnerstag 09 Oktober 2008 04:24:25 schrieb garz: > thx for your replies! now i have new stuff to think about. :) > > > Can you give an example what you can't do with z3c.form? > i think z3c.form is in respect of what can be done with it general enough. > i can realize what i want to do with it

Re: [Zope3-Users] thoughts about z3c.form-package

2008-10-08 Thread Hermann Himmelbauer
Am Mittwoch 08 Oktober 2008 16:28:07 schrieb Roger Ineichen: > Hi Hermann > > > Betreff: Re: [Zope3-Users] thoughts about z3c.form-package > > [...] > > So, I think two solutions to that could be: > > > > - Improve the documentation (however, I'm unsure in what way, though). > > - Create a WIKI or

Re: [Zope3-Users] thoughts about z3c.form-package

2008-10-08 Thread Hermann Himmelbauer
Am Mittwoch 08 Oktober 2008 01:11:24 schrieb garz: > hey, > > while using z3c.form-package i reach its limits here and there. thats why i > started to think about how a more general implemention should look like. my > intention of writing this is that i want to know what you are thinking > about it

Re: [Zope3-Users] [Zope-dev] Problems with schema Date field - year is truncated

2008-08-28 Thread Hermann Himmelbauer
Am Donnerstag 28 August 2008 11:41:54 schrieb Markus Kemmerling: > Hi Hermann, > > The z3c.form.converter.CalendarDataConverter, on which the > DateDataConverter is based, explicitely sets the date format to > 'short'. Overriding the latter with a 'length' attribute set to > 'medium' will handle

Re: [Zope3-Users] z3c.form: Data Manager - getting value via dm.query() instead of dm.get()

2008-08-14 Thread Hermann Himmelbauer
> Hi Hermann >> So, it may happen, that not all fields are filled out, >> therefore key/value pairs may be missing. If that happens, >> the widget routine throws an error. >> If I manage to overcome this error (e.g. by replacing the >> get() through >> query() routine in z3c.form.widget), my form

Re: [Zope3-Users] z3c.form: Data Manager - getting value via dm.query() instead of dm.get()

2008-08-14 Thread Hermann Himmelbauer
> Hi Herman > >> Betreff: Re: AW: [Zope3-Users] z3c.form: Data Manager - >> getting value via dm.query() instead of dm.get() > > [...] > >> But I would nevertheless suggest to implement some kind of >> "switch" that decides if an error is raised or NOVALUE is >> returned in case a value is missing

Re: [Zope3-Users] z3c.form: Data Manager - getting value via dm.query() instead of dm.get()

2008-08-13 Thread Hermann Himmelbauer
> Hi Herman, Stephan > >> Betreff: [Zope3-Users] z3c.form: Data Manager - getting value >> via dm.query() instead of dm.get() >> >> Hi, >> I'm developing a z3c.form based form, which should store it's >> form values in the session. To accomplish that, the form >> needs to retrieve it's values from

[Zope3-Users] z3c.form: Data Manager - getting value via dm.query() instead of dm.get()

2008-08-13 Thread Hermann Himmelbauer
Hi, I'm developing a z3c.form based form, which should store it's form values in the session. To accomplish that, the form needs to retrieve it's values from the session. My idea was to simply store the form data in the button handler method into the session as a dictionary. z3c.form then offers t

[Zope3-Users] Software developer for a Zope3 project needed

2008-05-13 Thread Hermann Himmelbauer
Hi, We are currently looking out for a Zope3/Python developer for an interesting project lasting approx. 30 to 35 days. I can't give exact details yet, but the following profile should be met: - High Zope3 skills - the project is 100% based on Zope3 technology, moreover, the project may include

Re: [Zope3-Users] z3c.zalchemy - which version to use?

2008-05-08 Thread Hermann Himmelbauer
Am Mittwoch, 7. Mai 2008 17:43 schrieb Christian Theune: > On Wed, May 07, 2008 at 03:41:11PM +0200, Hermann Himmelbauer wrote: > > Hi, > > I'd like to know if / which SVN version/branch of z3c.zalchemy works with > > a current SQLAlchemy distribution. > &

[Zope3-Users] z3c.zalchemy - which version to use?

2008-05-07 Thread Hermann Himmelbauer
Hi, I'd like to know if / which SVN version/branch of z3c.zalchemy works with a current SQLAlchemy distribution. If none does, what about z3c.sqlalchemy? Best Regards, Hermann -- [EMAIL PROTECTED] GPG key ID: 299893C7 (on keyservers) FP: 0124 2584 8809 EF2A DBF9 4902 64B4 D16B 2998 93C7 _

Re: [Zope3-Users] "raise Redir(newurl)" not working - can someone confirm this?

2008-04-19 Thread Hermann Himmelbauer
Am Samstag, 19. April 2008 19:38 schrieb Hermann Himmelbauer: > Am Samstag, 19. April 2008 15:43 schrieb Jim Fulton: > > On Apr 19, 2008, at 6:20 AM, Hermann Himmelbauer wrote: > > > To confirm this, I'd like to know if this scenario is only happening > > > for me,

Re: [Zope3-Users] "raise Redir(newurl)" not working - can someone confirm this?

2008-04-19 Thread Hermann Himmelbauer
Am Samstag, 19. April 2008 15:43 schrieb Jim Fulton: > On Apr 19, 2008, at 6:20 AM, Hermann Himmelbauer wrote: > > To confirm this, I'd like to know if this scenario is only happening > > for me, > > so, can you please simply insert the above statement in some > > a

Re: AW: [Zope3-Users] "raise Redir(newurl)" not working - can someoneconfirm this?

2008-04-19 Thread Hermann Himmelbauer
Am Samstag, 19. April 2008 14:05 schrieb Roger Ineichen: > Hi Hermann > > > Betreff: [Zope3-Users] "raise Redir(newurl)" not working - > > can someoneconfirm this? > > > > Hi, > > In my application, namely for URL-Rewriting for session > > handling, I need to stop the current request and redirect t

[Zope3-Users] "raise Redir(newurl)" not working - can someone confirm this?

2008-04-19 Thread Hermann Himmelbauer
Hi, In my application, namely for URL-Rewriting for session handling, I need to stop the current request and redirect to another url (including the session key). For that reason, I issue the following statement: from zope.publisher.interfaces import Redirect raise Redirect('http://my.new.url')

Re: [Zope3-Users] Authentication without cookies

2008-04-15 Thread Hermann Himmelbauer
Am Montag, 14. April 2008 20:07 schrieb Jim Fulton: > All you need to do is to get non-cookie based sessions, and then you > can use the existing session-authentication machinery. > > Look at the client id framework in zope.session, > http://svn.zope.org/zope.session/trunk/src/zope/session/http.py?

Re: [Zope3-Users] Authentication without cookies

2008-04-15 Thread Hermann Himmelbauer
Am Montag, 14. April 2008 19:17 schrieb Jonathan: > - Original Message - > From: "Peter Bengtsson" <[EMAIL PROTECTED]> > To: "Hermann Himmelbauer" <[EMAIL PROTECTED]> > Cc: > Sent: Monday, April 14, 2008 12:55 PM > Subject: Re: [Zope3-Us

Re: [Zope3-Users] Authentication without cookies

2008-04-14 Thread Hermann Himmelbauer
Am Montag, 14. April 2008 18:55 schrieb Peter Bengtsson: > Slightly off-topic: What mobile browsers that support XHTML don't > support cookies these days? Don't need an accurate answer but I'm > curious about rough numbers. Well, I have a SonyEricsson K750i which seems not to support cookies. It d

[Zope3-Users] Authentication without cookies

2008-04-14 Thread Hermann Himmelbauer
Hi, I'm developing a Zope3-based application which is used on mobile phones. The problem here is that cookies don't always work with mobile browsers. Therefore it seems, the way to go is to put a session key in the URL. Therefore I need some authentication system that first tries to set a cookie

Re: [Zope3-Users] Re: [Zope-dev] Zope 3.4.0 candidate 1 Released

2008-03-28 Thread Hermann Himmelbauer
Am Donnerstag, 27. März 2008 18:26 schrieb Kurt Zitze: > if you want to raise the userbase of zope, the first and most obvious thing > to do is, get a forum running! mailing lists are bu*** and completly > out of date. it is max cumbersome to login into your email account to do a > post and so

[Zope3-Users] Skin and Cookie Path - Zope 3 bug?

2008-03-28 Thread Hermann Himmelbauer
Hi, In my Zope3-based site, I use the SessionCredentialsPlugin to extract my authentication information. This plugin also sets a cookie. Together with the cookie name, content and host, a path is stored. This path contains the skin, which I enter in my URL, e.g. for: http://localhost:8080/++ski

[Zope3-Users] I18N: Recursive Translations / translations of mappings - how?

2008-03-05 Thread Hermann Himmelbauer
Hi, I have the quite generic problem that I need to translate strings that contain strings which also should be translated, for instance: --- snip from zope.component import provideUtility from zope.i18n import translate from zope.i18n.simpletranslationdomain import SimpleTra

Re: [Zope3-Users] How to store objects with multiple owners in the ZODB

2008-02-28 Thread Hermann Himmelbauer
Am Sonntag, 27. Januar 2008 18:25 schrieb Stephan Richter: > On Tuesday 08 January 2008, Hermann Himmelbauer wrote: > > My question is: How would I store these documents in the ZODB? If I > > create a container object for each user and store the document there, how > > would t

[Zope3-Users] Efficiently retrieving objects from an index ordered after an object attribute.

2008-02-25 Thread Hermann Himmelbauer
Hi, I have a class looking similar to this: class person birthdate = None # Some date name = None # First name gender = None # Male/Femail Objects of this class are then added to a catalog, for which I defined an index (zc.catalog -> ValueIndex) for each attribute. What I want to do n

Re: [Zope3-Users] Cloning interfaces/interface fields - how?

2008-02-21 Thread Hermann Himmelbauer
Am Donnerstag, 21. Februar 2008 17:34 schrieb Marius Gedminas: > On Wed, Feb 20, 2008 at 01:12:18PM -0500, Stephan Richter wrote: > > On Wednesday 20 February 2008, Hermann Himmelbauer wrote: > > > Yes, I also use z3c.form, but my problem is that the field has the > >

Re: AW: AW: [Zope3-Users] z3c.form - howto ignore the context for singlewidgets in an Edit form?

2008-02-20 Thread Hermann Himmelbauer
Am Donnerstag, 21. Februar 2008 04:41 schrieb Stephan Richter: > On Monday 18 February 2008, Hermann Himmelbauer wrote: > > - Only widgets? > > - Combinations of schemas and widgets? > > - Also schemas without widgets (like an Email schema that inherits from a > &g

[Zope3-Users] z3c.form - how to set single default values from another object?

2008-02-20 Thread Hermann Himmelbauer
Hi, Hi, I have here an add form which is based on an interface like this: class IMyObj(Interface): value1 = TextLine() value2 = TextLine() In my add form, I need to display a default value for "value2". This default value is stored in another object, however, no default value should be giv

Re: [Zope3-Users] How do you develop in zope 3?

2008-02-19 Thread Hermann Himmelbauer
Am Dienstag, 19. Februar 2008 16:22 schrieb [EMAIL PROTECTED]: > Hello, * > > How do you develop in zope 3? > > *) Is it the way the experienced zope developers work? How do you set the > environment for a site or a package development? I personally do it the old fashioned way: I downloaded the ta

Re: [Zope3-Users] Cloning interfaces/interface fields - how?

2008-02-19 Thread Hermann Himmelbauer
Am Dienstag, 19. Februar 2008 20:13 schrieb Marius Gedminas: > On Tue, Feb 19, 2008 at 04:46:29PM +0100, Hermann Himmelbauer wrote: > > class SearchFrom(z3c.form.EditForm): > >fields = z3c.form.field.Fields(copy.deepcopy(IPerson).select('name')) > > Strike out

[Zope3-Users] Cloning interfaces/interface fields - how?

2008-02-19 Thread Hermann Himmelbauer
Hi, I'm over and over confronted with a simple pattern, where I need to clone interface field. For instance, I have the content object, which has an interface, e.g.: class IPerson(Interface): name = TextLine() address = TextLine() Then, I have for instance a search form, which consists of f

Re: AW: [Zope3-Users] eggsplosion again

2008-02-18 Thread Hermann Himmelbauer
Am Sonntag, 10. Februar 2008 15:09 schrieb Roger Ineichen: > Hi Christophe > > > Betreff: [Zope3-Users] eggsplosion again > > [...] > > > But I fear that in a near future we will need to start any > > interfaces.py with : > > import zope.schema > > import foo.schema > > import bar.schema > > (...)

Re: AW: AW: [Zope3-Users] z3c.form - howto ignore the context for singlewidgets in an Edit form?

2008-02-18 Thread Hermann Himmelbauer
Am Sonntag, 10. Februar 2008 19:39 schrieb Roger Ineichen: > Hi Christophe > > > Betreff: Re: AW: [Zope3-Users] z3c.form - howto ignore the > > context for singlewidgets in an Edit form? > > [...] > > > > class ISubscribeSchema(zope.interface.Interface): > > > """The subscription form.""" > > >

Re: AW: [Zope3-Users] How to check access on a view?

2008-02-18 Thread Hermann Himmelbauer
Am Sonntag, 17. Februar 2008 12:41 schrieb Roger Ineichen: > Hi Hermann > > > Betreff: Re: [Zope3-Users] How to check access on a view? > > [...] > > > > Hi, > > > For a simple menu, I need to check if the current principal has > > > permissions to access a view. I understand that I can use the > >

[Zope3-Users] How to check access on a view?

2008-02-16 Thread Hermann Himmelbauer
Hi, For a simple menu, I need to check if the current principal has permissions to access a view. I understand that I can use the canAccess()/canWrite() function on object attributes but how could I do this for views? Best Regards, Hermann -- [EMAIL PROTECTED] GPG key ID: 299893C7 (on keyserve

Re: [Zope3-Users] login/logout with z3c.pagelet?

2008-02-12 Thread Hermann Himmelbauer
> Hi, > > Are there any login/logout/redirect templates for z3c.pagelet? > > I could reuse the templates from zope.app.authentication, but they > obviously > contain some macros that need some registrations I don't have, such as > @@standard_macros. And my layout template does not contain any macro

Re: [Zope3-Users] z3c.form - howto ignore the context for single widgets in an Edit form?

2008-02-08 Thread Hermann Himmelbauer
Am Freitag, 8. Februar 2008 09:33 schrieb Christophe Combelles: > Hermann Himmelbauer a écrit : > > Am Freitag, 8. Februar 2008 00:48 schrieb Stephan Richter: > > Right, that seems to be a perfect solution. Btw., it seems that there are > > quite some generic widget/field-p

Re: [Zope3-Users] Re: Zope eggification - impressions

2008-02-08 Thread Hermann Himmelbauer
Am Freitag, 8. Februar 2008 10:10 schrieb Kai Diefenbach: > I've also started to dive into plain Zope 3 development (coming from > Plone) and I like it very much. But as you mentioned I also found it > somewhat hard to start. What I have found helpful so far is: Thanks for the links! > Code examp

Re: [Zope3-Users] z3c.form - howto ignore the context for single widgets in an Edit form?

2008-02-07 Thread Hermann Himmelbauer
Am Freitag, 8. Februar 2008 00:48 schrieb Stephan Richter: > On Thursday 07 February 2008, Christophe Combelles wrote: > > Maybe the best way to have a password validation would be to let the > > PasswordWidget display two password fields and check itself the values > > are the same? > > Bingo. :-)

Re: [Zope3-Users] z3c.form - howto ignore the context for single widgets in an Edit form?

2008-02-07 Thread Hermann Himmelbauer
Am Freitag, 8. Februar 2008 01:33 schrieb Christophe Combelles: > Stephan Richter a écrit : > > On Thursday 07 February 2008, Christophe Combelles wrote: > >> Maybe the best way to have a password validation would be to let the > >> PasswordWidget display two password fields and check itself the va

Re: [Zope3-Users] Re: Zope eggification - impressions

2008-02-07 Thread Hermann Himmelbauer
Am Donnerstag, 7. Februar 2008 17:36 schrieb Philipp von Weitershausen: > Hermann Himmelbauer wrote: > > At first, thanks to the newest Zope-3.4.0c1 release. I just installed it > > from the tarball and it seems to work. > > > > However, I'm still somehow techn

[Zope3-Users] z3c.form - howto ignore the context for single widgets in an Edit form?

2008-02-07 Thread Hermann Himmelbauer
Hi, I'm creating a simple user-administration, which requires the user to type in the password and a password confirmation. For that, I have an interface which contains the attributes "password" and "password_confirm". Of course, only the password is stored as an object attribute. When I now us

[Zope3-Users] Security Problem in z3c.layer/pagelet

2008-02-06 Thread Hermann Himmelbauer
Hi, During the development of my application I suddenly noticed that my context-objects had no security proxy around them, which is bad, as then data is open to everyone. After searching and fiddling around, I recognized that this happens when I use a layer/skin that inherits from z3c.layer.pag

Re: [Zope3-Users] Zope eggification - impressions

2008-02-05 Thread Hermann Himmelbauer
Am Mittwoch, 6. Februar 2008 18:24 schrieb Baiju M: > In fact, I started an effort to document this, but I want more help > from this group. I had announced two book projects to this list earlier. > The first one was a failure [1], but the second one I succeded with > help from you all [2]. I am

[Zope3-Users] Zope eggification - impressions

2008-02-05 Thread Hermann Himmelbauer
Hi, At first, thanks to the newest Zope-3.4.0c1 release. I just installed it from the tarball and it seems to work. However, I'm still somehow technically overwhelmed by installing Zope3 the egg-style way - maybe it's not that hard, but I can't really find a good entry point to that topic. It w

Re: [Zope3-Users] Zope translation status

2008-02-04 Thread Hermann Himmelbauer
Am Montag, 4. Februar 2008 22:51 schrieb Christophe Combelles: > Below is the translation status of Zope 3.4.0c1, > as generated by the i18nstats tool. > > Is there anyone willing to update the translation for his/her language > before 3.4.0 final is (soon) released? Maybe I could do so for german

[Zope3-Users] SessionCredentialsPlugin + z3c.pagelets/z3c.form

2008-02-04 Thread Hermann Himmelbauer
Hi, I'm currently trying to integrate the SessionCredentialsPlugin with z3c.pagelets / z3c.form. I currently set up a simple z3c.form-based login page and configured the loginfield/passwordfield to "form.widgets.login/password". Now I can login, but I still have some problems: 1) I'd like to b

Re: [Zope3-Users] Beginner: Reference to ZPT macros

2008-01-16 Thread Hermann Himmelbauer
Am Mittwoch, 16. Januar 2008 19:27 schrieb Achim Domma: > Hi, > > I have a simple view. Here is the entry in configure.zcml: > >for=".CMS.Page" >name="index.html" >class=".CMS.PageView" >permission="zope.Public" >template="index.pt" >menu="zmi_vie

Re: [Zope3-Users] how to model a 1-to-1 relation

2008-01-11 Thread Hermann Himmelbauer
Am Donnerstag, 10. Januar 2008 23:00 schrieb john saponara: > I want to allow the user to create car and driver objects in a > limoService container. Car objects will stand alone, but each driver > object should contain a car object by reference (not by value) and the > driver add form should allo

[Zope3-Users] How to store objects with multiple owners in the ZODB

2008-01-08 Thread Hermann Himmelbauer
Hi, I have the following scenario here (somehow similar to hard links on a UNIX system): - Users should be able to create documents (then they are owners) - Users may grant ownership of their document to other users - Users may abandon their document (no owner) - Documents, who have no owner, are

[Zope3-Users] Building a viewlet-based menu

2008-01-04 Thread Hermann Himmelbauer
Hi, I'm currently trying to build a viewlet-based menu. As any common menu, it should consist of entries, which link in my case to certain object views. If such a link is clicked, the menu entry should change (no link) to denote that the entry is selected. Therefore I built a base class that lo

Re: [Zope3-Users] How to persist an attribute of list type

2007-12-02 Thread Hermann Himmelbauer
Am Freitag, 30. November 2007 19:34 schrieb Yuan HOng: > Hi, > > It seems that I can not get list attribute of an persistent object > changed. I have the following class, which has a list as one of its > attributes: > > class Cart(Persistent): > items = [] > amount = 0 Hehe, I had the same

[Zope3-Users] How to close a ZODB connection and reopen it for testing?

2007-11-19 Thread Hermann Himmelbauer
Hi, I am currently writing a doctest for one of my persistent classes. It's purpose is to check, if object modifications, e.g. through methods, are really persistent, however, my objects are magically remembered, therefore I cannot properly test them. My doctest looks like this: >>> from ZODB

Re: Zope 3 w/ SQLAlchemy 0.4 (was Re: [Zope3-Users] Eggs and classic instance homes, again...)

2007-11-09 Thread Hermann Himmelbauer
Am Freitag, 9. November 2007 18:44 schrieb Jeff Shell: > On Nov 9, 2007 12:04 AM, Hermann Himmelbauer <[EMAIL PROTECTED]> wrote: > > Am Freitag, 9. November 2007 01:31 schrieb Jeff Shell: > > > - zope.component 3.4.0 (or anything built into the zope 3.4 > >

Re: [Zope3-Users] Eggs and classic instance homes, again... (was Re: Eggs, workingenv.py, and 'classic' instance homes)

2007-11-08 Thread Hermann Himmelbauer
Am Freitag, 9. November 2007 01:31 schrieb Jeff Shell: > Oops. Forgot to send this to the list as well as Stephan. Goddamn Gmail. > > On Nov 8, 2007 8:28 AM, Stephan Richter <[EMAIL PROTECTED]> wrote: > > Hi Jeff, > > > - zope.component 3.4.0 (or anything built into the zope 3.4 tarball) >

[Zope3-Users] Interfaces with circular references

2007-09-21 Thread Hermann Himmelbauer
Hi, Does someone know how to create interfaces with circular references? E.g.: class IHusband(Interface): wife = Object(schema=IWife) class IWife(Interface): husband = Object(schema=IHusband) What's the suggested solution to this problem? Perhaps I should modify the classes after they ar

[Zope3-Users] How to best include Zope3-based code in Zope3 unrelated Python projects?

2007-09-21 Thread Hermann Himmelbauer
Hi, I have the problem that I cannot include parts of my Zope3 project in external, Zope3-unrelated projects due to import errors. For instance, I currently build a LaTeX converter that automatically converts SQL-Alchemy table definitions into nicely formatted LaTeX that I can then include in m

Re: [Zope3-Users] Implementing a DropdownWidget for a country-code vocabulary

2007-09-17 Thread Hermann Himmelbauer
Am Samstag, 15. September 2007 18:08 schrieb Jesper Petersen: > Hello!I'm trying to implement a DropdownWidget for my country list. In my > app i'd like to have a dropdown menu where a user can choose a country (for > my main content object, a job). My vocabulary is created from a list of > strings

Re: [Zope3-Users] zalchemy with sqlalchemy 0.4 support?

2007-09-10 Thread Hermann Himmelbauer
Am Sonntag, 9. September 2007 09:55 schrieb Christian Theune: > Hi, > > Am Samstag, den 08.09.2007, 20:46 +0200 schrieb Peter Piehler: > > Does anybody know if there is a zalchemy version, which supports > > sqlalchemy 0.4? > > There isn't, right now. 0.4 introduced some incompatibilities. > > > At

[Zope3-Users] PAU / credentials / authentication

2007-09-05 Thread Hermann Himmelbauer
Hi, After thoroughly studying Philipp's book and the PAU-doctests, I unfortunately still have no clue how to do my authentication. My (simple) scenario is the following: - I wrote a Zope package that can be added as a site - I have one Zope instance with several of these sites - Users should aut

Re: [Zope3-Users] z3c.form / TextLine-Schema in List-Schema

2007-09-03 Thread Hermann Himmelbauer
Am Sonntag, 2. September 2007 18:26 schrieb Markus Leist: > Hi list, > > z3c.form has a very generic, well approach - but at the moment it's to > complicated to me. > > I have an interface defined like: > > 100 osList = List ( > 101 title = _("operating systems"), > 103 va

Re: [Zope3-Users] Creating edit form with z3c.form

2007-08-20 Thread Hermann Himmelbauer
Am Montag, 20. August 2007 12:09 schrieb Florian Lindner: > Am Sonntag, 19. August 2007 schrieb Hermann Himmelbauer: > > Am Samstag, 18. August 2007 12:53 schrieb Florian Lindner: > > Hmmm, perhaps the browser request is not marked with the IFormLayer > > layer? (Hence you nee

Re: [Zope3-Users] Creating edit form with z3c.form

2007-08-18 Thread Hermann Himmelbauer
Am Samstag, 18. August 2007 12:53 schrieb Florian Lindner: > Hello, > I try to create an edit form with z3c.form but it gives me an system error > only: > > File "/home/florian/Desktop/zope/lib/python/z3c/form/form.py", line 120, > in updateWidgets > self.widgets = zope.component.getMultiAdap

Re: [Zope3-Users] z3c.form: Howto include validation errors into a custom pagetemplate?

2007-08-14 Thread Hermann Himmelbauer
Am Dienstag, 14. August 2007 12:45 schrieb Peter Piehler: > Hello, > > i have a spreadsheet like z3c.formdemo spreadsheet. > I copy and paste > tal:condition="view/widgets/errors" > metal:define-macro="errors"> > > > : >

Re: [Zope3-Users] z3c.form - how to raise/create an error in an action?

2007-08-13 Thread Hermann Himmelbauer
Am Montag, 13. August 2007 19:42 schrieb Stephan Richter: > On Monday 13 August 2007 12:02, Hermann Himmelbauer wrote: > > I have a case where an error may occur in the form-action method > > (z3c.form, not formlib!), e.g. when data is not found in my database. I'd > >

[Zope3-Users] z3c.form - how to raise/create an error in an action?

2007-08-13 Thread Hermann Himmelbauer
Hi, I have a case where an error may occur in the form-action method (z3c.form, not formlib!), e.g. when data is not found in my database. I'd then like to output this error, similar when a widget error occurs. Moreover there are two simple cases: 1) Errors that are related to a widget (hence t

Re: [Zope3-Users] Invariants and forms

2007-08-13 Thread Hermann Himmelbauer
Am Montag, 13. August 2007 12:01 schrieb Darryl Cousins: > Hi, > > This was answered recently me thinks. > > http://mail.zope.org/pipermail/zope3-users/2007-August/006648.html I think this covers a z3c.form-related issue, but not formlib... Best Regards, Hermann -- [EMAIL PROTECTED] GPG key ID:

Re: [Zope3-Users] Re: Strange ZODB error - Solved: Zalchemy bug

2007-08-13 Thread Hermann Himmelbauer
Am Montag, 13. August 2007 08:10 schrieb Christian Zagrodnick: > On 2007-08-09 17:21:57 +0200, Christian Zagrodnick > > <[EMAIL PROTECTED]> said: > > On 2007-08-09 16:27:23 +0200, Hermann Himmelbauer > > > > <[EMAIL PROTECTED]> said: > >> Am

Re: [Zope3-Users] Problems importing zalchemy

2007-08-10 Thread Hermann Himmelbauer
Am Freitag, 10. August 2007 08:28 schrieb Christian Theune: > Hey, > > Am Freitag, den 27.07.2007, 11:18 +1000 schrieb Catriona Johnson: > > Hello > > > > I am a novice zope 3 user and would appreciate any help on this. > > > > I am trying to follow a few examples using zalchemy but am unable to >

Re: [Zope3-Users] Using zope.formlib for a search form

2007-08-09 Thread Hermann Himmelbauer
Am Freitag, 10. August 2007 04:14 schrieb Andrew Groom: > Hi All, > > I've been battling with formlib for the last three days now and, while Uh oh, sorry, "formlib". My example was based on z3c.form. Anyway, I would recommend you to have a decent look at this library, as I struggled a lot with

Re: [Zope3-Users] Using zope.formlib for a search form

2007-08-09 Thread Hermann Himmelbauer
Am Freitag, 10. August 2007 04:14 schrieb Andrew Groom: > Hi All, > > I've been battling with formlib for the last three days now and, while > I've learnt a lot, it's nearly driven me crazy. I'm trying to use it to > create simple search form, i.e., a form that does input validation, > remembers th

Re: [Zope3-Users] z3c.form: How to hide a button/define action without a button?

2007-08-09 Thread Hermann Himmelbauer
Am Donnerstag, 9. August 2007 04:08 schrieb Stephan Richter: > On Monday 06 August 2007 10:41, Hermann Himmelbauer wrote: > > Is there a way simple way to accomplish this? Perhaps via a "hidden=True" > >   attribute in the buttonAndHandler decorator method? > > I wou

Re: [Zope3-Users] Strange ZODB error - Solved: Zalchemy bug

2007-08-09 Thread Hermann Himmelbauer
Am Donnerstag, 9. August 2007 15:44 schrieb Hermann Himmelbauer: > Hi, > After updating some z3c packages and changing some of my code, I receive a > very strange traceback from Zope3: Ah, after fiddling around I found out that the "svn update" of the zalchemy package resulte

[Zope3-Users] Strange ZODB error

2007-08-09 Thread Hermann Himmelbauer
Hi, After updating some z3c packages and changing some of my code, I receive a very strange traceback from Zope3: -- Traceback (most recent call last): File "/local/home/dusty/Zope-3.4.0b1/lib/python/zope/publisher/publish.py", line 138, in publish publication.afterCall(req

Re: [Zope3-Users] z3c.form: Integer-based fields incorrectly validated

2007-08-08 Thread Hermann Himmelbauer
Am Mittwoch, 8. August 2007 05:45 schrieb Stephan Richter: > On Wednesday 01 August 2007 13:15, Hermann Himmelbauer wrote: > > In one of my forms, one field is defined like that: > > "The entered value is not a valid integer literal." > > > > Interestingly, if

Re: [Zope3-Users] How to access "request" variable from vocabulary

2007-08-07 Thread Hermann Himmelbauer
Am Montag, 6. August 2007 19:08 schrieb Benji York: > Adam Groszer wrote: > > I'm using something like this: > > > > def getCurrentRequest(): > > return getInteraction().participations[0] > > It is, of course, better if you can structure your app so you don't have > to pull the request "out of

[Zope3-Users] How to access "request" variable from vocabulary

2007-08-06 Thread Hermann Himmelbauer
Hi, I have a simple function that is registered a vocabulary for a Choice-widget. My problem is that the vocabulary should access the session, which seems to be only possible if I somehow get the "request" variable, which is available in a view. (A common way to retrieve the session seems to be

[Zope3-Users] z3c.form: How to hide a button/define action without a button?

2007-08-06 Thread Hermann Himmelbauer
Hi, I have form that has two actions, one for searching data, one for storing parts of this data into the session. The idea is to have some input fields and a search button. If data is found, a list of links is displayed. If the user clicks on a link, the other action of the form should be trig

Re: [Zope3-Users] Rendering subobjects in pages

2007-08-06 Thread Hermann Himmelbauer
Am Montag, 6. August 2007 14:21 schrieb Greg Baker: > How can I specify a template to render a sub-object within one of my > content objects? > > For example, pretend I have a Contact object which contains a Person > object. I am rendering the Contact object through a page template. > > class Conta

Re: [Zope3-Users] Is a view persistent?

2007-08-06 Thread Hermann Himmelbauer
Am Donnerstag, 2. August 2007 13:37 schrieb Fred Drake: > On 8/2/07, Hermann Himmelbauer <[EMAIL PROTECTED]> wrote: > > mylist = [] > > > > @button.buttonAndHandler(_(u'Suchen'), name='suchen') > > def handle_suchen(self, action): &g

[Zope3-Users] Is a view persistent?

2007-08-02 Thread Hermann Himmelbauer
Hi, I have a simple z3c.form - based view for a persistent object. My view has a class attribute, which is set during an action, e.g.: class ViewFoo(form.Form): mylist = [] @button.buttonAndHandler(_(u'Suchen'), name='suchen') def handle_suchen(self, action): self.m

Re: [Zope3-Users] z3c.form: Integer-based fields incorrectly validated

2007-08-02 Thread Hermann Himmelbauer
Am Mittwoch, 1. August 2007 20:37 schrieb Markus Leist: > Hi, > > do you have a > > from zope.schema.fieldproperty import FieldProperty > class Foo: > implements(IFoo) > foobarid = FieldProperty( IFoo['foobarid']) I do have an object that implements my IFoo interface, however, I don't

[Zope3-Users] z3c.form: Integer-based fields incorrectly validated

2007-08-01 Thread Hermann Himmelbauer
Hi, In one of my forms, one field is defined like that: foobarid = Int( title=u'ID', description=u'ID of Foobar', required=False) When I add this field in a z3c.form based form, e.g.: fields = field.Fields(IFoo['foobarid']) Then the validation of the field fails, e.g

Re: [Zope3-Users] Building an admin interface

2007-07-16 Thread Hermann Himmelbauer
Am Montag, 16. Juli 2007 22:44 schrieb Stephan Richter: > On Monday 16 July 2007 15:58, Benji York wrote: > > This reminds me of something I've been curious about but haven't had > > time to research lately.  What are the differences between pagelets and > > viewlets and their various strengths/wea

[Zope3-Users] Re: Skin based on IPageletBrowserLayer

2007-07-13 Thread Hermann Himmelbauer
Am Freitag, 13. Juli 2007 16:33 schrieb Stephan Richter: > On Thursday 05 July 2007 04:54, Hermann Himmelbauer wrote: > > My problem is that when requests are marked with IPageletBrowserLayer, > > there are no error messages, no 404's, nothing. In case of a zope error, >

[Zope3-Users] Re: Introducing z3c.form - widget snippets

2007-07-13 Thread Hermann Himmelbauer
Am Freitag, 13. Juli 2007 16:08 schrieb Stephan Richter: > On Wednesday 11 July 2007 12:14, Hermann Himmelbauer wrote: > > Please tell me what you think, if you like it, perhaps it could be > > included in z3c.form? > > I have the same question as Roger. Hmmm, I mis

[Zope3-Users] Introducing z3c.form - widget snippets

2007-07-11 Thread Hermann Himmelbauer
Hi, I extended the z3c.form package a little bit by form snippets, which eases the development of custom form templates. Widget Snippets are a way to automatically surround widget code by custom HTML code, e.g. by error handling, a label etc. Snippets can be accessed over a sub-object of the wi

  1   2   >