Re: [Zope3-Users] long lasting transactions

2005-12-15 Thread Maciej Wisniowski
to write such thing for Zope 3.x. -- Maciej Wisniowski ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users

Re: [Zope3-Users] long lasting transactions

2005-12-15 Thread Maciej Wisniowski
Not everyone is fooled into thinking they need an RDB ;-) You're right. I should add 'just in case it is the problem with relational DB'. -- Maciej Wisniowski ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo

[Zope3-Users] Zope3.3.0-zope.rdb implementation - bug, feature?

2006-10-13 Thread Maciej Wisniowski
labels for something useful...? Is this issue a bug or feature or something else? I'm not able to recognise them myself (especially after submitting request.locale issue on z3-five list :)). I would like to know your's opinions before submiting a bug and/or trying to create a patch. -- Maciej

Re: [Zope3-Users] zc.winauth takes too much time to authenticate every page load

2006-10-13 Thread Maciej Wisniowski
don't have to create any background connections. Pozdrowienia ;) -- Maciej Wisniowski ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users

Re: [Zope3-Users] zc.winauth takes too much time to authenticate every page load

2006-10-15 Thread Maciej Wisniowski
services) which (I think) is similiar to PAU in Zope3. In general you should take a look at Readme and interfaces.py in PAU directory. HTH -- Maciej Wisniowski ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3

Re: [Zope3-Users] Zope3.3.0-zope.rdb implementation - bug, feature?

2006-10-16 Thread Maciej Wisniowski
are used directly by SQLScripts. Do you mean that third-party RDB interfaces should have it's own SQLScripts implementation or some other changes should be done? I'd submit a bug report with the details you included in your email. OK -- Maciej Wisniowski

Re: [Zope3-Users] Access to request in content object and object path in doctests

2007-01-25 Thread Maciej Wisniowski
() File /home/downloads/Zope/Zope-3.3.0/build/lib.linux-i686-2.4/zope/location/traversing.py, line 154, in getPath raise TypeError(Not enough context to determine location root) TypeError: Not enough context to determine location root -- Maciej Wisniowski

Re: [Zope3-Users] Access to request in content object and object path in doctests

2007-01-25 Thread Maciej Wisniowski
line 154, in getPath raise TypeError(Not enough context to determine location root) TypeError: Not enough context to determine location root I've added Contained as the base class of my content and it works now... uff... -- Maciej Wisniowski

Re: [Zope3-Users] Access to request in content object and object path in doctests

2007-01-26 Thread Maciej Wisniowski
to accomplish. I want to create something general for this kind of forms (with caching etc). I had something like that in Zope 2.x. Thanks for the pointers. -- Maciej Wisniowski ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org

[Zope3-Users] Doctests and authenticated principal

2007-01-31 Thread Maciej Wisniowski
statement. So another question, what is the correct way to get currently authenticated principal id: request.principal.id or ILoginPassword(self.request).getLogin()? -- Maciej Wisniowski ___ Zope3-users mailing list Zope3-users@zope.org http

Re: [Zope3-Users] newbie database adapter questions

2007-02-02 Thread Maciej Wisniowski
widgets. Save action causes to save_data function to be called. There are some drawbacks, eg. you need to remember input parameters somewhere etc. My code is not ready yet but should be soon. I'll try to publish it somwhere if somebody is interested. -- Maciej Wisniowski

Re: [Zope3-Users] css question

2007-02-05 Thread Maciej Wisniowski
zope.app.rot terdam.Rotterdam) Have you copied: zc.resourcelibrary-configure.zcml, zc.resourcelibrary-ftesting.zcml, zc.resourcelibrary-meta.zcml into your zope-instance/etc/package-includes ? -- Maciej Wisniowski ___ Zope3-users mailing list Zope3-users

Re: [Zope3-Users] How to provide user to upload a large file(100M) with zope

2007-02-06 Thread Maciej Wisniowski
I create a website with zope, but I need let my customers upload files from HTTP. How to provide user to upload a large file(100M) with zope? Maybe http://www.infrae.com/products/tramline can help you. -- Maciej Wisniowski ___ Zope3-users mailing

Re: [Zope3-Users] Will zope server crash when uploading huge filesinthe same time?

2007-02-06 Thread Maciej Wisniowski
of control before upload. But I don't know how it works. Maybe it does what you're looking for. Also Tramline seems to be almost separate from application server so possibly Zope is not in danger while few users is sending large files. -- Maciej Wisniowski

Re: [Zope3-Users] Standard Macros

2007-02-10 Thread Maciej Wisniowski
Any ideas? html metal:use-macro=context/@@standard_macros/page div metal:fill-slot=bodybla bla bla/div /html Take a look at: zope/app/basicskin/configure.zcml and you'll see how standard_macros view is registered. -- Maciej Wisniowski ___ Zope3

Re: [Zope3-Users] Standard Macros

