Re: [Zope3-Users] z3c.form, german umlauts on buttons - small patch, please review

2007-09-11 Thread Andreas Reuleaux
This small patch fixes the problem for me, please review: [EMAIL PROTECTED](~/tmp/z3c.form/src/z3c/form)$ svn diff Index: util.py === --- util.py (Revision 79574) +++ util.py (Arbeitskopie) @@ -30,7 +30,7 @@ def createId(na

Re: [Zope3-Users] z3c.form, german umlauts on buttons

2007-09-09 Thread Andreas Reuleaux
On Sun, Sep 09, 2007 at 11:20:34PM +0200, Roger Ineichen wrote: > Hi Andreas > > > Betreff: [Zope3-Users] z3c.form, german umlauts on buttons > > > > [...] > > > My app is german only and if I was to introduce i18n I would still > > make german the primary language and English the second, >

[Zope3-Users] z3c.form, german umlauts on buttons

2007-09-08 Thread Andreas Reuleaux
It appears to me that I can't have german umlauts (or any other non-ascii chars for that matter) on buttons, for example ("Ändern" - with A umlaut - ist german for "Change"): # -*- coding: utf-8 -*- ... class MyDisplayForm(form.Form): ... @button.buttonAndHandler(u'Ä

Re: [Zope3-Users] z3c.form, style-attribute of TextWidget, TextAreaWidget

2007-09-05 Thread Andreas Reuleaux
On Tue, Sep 04, 2007 at 02:50:05PM -0400, Stephan Richter wrote: > Note that we usually solve the problem you are heaving by specifying the input > element's id as the CSS selector: > > input#form-widgets-firstName { > width: 105px; > } got it > > Is there any particular reason why this style a

Re: [Zope3-Users] z3c.form, checkboxes for Bool fields - thanks a lot, now: z3c.form egg from svn

2007-09-05 Thread Andreas Reuleaux
Thanks again, works like a charm, i. e. both: * your tree / buildout config with link to z3c.form from svn * and the new checkbox.SingleCheckBoxFieldWidget -Andreas On Tue, Sep 04, 2007 at 10:40:32PM -0400, Stephan Richter wrote: > On Tuesday 04 September 2007 21:13, Andreas Reuleaux wr

Re: [Zope3-Users] z3c.form, checkboxes for Bool fields - thanks a lot, now: z3c.form egg from svn

2007-09-04 Thread Andreas Reuleaux
On Tue, Sep 04, 2007 at 06:35:29PM -0400, Stephan Richter wrote: > On Saturday 01 September 2007 19:36, Andreas Reuleaux wrote: > > Is there a way to have only one checkbox generated? - like this: > > > >    [ ] Invitation > > > > That's what I want. > &g

Re: [Zope3-Users] Still trying am to build an EditForm

2007-09-03 Thread Andreas Reuleaux
I should add that in order to do something useful you should log in with mngr, password: mngr - or adjust app.zcml. -Andreas ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users

Re: [Zope3-Users] Still trying am to build an EditForm

2007-09-02 Thread Andreas Reuleaux
Hi Florian, I have been playing with your example, try this: download http://user.cs.tu-berlin.de/~reuleaux/blogs.tgz unpack and cd into blogs edit buildout.cfg as you see fit: especially the eggs-directory should be changed, right now: /home/reuleaux/z3eggs $ python boots

Re: [Zope3-Users] z3c.form, checkboxes for Bool fields

2007-09-01 Thread Andreas Reuleaux
Hi Roger, thanks for your fast reply. However: if I change invitation to be required, invitation = Bool( title=u'Invitation', description=u'Invitation?', required=True ) I still get two checkboxes for invitation: [ ] yes [ ] no Is there a way to ha

[Zope3-Users] z3c.form, checkboxes for Bool fields

2007-09-01 Thread Andreas Reuleaux
In my interface I have Bool fields, say e. g. for invitation class IAdr(Interface) ... invitation = Bool( title=u'Invitation', description=u'Invitation?', required=False ) ... Now when rendering the following edit-form class AdrEdi

[Zope3-Users] z3c.form, style-attribute of TextWidget, TextAreaWidget

2007-08-30 Thread Andreas Reuleaux
Given a simple interface IPerson with some TextLine (Text) fields class IPerson(Interface): """a person""" nachname = TextLine( title=u"Nachname", ... ) vorname = TextLine( title=u"Vorname", ... ) anrede = Tex

Re: [Zope3-Users] How do I get the value of security proxied attributes from a view template

2007-08-24 Thread Andreas Reuleaux
On Fri, Aug 24, 2007 at 09:45:57PM +0800, Yuan HOng wrote: > Hi, list, > > I am just trying to migrate a existing application from Zope2 to > Zope3, and had to feel around for my ways to do things correctly. > > I have following view.pt snippet: > > Item Name > specification: > Price: > > The

[Zope3-Users] Cache values must be persistent objects. - ZODB3-3.9.0_dev_r77011-py2.4-linux-i686.egg

2007-08-09 Thread Andreas Reuleaux
The example below (contacts) works fine for me with a recent svn checkout of the 3.4 branch, i e svn co svn://svn.zope.org/repos/main/Zope3/branches/3.4 z3 but I get errors with a recent eggs installation via zc.buildout (when trying to edit and save a contact, see below) ... File

Re: [Zope3-Users] z3c.formdemo, problems with lxml

2007-08-09 Thread Andreas Reuleaux
> On Debian this may work: > > apt-get libxml2-dev libxslt-dev > > Hope that helps. > Darryl yes, that did it, thanks. -Andreas ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users

[Zope3-Users] z3c.formdemo, problems with lxml

2007-08-09 Thread Andreas Reuleaux
I am just following the very simple instructions to install z3c.formdemo from zc.buildout $ svn co svn://svn.zope.org/repos/main/z3c.formdemo/trunk formdemo $ cd formdemo $ python bootstrap.py $ ./bin/buildout -v ...lot's of eggs are downloaded, but when it comes to the lxml egg, I get tons of

Re: [Zope3-Users] zc.buildout beginner's question

2007-08-08 Thread Andreas Reuleaux
Never mind: I put some Makefiles with recursive clean targets in mydemo. Also I have found z3.log in parts/instance. Thanks, Andreas ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users

Re: [Zope3-Users] zc.buildout beginner's question

2007-08-07 Thread Andreas Reuleaux
> I found Benji's blogs a good entry point: Baiju's blog i. e. - well, it's getting late ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users

Re: [Zope3-Users] zc.buildout beginner's question

2007-08-07 Thread Andreas Reuleaux
> $ diff -f mydemo-skeleton mydemo1 > should only reflect my change: "Hello" -> "Hello from Rx" my typo: should read $ diff -r ... i. e. recursive diff ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users

[Zope3-Users] zc.buildout beginner's question

2007-08-07 Thread Andreas Reuleaux
I am aware that a lot of fancy stuff can be done with zc.buildout, however I am just starting... I found Benji's blogs a good entry point: [1] http://baijum81.livejournal.com/19795.html [2] http://baijum81.livejournal.com/20551.html I got z3hello running - hey, that was not to hard - and decided

Re: [Zope3-Users] Guidance on accessing MySQL db.

2007-03-30 Thread Andreas Reuleaux
Admittedly there has not been much documentation of connecting Zope 3 to a relational database like MySQL. - Personally I don't have much experience either. Some hints anyway: The preferred way is to use an ORM * either SQLObject -> then use sqlos http://codespeak.net/z3/sqlos/ * or sqlalchemy ->

Re: [Zope3-Users] zope 3 book - is it still meaningful ?

2006-08-25 Thread Andreas Reuleaux
Yes, it is still a very valuable text, Stephan just has plenty of other things to do and hasn't found the time to update the book (he can tell you better if and when there will be an update). But this is a general problem of computer texts: It takes some effort to keep them up to date. Note that t

Re: [Zope3-Users] Zope 3 SSL

2006-08-23 Thread Andreas Reuleaux
I have Zope 3 running behind Apache+SSL but according to a discussion on this list in June Zope 3 itself should be capable of understanding SSL if pyopenssl is installed (haven't tried it myself), have a look at the threads starting at http://mail.zope.org/pipermail/zope3-users/2006-June/003725.h

Re: [Zope3-Users] nextURL not working as expected

2006-08-07 Thread Andreas Reuleaux
I am using nextURL() in a similar fashion (only using create(), no add part) and it works fine for me, i. e. I am redirected as expected, see the code snippet below. I guess with the line self.context[data["title"]] = self.link your are trying to add the object. - This is just my guess: You

[Zope3-Users] state of pure Zope 3 CMSs?

2006-08-05 Thread Andreas Reuleaux
I wonder what is that state of pure Zope 3 CMSs? - Cubic and z3ecm come to mind, see below. I am aware that sytems like *Plone* offer everything you can imagine for serious CMS development. But being based on Zope 2 (and just slowly moving towards Zope 3 by means of Five) they also carry a lot of

Re: [Zope3-Users] Hook into edit-form post

2006-07-09 Thread Andreas Reuleaux
As Marco said, use formlib, e. g. like this and in myview.py from ... import ISidPage from zope.formlib import form class EditView(form.EditForm): form_fields=form.Fields(ISidPage) # here you can redefine some of the # methods/actions/etc. of form.Editform (personall

Re: [Zope3-Users] Trouble with browser sign on

2006-06-22 Thread Andreas Reuleaux
Just try again, I have no problems with encrypted passwords (I am however using SHA-passwords, i. e. option 3). As the result of your makeinstance call with say with instance directory foo you get a principals file foo/etc/principals.zcml There you will find an entry matching your username/passwor

Re: [Zope3-Users] SFTP , SSL

2006-06-16 Thread Andreas Reuleaux
I just read Davids answer - interesting - and I am a bit confused: So HTTPS seems to be working now, supported and enabled? - Is this the official status for SSL now? Or is it just working on Mac OS X, is pyopenssl officially required - if so, then I think this should be stated somewhere in the re

Re: [Zope3-Users] SFTP , SSL

2006-06-16 Thread Andreas Reuleaux
SSL (and therefore HTTPS, SFTP) is supporterd but not yet enabled, from the 3.2.0 release notes (http://www.zope.org/Wikis/DevSite/Projects/ComponentArchitecture/Zope320): Most Important Changes Since 3.1 * The ZServer? has been replaced with the Twisted server. The Twisted server suppor

[Zope3-Users] actions in formlib, redirects

2006-06-06 Thread Andreas Reuleaux
I have got a formlib edit form, that I am populating with actions now (note that by inheriting from EditForm there is one action already defined): # some imports omitted here class EditView(form.EditForm): form_fields = form.Fields(IAdr) template = namedtemplate.NamedTemplate('sa

Re: [Zope3-Users] binding z3 to localhost only (security) / xmlrpc via https

2006-05-06 Thread Andreas Reuleaux
Thanks a lot, that was it. -Andreas On Sat, May 06, 2006 at 11:40:59PM +0200, Igor Stroh wrote: > ... > Adjust the section of your zope.conf accordigly: > > type HTTP > address 127.0.0.1:8080 > > > Cheers, > Igor > ... ___ Zope3-users mailing l

Re: [Zope3-Users] binding z3 to localhost only (security) / xmlrpc via https

2006-05-06 Thread Andreas Reuleaux
Please ignore the second question, my fault: xmlrpc works fine via apache+ssl, just had to leave out the :8080 URL='https://user:[EMAIL PROTECTED]/somefolder' On Sat, May 06, 2006 at 11:09:50PM +0200, Andreas Reuleaux wrote: > ... > A related but different question: I

[Zope3-Users] binding z3 to localhost only (security) / xmlrpc via https

2006-05-06 Thread Andreas Reuleaux
If have successfully setup zope3 behind a ssl-enabled apache2 (apache and zope3 both running on the same host mousehouse) using ProxyPass and ProxyPassReverse directives as described in Philipps book in chapter 17, example 17.3.1, i. e. I can reach zope with https://mousehouse/... Now I want to bi

Re: [Zope3-Users] ZODB - root and transaction

2006-04-05 Thread Andreas Reuleaux
I can't really point at your problem, sorry. But I have a similar script to fill my ZODB which works for me. You might want to try to experiment with this / modify your script ... #!/usr/bin/env python2.4 # -*- coding: utf-8 -*- from ZODB import FileStorage, DB import transaction

Re: [Zope3-Users] BrowserResponse, write()

2005-09-16 Thread Andreas Reuleaux
I just got this answer from Jim by private e-mail - which is my fault, as I had e-mailed him privately before: On Fri, Sep 16, 2005 at 12:53:42PM -0400, Jim Fulton wrote: > ... > Was there a reason to use response.write rather than > returning the pdf as a string? > > Jim > ... First of all: Yes

Re: [Zope3-Users] BrowserResponse, write()

2005-09-16 Thread Andreas Reuleaux
On Fri, Sep 16, 2005 at 11:58:41AM -0400, Jim Fulton wrote: > Stephan Richter wrote: > >On Friday 16 September 2005 11:39, Andreas Reuleaux wrote: > > > >>What else should be used now? - Not sure if this has been discussed > >>before. > > > > > &

[Zope3-Users] BrowserResponse, write()

2005-09-16 Thread Andreas Reuleaux
I just found out that the following code (from Philipps book, chapter 12) doesn't work any more pdf = ... response = self.request.response response.write(pdf.data) AttributeError: 'BrowserResponse' object has no attribute 'write' What else should be used now? - Not sure if this has bee

Re: [Zope3-Users] practical example of migrating from services to utilities

2005-08-08 Thread Andreas Reuleaux
On Mon, Aug 08, 2005 at 01:57:21PM -0600, Duncan McGreggor wrote: > Hey all, > > I just wanted to check to make sure I was doing this right, and if so, > provide a resource that would turn up on subsequent googling. This > example involves the getting menus items with the getService/getUtility

Re: [Zope3-Users] missing_value for Text fields

2005-06-29 Thread Andreas Reuleaux
Submitted now as Issue 421, missing_values for Text fields don't work - Andreas On Wed, Jun 29, 2005 at 09:32:53AM -0400, Fred Drake wrote: > You need to be logged in to successfully submit a bug report. > > > -Fred > > -- > Fred L. Drake, Jr. > Zope Corporation > __

Re: [Zope3-Users] missing_value for Text fields

2005-06-29 Thread Andreas Reuleaux
I have submitted an issue. After submitting I was asked to log in - I had to register (as user reuleaux) first at http://www.zope.org/portal_form/join_form (I am new here) However I don't see my issue in the collector now. Maybe I have to submit it again now that I am registered - I am not sure

Re: [Zope3-Users] missing_value for Text fields

2005-06-29 Thread Andreas Reuleaux
some low resolution screen shot added <> ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users

[Zope3-Users] missing_value for Text fields

2005-06-29 Thread Andreas Reuleaux
missing_values for Text fields don't work for me (complete example show below): The autogenerated add form is usable for me only * if I either make boom a TextLine instead of Text boom=TextLine( title=u'Boom', required=False, missing_value=u'') * or if I dro

[Zope3-Users] utf-8/latin-1 content in page templates

2005-06-15 Thread Andreas Reuleaux
I would like to use utf-8 (latin-1) content in page templates like this Hier hätte ich gerne Umlaute etc.: Österreich, daß... ("here I would like to have umlauts etc.") I. e. I would like to have default strings with German umlauts. - I was surprised this was not possible in the first place

Re: [Zope3-Users] object widgets, persistency

2005-05-01 Thread Andreas Reuleaux
=Persistent.__getstate__(self) s['mother']=removeSecurityProxy(self.mother) s['father']=removeSecurityProxy(self.father) return s On Mon, Apr 25, 2005 at 11:42:25PM +0200, Andreas Reuleaux wrote: > ... > Then I tried to make Family persistent, i. e.

[Zope3-Users] object widgets, persistency

2005-04-25 Thread Andreas Reuleaux
Roger Ineichen was so kind to answer my questions about object widgets (I had contacted him privately as I was not on this list yet.) Basically I tried to get his mother/father/family example at /Zope3/src/zope/app/form/browser/objectwidget.txt to work. - Besides mother and father I added two simp