[Zope3-Users] Re: Contract Work
David Johnson wrote: Hello. I am heading the engineering for JSA Technologies in the United States. We are building an application in Zope 3 that will link colleges and universities around the world on a financial network. We are looking for Zope 3 contractors to help us complete the project. The project may include, hardware, software, and lots of networking. We are looking to start ASAP, and the project will last 1-6 months. We would expect you to work from your own location. There is no travel required or special hours. We may hire some people for a longer time. Please contact me directly if you are interested. If you have any specialties, please let me know. Hi David, I do Zope 3 contract work on a regular basis, so I'd be interested in this. Can you share some more details about the project? What kind of work do you need to be done? Best regards Philipp -- http://worldcookery.com -- Professional Zope documentation and training ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] z3c.form: How to hide a button/define action without a button?
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 would override the ``updateActions()`` method in the form as follows: def updateActions(self): super(MyForm, self).updateActions() self.actions['store'].addClass('hidden') Then have a style: input.hidden { display: None; } Regards, Stephan -- Stephan Richter CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student) Web2k - Web Software Design, Development and Training ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
[Zope3-Users] a question about zope.app.security.principallogging.PrincipalLogging
Hi, zope.app.security.principallogging.PrincipalLogging looks like: class PrincipalLogging(object): implements(ILoggingInfo) def __init__(self, principal): self.principal = principal def getLogMessage(self): return str(self.principal.id) It requires that self.principal.id cannot be a UNICODE string (cannot contain non-ascii characters). Is this intentional??? With regards, -Shailesh ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] zc.buildout beginner's question
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] z3c.form: Integer-based fields incorrectly validated
On Wednesday 08 August 2007 05:26, Hermann Himmelbauer wrote: > Now the same validation problems occur for this input field. > Maybe the reason for this is my Zope3 version? I still use Zope-3.3.1. The > z3c packages are all up to date, I use the latest SVN versions. Zope 3.3.1 is the problem. The z3c.form package requires the latest zope.i18n package. That said, I have written a ``compatibility`` module that installs the latest number formatter for you. See ``compatibility.py``. Can you ensure that the compatibility formatter is installed for you? Add a pdb trace at line 108 in compatibility.py and see whether it ever gets there when importing the package. Regards, Stephan -- Stephan Richter CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student) Web2k - Web Software Design, Development and Training ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
[Zope3-Users] Re: Howto add roles to my principal
Christian Klinger schrieb: Hi, i try to fetch users from an rdbms to authenticate them in zope3. I have created a custom AuthenticatorPlugin which reads the user from an sqltable and return the PrincipalInfo when username password is valid. This works so far. Now the Problem: I have role information in my rdbms table and i want that my principals get these roles. But i don´t know how can i assign these roles to my principal. Maybe something like that: return PrincipalInfo(self.prefix+login, login, login, login, ['Manager','Viewer',]) In Zope2 PAS there is a IRolesPlugin which assign the role to the principal. Maybe someone had an idea or an example for me. Christian Hi, i have found it myself. I have to access the event and add my role to: def authenticated_principal_created(event): principal = event.principal principal.groups.append('zope.Manager') Thx Christian ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
[Zope3-Users] Howto add roles to my principal
Hi, i try to fetch users from an rdbms to authenticate them in zope3. I have created a custom AuthenticatorPlugin which reads the user from an sqltable and return the PrincipalInfo when username password is valid. This works so far. Now the Problem: I have role information in my rdbms table and i want that my principals get these roles. But i don´t know how can i assign these roles to my principal. Maybe something like that: return PrincipalInfo(self.prefix+login, login, login, login, ['Manager','Viewer',]) In Zope2 PAS there is a IRolesPlugin which assign the role to the principal. Maybe someone had an idea or an example for me. Christian ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] z3c.form: Integer-based fields incorrectly validated
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 I set "1,123" as value, zope outputs: > > > > "Objekttyp ist falsch." > > > > I tried to investigate this futher, but things are getting complicated at > > the file "converter.py", line 96 (no clue what a formatter is). > > > > Is this a bug or am I doing something wrong? > > This error should really not occur. I think we have plenty of tests for > this and z3c.form is used in production using this feature. Can you extract > this problem into a test? Yes, I reproduced it by simply modifying your HelloWorld example in the z3c.formdemo package: Index: interfaces.py === --- interfaces.py (Revision 78682) +++ interfaces.py (Arbeitskopie) @@ -27,7 +27,7 @@ class IHelloWorld(zope.interface.Interface): """Information about a hello world message""" -who = zope.schema.TextLine( +who = zope.schema.Int( title=u'Who', description=u'Name of the person sending the message', required=True) Now the same validation problems occur for this input field. Maybe the reason for this is my Zope3 version? I still use Zope-3.3.1. The z3c packages are all up to date, I use the latest SVN versions. Best Regards, Hermann -- [EMAIL PROTECTED] GPG key ID: 299893C7 (on keyservers) FP: 0124 2584 8809 EF2A DBF9 4902 64B4 D16B 2998 93C7 ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users