2007-02-10 Thread Maciej Wisniowski
I have the same problem. I just know the problem is with the principal_info macro and it only occurs when one is logged in with a PAU principal (ZCML principals do fine as far as I remember). 'same problem' is not enough I think. What is the traceback etc? -- Maciej Wisniowski

Re: [Zope3-Users] Standard Macros

2007-02-11 Thread Maciej Wisniowski
if this works when this code is in view? I wonder if UnauthenticatedPrincipal object has 'title' attribute when called from page template registered as view? -- Maciej Wisniowski ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman

Re: [Zope3-Users] Re: formlib vs. cancel button

2007-02-15 Thread Maciej Wisniowski
) + checkInvariants(self.form_fields, data)) I might be wrong somewhere, so somebody better check this :) -- Maciej Wisniowski ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users

Re: [Zope3-Users] Re: formlib vs. cancel button

2007-02-15 Thread Maciej Wisniowski
and seems to be rather easy to implement +1 -- Maciej Wisniowski ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users

Re: [Zope3-Users] External content with ZPT

2007-02-26 Thread Maciej Wisniowski
you may just use iframes or some javascripts/ajax things on the client side. -- Maciej Wisniowski ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users

Re: [Zope3-Users] Default value for an interface attribute

2007-03-01 Thread Maciej Wisniowski
in fact, not with Zope3) I was creating form_fields that should have dynamic defaults in __call__ method of formlib's AddForm (EditForm) view. I think it is not nice solution so I'd love to see better way of doing this. -- Maciej Wisniowski ___ Zope3

Re: [Zope3-Users] Re: Default value for an interface attribute

2007-03-01 Thread Maciej Wisniowski
How about checking whether the value of 'default' is a callable and if so call it to obtain the default value. Yup... but evaluation of this is done internally by Zope schema package in Field class I think. Seems for me that there is no way to define 'default' as callable. -- Maciej

Re: [Zope3-Users] Widget for displaying Text das HTML

2007-03-01 Thread Maciej Wisniowski
be helpful. -- Maciej Wisniowski ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users

Re: [Zope3-Users] Zope3 with RDBMS (avoiding ZODB)?

2007-03-05 Thread Maciej Wisniowski
. We've developed some guidelines to improve development. We use MySQL exclusively. It would be really nice to see your RDBMS package, so if this is possible then please show it to us :) -- Maciej Wisniowski ___ Zope3-users mailing list Zope3-users@zope.org

Re: [Zope3-Users] Re: Default value for an interface attribute

2007-03-12 Thread Maciej Wisniowski
'), ... form.Field(IOrder['now'], get_rendered=now), ... ) ... ... def setUpWidgets(self, ignore_request=True): ... super(MyAddForm, self).setUpWidgets(ignore_request) -- Maciej Wisniowski ___ Zope3-users mailing list

Re: [Zope3-Users] Crash

2007-03-12 Thread Maciej Wisniowski
like that maybe? We had similiar issues with Zope2 and there were segfault errors in messages file (due to 64 bit architecture and DCOracle2) -- Maciej Wisniowski ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo

Re: [Zope3-Users] keeping GET data in a formlib based form

2007-03-14 Thread Maciej Wisniowski
will possibly have to change the line: data = self.request['myarg'] because your input will have form prefix. I'm not sure, but you may have some issues with this solution when doing resetForm etc. -- Maciej Wisniowski ___ Zope3-users mailing list Zope3

Re: [Zope3-Users] formlib with no zodb

2007-03-16 Thread Maciej Wisniowski
- ... browser:page name=edit.html for=..interfaces.IAccount class=.views.AccountEditForm permission=zope.View / ... -- Maciej Wisniowski ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3

Re: [Zope3-Users] Formlib and custom validation constraints

2007-03-19 Thread Maciej Wisniowski
: result = None -- Maciej Wisniowski ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users

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

2007-03-31 Thread Maciej Wisniowski
with zope3 too. So, some very basic questions : What is the suggested way to access a MySQL database from Zope 3. In fact you may use traditional way (as above) or use ORMs like SQLObject or SQLAlchemy. Not sure what is preffered. For me this is up to personal preferences. -- Maciej Wisniowski

[Zope3-Users] lovely.remotetask question

2007-04-03 Thread Maciej Wisniowski
call startProcessing() on zope startup and stopProcessing on zope shutdown? How should I use that (in my use case)? Without call to stopProcessing I'm unable to stop Zope. -- Maciej Wisniowski ___ Zope3-users mailing list Zope3-users@zope.org http

Re: [Zope3-Users] Re: lovely.remotetask question

2007-04-03 Thread Maciej Wisniowski
directly contained in root. Works for me now :) For shutdown : I have no solution for this right now. So seems that now it is best to manually click on stop processing button via ZMI before shutting Zope down. Thanks! -- Maciej Wisniowski ___ Zope3

Re: [Zope3-Users] Field validation errors in formlib action handlers

