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
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,
>
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'Ä
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
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
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
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
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
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
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
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
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
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
> 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
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
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
> 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
> $ 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
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
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 ->
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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.
> >
> >
> &
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
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
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
> __
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
some low resolution screen shot added
<>
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users
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
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
=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.
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
44 matches
Mail list logo