2007-04-29 Thread Maciej Wisniowski
') result = action.failure(data, errors) else: result = None this way you only have to set self.errors in your success handler function. status and form_reset are handled 'automatically' -- Maciej Wisniowski

Re: [Zope3-Users] Problem with @@absolute_url

2007-04-30 Thread Maciej Wisniowski
of the view class. -- Maciej Wisniowski ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users

Re: [Zope3-Users] Arranging widgets in a form / Limit size of input fields

2007-05-03 Thread Maciej Wisniowski
) self.height = 3 self.width = 85 I've used this kind of solution as well. AFAIK for textarea html fields you can't set something like maxlength. You have to use javascript for that. -- Maciej Wisniowski ___ Zope3-users mailing list Zope3-users@zope.org

Re: [Zope3-Users] Arranging widgets in a form / Limit size of input fields

2007-05-03 Thread Maciej Wisniowski
/errorError/div div class=field input tal:replace=structure widget / /div /tal:block Then in your pageform.pt just call for every widget something like: div tal:replace=python: view.getWidgetHtml(view.widgets['foo'] / Above code is from head so may be buggy or incomplete. -- Maciej

Re: [Zope3-Users] Re: Remote authentication

2007-05-11 Thread Maciej Wisniowski
authentication and authorization. For example SSO like CAS can only tell you if your user is authenticated. It won't tell you if he has some permissions and/or roles to do something. But with PAS you can write another plugin that will set proper roles for user etc. -- Maciej Wisniowski

Re: [Zope3-Users] Re: Remote authentication

2007-05-12 Thread Maciej Wisniowski
back to application with 'ticket' parameter in URL... etc. -- Maciej Wisniowski ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users

Re: [Zope3-Users] Re: Remote authentication

2007-05-13 Thread Maciej Wisniowski
the authentication server itself could not be written in python and served using zope or twisted. Gives me something to think about for later if things work. Many thanks, Would be great to have this server in python :) -- Maciej Wisniowski ___ Zope3-users

Re: [Zope3-Users] Blog naming proposals

2007-05-28 Thread Maciej Wisniowski
Bitacora, spanish for log. Since all names with blog in it seem already taken. Bitacora sounds good to me but I'm not sure if I can remember this easily although I still like it. I would propose simple: 'ZOG' which may be considered 'Zope blOG' or 'ZOpe bloG'. -- Maciej Wisniowski

Re: [Zope3-Users] z3c.form 1.0.0 released!

2007-05-30 Thread Maciej Wisniowski
of documentation and because everything seems to be written with ZODB objects in mind. -- Maciej Wisniowski ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users

Re: [Zope3-dev] Re: [Zope3-Users] z3c.form 1.0.0 released!

2007-05-31 Thread Maciej Wisniowski
. -- Maciej Wisniowski ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users

Re: [Zope3-dev] Re: [Zope3-Users] z3c.form 1.0.0 released!

2007-05-31 Thread Maciej Wisniowski
of widget_template_files is very interesting. I need to see docs and code for z3c.form now :) -- Maciej Wisniowski ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users

Re: [Zope3-Users] Re: [Zope] z3c.form 1.3.0, z3c.formui

2007-06-28 Thread Maciej Wisniowski
-py2.4.egg zope.app.http-3.4.0a1 (...) Should I manually download just necessary eggs? What is preffered way to do it? -- Maciej Wisniowski ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users

Re: [Zope3-Users] z3c.form 1.3.0, z3c.formui 1.0.1, and z3c.formdemo 1.1.0 released!

2007-06-28 Thread Maciej Wisniowski
SQL data. Thanks for this one :) -- Maciej Wisniowski ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users

Re: [Zope3-Users] z3c.form and subforms in an AddForm?

2007-07-03 Thread Maciej Wisniowski
for RequiredMissing, 'widget') -- Maciej Wisniowski ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users

Re: [Zope3-Users] z3c.form and subforms in an AddForm?

2007-07-05 Thread Maciej Wisniowski
On Tuesday 03 July 2007 05:38, Maciej Wisniowski wrote: TraversalError: (ErrorViewSnippet for RequiredMissing, 'widget') People that got this error had either old versions of the code (run buildout without -N) and/or had a PYTHONPATH set. Please make sure you have no entry

Re: [Zope3-Users] ForbiddenAttribute error

2007-07-06 Thread Maciej Wisniowski
. You may use pdb to simply debug what exactly causes the error. -- Maciej Wisniowski ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users

Re: [Zope3-Users] Invariants and forms

2007-08-13 Thread Maciej Wisniowski
to 'password_confirmation' field. -- Maciej Wisniowski ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users

Re: [Zope3-Users] Re: Invariants and forms

2007-08-14 Thread Maciej Wisniowski
is in errors list. Read about pdb here: http://plone.org/documentation/how-to/using-pdb -- Maciej Wisniowski ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users