[Zope3-Users] Pluggable Authentication and SessionCredentialsPlugin

2005-06-23 Thread Darryl Cousins
ide InternalPrincipal as it appears to in default/PluggableAuthenticatin/principals/testuser/@@introspector Any suggestions? With sincere regards, Darryl Cousins -- Darryl Cousins <[EMAIL PROTECTED]> Tree Fern Web Services 106 Sandes St Thames 2

Re: [Zope3-Users] Pluggable Authentication and SessionCredentialsPlugin

2005-07-15 Thread Darryl Cousins
way. :-) Best regards, Darryl Cousins On Fri, 2005-07-15 at 14:08 -0400, Stephan Richter wrote: > On Thursday 23 June 2005 21:52, Darryl Cousins wrote: > > and as such has **no getLogin method**. > > This is correct. zope.security.interfaces.IPrincipal does nto specify a > &quo

Re: [Zope3-Users] Pluggable Authentication and SessionCredentialsPlugin

2005-07-16 Thread Darryl Cousins
On Sat, 2005-07-16 at 01:06 -0400, Stephan Richter wrote: > On Saturday 16 July 2005 00:07, Darryl Cousins wrote: > > So much for my solution, is there a better way. :-) > > Of course. :-) :-) Yes, I should have written **what's** the better way? :-) Thanks for that.

Re: [Zope3-Users] breadcumbs in new skin

2006-02-14 Thread Darryl Cousins
Hi Lorenzo, Viewlets are a very nice tool when building skins. Try using the boston layer instead of the rotterdam layer and look through the implementation of viewlets in zope.app.boston. A breadcrumb viewlet is part of Tiks (www.tiks.org). Best regards, Darryl Cousins On Mon, 2006-02-13 at 16

Re: [Zope3-Users] Granting Roles - What am I missing?

2006-02-18 Thread Darryl Cousins
______ > Zope3-users mailing list > Zope3-users@zope.org > http://mail.zope.org/mailman/listinfo/zope3-users -- Darryl Cousins Tree Fern Web Services (NZ) Ltd 106 Sandes St Thames 2801 New Zealand +64 7 868 3139 [EMAIL PROTECTED] http://www.treefernwebservices.co.nz

Re: [Zope3-Users] standart views

2006-02-18 Thread Darryl Cousins
about standart views' > for easy insert into site : > 1) @@presentationSlotBox from 'Forum' present 'Last Forums items'-box. > 2) @@presentationSlotBox from 'News' present 'Last News'-box. > > > > > _

Re: [Zope3-Users] standart views

2006-02-19 Thread Darryl Cousins
th regard, Darryl On Sun, 2006-02-19 at 11:02 +0300, Garanin Michael wrote: > For example i want insert yours "tfws_i18ninfo" into 'IRight'-slot of my > site ==> i must overwrite yours 'viewlet'-definitions. I think it's not > right. > > В Вск, 19

Re: [Zope3-Users] Re: ZopeX3 Component Architecture in comparision to MVC - general question/example

2006-02-28 Thread Darryl Cousins
context) authenticated = property(authenticated) > > -- > Lennart Regebro, Nuxeo http://www.nuxeo.com/ > CPS Content Management http://www.cps-project.org/ > ___ > Zope3-users m

Re: [Zope3-Users] Re: ZopeX3 Component Architecture in comparision to MVC - general question/example

2006-03-01 Thread Darryl Cousins
o view it > on. Which may even be "*", that is any object. > > -- > Lennart Regebro, Nuxeo http://www.nuxeo.com/ > CPS Content Management http://www.cps-project.org/ > ___________ > Zope3-users mailing list > Zope3-users@zo

Re: [Zope3-Users] Wierd import problem

2006-03-01 Thread Darryl Cousins
Hi Florian, To get around the circular import error use a marker interface to suit your code. Best regards. Darryl On Wed, 2006-03-01 at 08:15 -0500, Stephan Richter wrote: > On Tuesday 28 February 2006 06:50, Florian Lindner wrote: > > ImportError: cannot import name UserRegistrationField >

Re: [Zope3-Users] How to create/remove content objects in Application Code

2006-03-02 Thread Darryl Cousins
Hi Reinhold, schoolbell.app.browser.cvsimport.py and I use the following: def addObject(container, name, factory, **kwargs): """Creates and add object to container""" # precondition may be necessary content = removeAllProxies(zapi.createObject(factory,**kwargs)) notify(ObjectCr

[Zope3-Users] Getting started with testbrowser

2006-06-27 Thread Darryl Cousins
orized Which suggests that zopeinstance/etc/ftesting.zcml is not being parsed (I tested that by putting bad data in ftesting.zcml which produced no error). Best regards, Darryl Cousins ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users

Re: [Zope3-Users] Getting started with testbrowser

2006-06-27 Thread Darryl Cousins
Hi again, Sorry, I made an error in the previous post when I stated that ftesting.zcml is not being parsed. It is in fact being parsed. But I still can't figure why the authentication header is not allowing the testbrowser object to 'view' @@contents.html. Regards, Darryl Cousin

Re: [Zope3-Users] Getting started with testbrowser

2006-06-28 Thread Darryl Cousins
Thanks Baiju and Tom, Yep. Thanks for that. Forest for the trees. Sincere regards, Darryl - shuttling off back to his corner. On Wed, 2006-06-28 at 09:14 +0530, Baiju M wrote: > On 6/28/06, Darryl Cousins <[EMAIL PROTECTED]> wrote: > > Hi All, > > > > I'm hav

[Zope3-Users] testbrowser and file upload

2006-07-03 Thread Darryl Cousins
s.org/tfws.tfwstests.README.html The package code can be viewed here: http://projects.treefernwebservices.co.nz/tfws.org.nz/browser/trunk/src/tfws/tfwstests/ Or the full test package can be obtained here: http://www.tfws.org.nz/tfwstests.tgz Best regards, Darryl Co

RE: [Zope3-Users] testbrowser and file upload

2006-07-03 Thread Darryl Cousins
lue = myPhoto ... I should have thought of this when looking at the file_add method (previously I'd tried setting control.filename **after** setting the value). Thanks for the advice. Best regards, Darryl Cousins On Tue, 2006-07-04 at 01:59 +0200, [EMAIL PROTECTED] wrote: > Hi Darryl >

Re: [Zope3-Users] testing setup

2006-07-18 Thread Darryl Cousins
On Wed, 2006-07-19 at 00:21 +0200, luis wrote: ... > the problem is that now I'd like to create some "functional tests" > like "creating an object with my AddForm"... > > I know there is a testbrowser, and I think I've read of another possibility > to somehow record a human interaction once, and

[Zope3-Users] Formlib and invariants

2006-07-18 Thread Darryl Cousins
Hi All, I've had a bit of a struggle getting formlib error views to play nicely with invariants. That is the problem I have found to trouble me is in the zope.formlib.form.FormBase method error_views. When I use the schema: class IMemberRegisterForm(IMemberData, IMemberDetails): """Schema fo

[Zope3-Users] Formlib, AddForm, raising error in method create

2006-07-18 Thread Darryl Cousins
Hi All, I am trying to find a way to raise an error in the 'createAndAdd' method after checking for duplicate names in the container and return the user to the form for correction if the name is a duplicate. I've tried this in the createAndAdd method:: if True: error_msg = _(

Re: [Zope3-Users] Formlib, AddForm, raising error in method create

2006-07-18 Thread Darryl Cousins
Yup. Thanks Fred! Best regards, Darryl Fred Drake wrote: > > Add 'self.form_reset = False' before the return. This suppresses > resetting the form data. > > > -Fred ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/l

Re: [Zope3-Users] Formlib and invariants

2006-07-19 Thread Darryl Cousins
Hi Florian, Yup. Thanks for that, much more elegant and passing in an error string displays nicely with error_views. Cheers, Darryl On Wed, 2006-07-19 at 22:18 +0200, Florian Lindner wrote: > Am Mittwoch, 19. Juli 2006 03:25 schrieb Darryl Cousins: > > Hi All, > > > >

Re: [Zope3-Users] A gentle push in the right direction needed

2006-07-19 Thread Darryl Cousins
Hi Tim, My solution was to use an address container to act as the 'addressbook'. An adapter is used to attach (using annotations) the addressbook to any object which implements IHaveAddressInfo. Doctest: http://www.tfws.org.nz/tfws.portal.address.README.html Code: http://projects.treefernwebservi

Re: [Zope3-Users] Re: testing setup

2006-07-19 Thread Darryl Cousins
Hi Luis, You need to run functional tests using the zope testing environment which is set up for you when the tests are run with $instance/bin/test Functional tests are defined in python file ftests.py or package ftests/ which you will create in your package. For example: ftests.py:: import un

[Zope3-Users] Where unauthorized is raised?

2006-07-21 Thread Darryl Cousins
Hi All, I'm having a permissions problem with a formlib form and an adapter. I have put the following in zope/schema/_bootstrapfields.py class Field ... def get(self, object): try: getattr(object, self.__name__) except: import sys print s

Re: [Zope3-Users] Where unauthorized is raised?

2006-07-21 Thread Darryl Cousins
being checked then perhaps I will find out why my principal is not passing the security checker and how I can fix it. Sorry if I'm getting hysterical. Regards, Darryl On Fri, 2006-07-21 at 19:33 +1200, Darryl Cousins wrote: > Hi All, > > I'm having a permissions problem with

Re: [Zope3-Users] Where unauthorized is raised?

2006-07-21 Thread Darryl Cousins
ges/zope/ | grep raise | uniq ... /usr/lib/python2.4/site-packages/zope/security/checker.py: raise Unauthorized(object, name, permission) ... That's the only one that matches, but I don't believe that is it. Maybe then in a .so? Curious. Darryl. On Fri, 2006-07-21 at 20:26 +1200, Da

Re: [Zope3-Users] Newbie help with installing on Windows Server 2003

2006-07-21 Thread Darryl Cousins
Hi Siddharth, What is the python version on your os? I googled 'strop functions are obsolete' and it seems to relate to older python versions. Hope this helps. Regards, Darryl Siddharth Sethi wrote: > Hi, > I am just starting out on Zope and have played around with the > features somewhat on my

RE: [Zope3-Users] Where unauthorized is raised?

2006-07-21 Thread Darryl Cousins
Hi Roger, Thanks. Is there a preferred option between using self.context = self.__parent__ = context and setting the 'locate' directive in configure. My thought is that setting __parent__ on the adapter is unecessary if locate does the job. Best regards, Darryl Roger Ineichen wrote: > > You c

Re: [Zope3-Users] Where unauthorized is raised?

2006-07-21 Thread Darryl Cousins
Hi Takayuki, Thanks for that. I hadn't used PostmortemDebuggingHTTP before today. Regards, Darryl Takayuki Shimizukawa wrote: > Hi Darryl. > > 2006/7/21, Darryl Cousins <[EMAIL PROTECTED]>: > > What I need to know is where is this Unauthorized being raised to debug &g

RE: [Zope3-Users] Where unauthorized is raised?

2006-07-21 Thread Darryl Cousins
Cheers, Thanks for the reply. And I shall remember (he hopes). Regards, Darryl Roger Ineichen wrote: > Yes, I use most the time locate="True". But right, set the parent > explicit is also Ok. I don't thnk there is a preferred way. > > just remember, > the missing location on a adapters is most

Re: [Zope3-Users] Getting SOFTWARE_HOME

2006-07-22 Thread Darryl Cousins
Hi David, Just for the record (because I know what you are getting at) I found this in zope/i18n/locales/tests: import os import zope.i18n locale_data = os.os.path.join(os.path.dirname(zope.i18n.__file__), 'locales', 'data') which does the job. Best regards, Darryl On Sat, 2006-07-22 at 12:37

Re: [Zope3-Users] searching and relations

2006-07-23 Thread Darryl Cousins
Gary Poster wrote: > If the relationship is intrinsic to one object's data model but not > to the other's, then it makes sense to have a Python pointer on the > first object. Hi Gary, Am I right that 'a Python pointer on the first object' is defined by simply defining the schema field, eg::

[Zope3-Users] Persistent subclasses in tests

2006-07-23 Thread Darryl Cousins
Hi, I've have a problem with the following and I hope someone can shed some light for me, I can't figure out what I am missing:: >>> from ZODB.tests.util import DB >>> import transaction >>> db = DB() >>> conn = db.open() >>> root = conn.root() >>> from persistent import

Re: [Zope3-Users] Persistent subclasses in tests

2006-07-23 Thread Darryl Cousins
aultTest='test_suite') On Sun, 2006-07-23 at 20:59 -0400, Gary Poster wrote: > On Jul 23, 2006, at 6:59 PM, Darryl Cousins wrote: > > > Hi, > > > > I've have a problem with the following and I hope someone can shed > > some > > lig

[Zope3-Users] Adapters and getters and setters

2006-07-24 Thread Darryl Cousins
bject and manually get or set the attributes (in the update method for example). Doing the above means I don't need to. Am I going about this the right way? Best regards, Darryl Cousins ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zo

Re: [Zope3-Users] Re: Adapters and getters and setters

2006-07-25 Thread Darryl Cousins
Hi Phillip, Cool. Thanks very much for that! Best regards, Darryl On Tue, 2006-07-25 at 10:16 +0200, Philipp von Weitershausen wrote: > # account for everything in the IBuddy interface > for field in IBuddy: > locals()[field] = property( > lambda self: getattr

Re: [Zope3-Users] adding indexes in a __init__ method

2006-07-25 Thread Darryl Cousins
Hi Lorenzo, The key reference adapter can only get a key reference **after** the object is added to the database (because it uses _p_oid). The problem could be fixed with a subscriber to IObjectAddedEvent:: def FilterableContainerInitializationHandler(object, event): """Initialize contai

Re: [Zope3-Users] adding indexes in a __init__ method

2006-07-25 Thread Darryl Cousins
Hi again, I was a too hasty. Because it is the FieldIndex that is missing the _p_oid attribute, and the fix I offered is for the container. Sorry about that. I need more thinking. Regards, Darryl On Tue, 2006-07-25 at 22:10 +1200, Darryl Cousins wrote: > Hi Lorenzo, > > The key

Re: [Zope3-Users] adding indexes in a __init__ method

2006-07-25 Thread Darryl Cousins
2006-07-25 at 12:24 +0200, Lorenzo Gil Sanchez wrote: > No worries, in fact I actually tried the same aproach and hit the same > problem > > Thanks anyway > > Lorenzo > > El mar, 25-07-2006 a las 22:16 +1200, Darryl Cousins escribió: > > Hi again, > > > > I

Re: [Zope3-Users] adding indexes in a __init__ method

2006-07-25 Thread Darryl Cousins
Hi All, I was thinking about that del(self.field) that I threw in. Wouldn't that remove the object too and therefore the key reference? Apparently not (in the test anyway):: >>> class TestField(Persistent): ... id = u'' ... def __init__(self, id): ... self.id = i

Re: [Zope3-Users] adding indexes in a __init__ method

2006-07-25 Thread Darryl Cousins
Hi Lorenzo, Cool. Where is the `contained` imported from? There is some magic there because I couldn't get the test to work when creating the FieldIndex in your createIndexes method without it. Thanks, Darryl On Tue, 2006-07-25 at 13:55 +0200, Lorenzo Gil Sanchez wrote: > Hi Darryl, > > this is

Re: [Zope3-Users] Total n00b to zope3 and apache.

2006-07-27 Thread Darryl Cousins
Hi, Your rewrite rule is incorrect. Here is something close to meeting your requirements. RewriteRule ^(/zope/?.*) http://localhost:8080/++vh++http:localhost:8000/zope/++$1 [P,L] The important bit is the ++vh++. You may want to start reading here: http://www.zope.org/Wikis/DevSite/Projects/Comp

Re: [Zope3-Users] Re: Total n00b to zope3 and apache.

2006-07-28 Thread Darryl Cousins
Hi Steve, keep playing with the rewrite rule. Try without the zope part: RewriteRule ^(/?.*) http://localhost:8080/++vh++http:localhost:8000/++$1 [P,L] Then http://locahost:8000/ 'should' take you to the zope instance. I think that you would want to have the zope/ inside ^(/zope/?.*) On my set

[Zope3-Users] Formlib examples

2006-08-10 Thread Darryl Cousins
Hi All, I am having an extraordinary amount of bother coming to grips with the formlib module. Could anyone offer up complex examples with multiple schemas and subforms; and as an extended topic, examples including custom fields and widgets. My own attempts to date have ended up unneccessarily com

[Zope3-Users] testbrowser hangs

2006-08-16 Thread Darryl Cousins
Hi All, Just updated today to zope3 svn revision the latest trunk and my browser tests are hanging. After hunting for a while within my own package (assuming my own fault) I finally came up with a test that fails using a clean zope3 install with none of my own configuration. It hangs on getContro

Re: [Zope3-Users] testbrowser hangs

2006-08-17 Thread Darryl Cousins
, 2006-08-17 at 11:57 +0530, Baiju M wrote: > On 8/17/06, Darryl Cousins <[EMAIL PROTECTED]> wrote: > > Hi All, > > > > Just updated today to zope3 svn revision the latest trunk and my browser > > tests are hanging. After hunting for a while within my own package >

Re: [Zope3-Users] testbrowser hangs

2006-08-17 Thread Darryl Cousins
Hi, Python version maybe? The timing is about right with a debian upgrade, I am now running Python 2.4.4c0. Guess I better figure out how to downgrade and see what happens then with the tests. Regards, Darryl On Thu, 2006-08-17 at 19:21 +1200, Darryl Cousins wrote: > Cheers for the re

Re: [Zope3-Users] testbrowser hangs

2006-08-17 Thread Darryl Cousins
Hi Benji, Thanks very much for the reply and confirmation of my guesses. Sincere regards, Darryl On Thu, 2006-08-17 at 08:58 -0400, Benji York wrote: > Darryl Cousins wrote: > > Hi, > > > > Python version maybe? The timing is about right with a debian upgrade, I >

Re: [Zope3-Users] String Encoding problems in Skin

2006-08-24 Thread Darryl Cousins
Hi Keith, I assume you are viewing the ZMI with the Rotterdam skin which contains the following meta tag (as does the Boston skin). Does your Skin also define the same charset? This may or may not be the cause of your problem. Regards, Darryl On Thu, 2006-08-24 at 14:56 -0700, Keith Bolton wr

[Zope3-Users] Groups, Principals and Permissions

2006-08-25 Thread Darryl Cousins
Hi, I must be misunderstanding something with zope.app.authentication and using the classes directly as contained in that package. I have a PluggableAuthentication utility, registered, with GroupFolder and PrincipalFolder authenticator plugins. I have GroupInformations for groups in the group fol

[Zope3-Users] pau, testbrowser, HTTP Error 403: Forbidden

2006-08-26 Thread Darryl Cousins
Hi all, In normal browser when logged in as a pau principal I am successfully redirected to the standard unauthorized view when accessing a view forbidden to the user. But accessing the same view in tests using testbrowser and loggd in as the same principal I get: Exception raised: ...

Re: [Zope3-Users] Re: pau, testbrowser, HTTP Error 403: Forbidden

2006-08-27 Thread Darryl Cousins
') >>> 'Unauthorized' in browser.contents True ... instead results in: Exception raised ... HTTPError: HTTP Error 403: Forbidden But in a browser I am redirected to the unauthorised view as expected. Best regards, Darryl On Sun, 2006-08-27 at 11:46 +0200, Ph

Re: [Zope3-Users] Re: pau, testbrowser, HTTP Error 403: Forbidden

2006-08-27 Thread Darryl Cousins
#x27;http://localhost/tfws/categories/cotton/edit.html') Exception raised: ... HTTPError: HTTP Error 403: Forbidden Doesn't pass. I can't figure how to use the test to test for what I expect - which is of course an exception. Sorry for the bother. Regards, Darryl On Sun

Re: [Zope3-Users] Time for a Decimal field type in zope.schema?

2006-08-31 Thread Darryl Cousins
Hi, For what it may be worth, a Decimal field: Code: http://projects.treefernwebservices.co.nz/tfws.org.nz/file/trunk/src/tfws/field/field.py Doctest: http://www.tfws.org.nz/tfws.field.README.html And a currency type which uses it: Code: http://projects.treefernwebservices.co.nz/tfws.org.nz/fil

Re: [Zope3-Users] Time for a Decimal field type in zope.schema?

2006-08-31 Thread Darryl Cousins
Hi Marius, Cheers. I don't have checkin rights so I'll leave it to you (or another) if it considered is worthwhile. Sincere regards, Darryl. On Fri, 2006-09-01 at 00:21 +0300, Marius Gedminas wrote: > I committed my version (somewhat changed from the diff I posted here) > into > Zope 3 trunk. F

Re: [Zope3-Users] Re: Time for a Decimal field type in zope.schema?

2006-08-31 Thread Darryl Cousins
Hi, Yes, I am aware of the use of a comma as a decimal place indicator, but was unsure how to handle it. Thanks Philipp for the hint. Sincere regards, Darryl On Thu, 2006-08-31 at 19:03 +0200, Philipp von Weitershausen wrote: > > Just a note: The format should be localized. In some countries > "

Re: [Zope3-Users] Time for a Decimal field type in zope.schema?

2006-09-01 Thread Darryl Cousins
Hi Gary, Thanks for that. Yup, I'll follow up on your suggestion to become a contributor. May help overcome lack of confidence and hone my abilities. Coincidently I was working on Decimal and Currency today in building views for CurrencyUtility. Decimal field needed a display widget - UnicodeDisp

[Zope3-Users] Registering adapter for ListSequence widget in tests

2006-09-05 Thread Darryl Cousins
Hi, I am having problems registering ListSequence widget, the following from my doctest: Although most widget adapters are registered in tfws.form.browser testing I had a lot of trouble with ListSequenceWidget - here I keep trying until I get it. This is the error raised when running the test::

Re: [Zope3-Users] Re: Registering adapter for ListSequence widget in tests

2006-09-06 Thread Darryl Cousins
Ok. Thanks Tahara and Philipp. I am using component.provideAdapter. What I am having trouble with is registering ListSequenceWidget for use in a doctest. I believe the matching zcml from zope.form.browser configure is: My own attempt to register the widget for a doctest is: >>> zope.

Re: [Zope3-Users] Formlib examples

2006-09-06 Thread Darryl Cousins
Cheers Stephan, I've made quite a bit of progress since my posting of almost a month ago with using formlib, espicially with more complex widgets. By keeping on reading the code and debugging I am getting (slowly) a grip on it. mpg.de has a good short tutorial that helped me with a sequence/objec

Re: [Zope3-Users] Groups, Principals and Permissions

2006-09-06 Thread Darryl Cousins
Hi Stephan, I forget already what I was doing wrong but after some digging in the code I must have found what I was missing. Thanks, Darryl On Wed, 2006-09-06 at 06:35 -0400, Stephan Richter wrote: > > So it 'appears' to me that the security looks up the groups > differently? > > Or have I misse

Re: [Zope3-Users] Registering adapter for ListSequence widget in tests

2006-09-06 Thread Darryl Cousins
-06 at 06:58 -0400, Stephan Richter wrote: > On Wednesday 06 September 2006 00:55, Darryl Cousins wrote: > > Following test setup formula in zope.app.form.browser I get this: > > > > >>> provideAdapter(ListSequenceWidget,[IList,IField,IBrowserRequest], \ > >

Re: [Zope3-Users] Re: pau, testbrowser, HTTP Error 403: Forbidden

2006-09-06 Thread Darryl Cousins
On Wed, 2006-09-06 at 06:45 -0400, Stephan Richter wrote: > On Sunday 27 August 2006 08:14, Darryl Cousins wrote: > > Doesn't pass. I can't figure how to use the test to test for what I > > expect - which is of course an exception. > > Two choices that I commonly u

[Zope3-Users] zope.contentprovider and z3c.traverser

2006-09-10 Thread Darryl Cousins
Hi, z3c.traverser and zope.contentprovider are helpful packages with good and clear doctests. It didn't much time to get up and running with them. However the packages do not include an example of how to configure my new useful code into my project. I got it figured (well, ... it works): http://

Re: [Zope3-Users] viewlets for specific interfaces

2006-09-13 Thread Darryl Cousins
Hi, Try testing the context interface in update. dorender = False def update(self): if MyInterface.providedBy(self.context): self.dorender = True def render(self): if self.dorender: return u'Hello' else: return u'' That may

Re: [Zope3-Users] Conflicting configuration actions for protectName __setitem__

2006-09-19 Thread Darryl Cousins
Hi Rob, __setitem__ is likely also part of your IFosterRecord interface. class IFosterRecord(IContainer) #? and this is causing the conflict. Regards, Darryl On Tue, 2006-09-19 at 15:35 -0700, Rob Campbell wrote: > I know I read about this error somewhere before, but I haven't been able > t

Re: [Zope3-Users] Re: When I modify one class in my source code, I need always to restart zope server ?

2006-09-22 Thread Darryl Cousins
I was just doing that. Done. Thanks to the Kerala connection. ;-) Regards, Darryl > > Why aren't these in a FAQ off the Zope3 page if they are common enough to > > respond like that? > > Please add this to FAQ :) > Here is the link : http://kpug.zwiki.org/Zope3Faq > > Thanks, > Baiju M >

Re: [Zope3-Users] zpt pages though ZMI

2006-09-23 Thread Darryl Cousins
Hi, Your problem is in /home/hassan/HOMEPAGE2/modules/ISI/skin/template_tablelayout.pt and UnauthenticatedPrincipal does not have attribute 'title'. Check Boston skin template which first tests for authenticated user before calling request/principal/title. Regards, Darryl On Sun, 2006-09-24 at

Re: [Zope3-Users] Re: Writing tests for views

2006-09-23 Thread Darryl Cousins
On Sun, 2006-09-24 at 01:37 +0200, Philipp von Weitershausen wrote: > George Lee wrote: > > I am trying to write a test for a view, and making sure that an object I've > > created is associated with the correct view. But either of these lines fails > > with a ComponentLookupError "Couldn't find vie

Re: [Zope3-Users] zpt pages though ZMI

2006-09-24 Thread Darryl Cousins
Hi Hassan, On Mon, 2006-09-25 at 14:54 +0900, Hassan Alirezaei wrote: > Hi again Darryl, > > just to check something real quick, > > does Boston skin really check for authenticated principals??? Ooops. No. Sorry for that. In my own skin I'm using User with no problem for either zcml princip

Re: [Zope3-Users] Autocreated content objects

2006-09-25 Thread Darryl Cousins
Hi John, This may be what you are after: root['my-app'] = MyApp() Regards, Darryl On Mon, 2006-09-25 at 17:21 +1000, John Maddison wrote: > Hi there, > > Is it possible/wise to "auto-create" content objects in the ZODB? Say > I'm creating a blog application and have a container > type(BlogCon

Re: [Zope3-Users] Autocreated content objects

2006-09-26 Thread Darryl Cousins
On Wed, 2006-09-27 at 11:13 +1000, John Maddison wrote: > > Ah, I think I may have misdescribed what I was trying to do - I'm not > > trying to replace the root object, I'm trying to automatically create > > some other objects to put inside it (without having to use the ZMI). Hi John, Maybe we a

[Zope3-Users] Unicode and vocabularies

2006-09-29 Thread Darryl Cousins
Hi, I'm having some trouble with unicode and vocabularies. I've a utility with a List field: class MyUtility(Interface): mylist = List(title=_("My List"), value_type = TextLine(_("list item")), default = [], required = Fa

Re: [Zope3-Users] Seeking a ZCML Example for a CSSViewlet

2006-10-06 Thread Darryl Cousins
On Fri, 2006-10-06 at 20:29 -0500, Jeff Rush wrote: > I've got viewlets working fine (really cool too!) but I'm stumped on getting a > CSSViewlet declared. Googling doesn't show anyone using CSSViewlets but > hopefully someone who implemented it might clarify. > Help please? > > -Jeff Hi Jeff,

Re: [Zope3-Users] Seeking a ZCML Example for a CSSViewlet

2006-10-09 Thread Darryl Cousins
On Mon, 2006-10-09 at 18:50 +0200, Thierry Florac wrote: > Maybe I'm wrong, but it seems that the "weight" parameter is not used > by the default implementation of the CSS viewlet manager... > Correct ? > > Thierry Florac > Hi, Yes you are right. Sorry for throwing in the confusion. Regards

Re: [Zope3-Users] virtual hosting

2006-10-11 Thread Darryl Cousins
On Wed, 2006-10-11 at 04:57 -0500, Hector Miuler Malpica Gallegos wrote: > Hello friends, as I can have virtual hosting of easy form? like in > zope2 > > -- > Hector Miuler Malpica Gallegos <[EMAIL PROTECTED]> Sure. ServerName zope3.theshire RewriteRule ^(/?.*) http://localhost:8031/++vh++

Re: [Zope3-Users] Missing the point

2006-10-13 Thread Darryl Cousins
Hi Luiz, Too much coding without beer is no fun. Too much beer and coding gets messy. I've been guilty of both. :-) There is a recent thread that I think applies to your questions, one mail of which is: http://mail.zope.org/pipermail/zope3-users/2006-October/004664.html which includes a link to:

Re: [Zope3-Users] ForbiddenAttribute when adding to a folder

2006-10-21 Thread Darryl Cousins
Hi Tim, On Sat, 2006-10-21 at 12:18 +0200, Tim Terlegård wrote: > Is there a way to add content without having @@+ in the URL? For > instance I'd like the url for adding events to be /addEvent. > > I get security problems when not having @@+ in the URL. I have this view: > > for="zope.a

Re: [Zope3-Users] Strange - You are not authorized

2006-10-24 Thread Darryl Cousins
Hi Alek, On Mon, 2006-10-23 at 11:57 +0200, [EMAIL PROTECTED] wrote: > Hello, I have a strange behavior of my content object. > > I have defined browser:editform for it and proper directive (with > zope.Public permissions) and I get only the following message in browser, > even when logged in

[Zope3-Users] z3c.sampledata experts please

2006-11-12 Thread Darryl Cousins
Hi, My initial start with z3c.sampledata was enthusiastic but now I don't know where to go. The simple scenario is to build sampledata with: A site A photo utility in etc A photo folder I register the utility:: This works just fine. I have a print statem

Re: [Zope3-Users] z3c.sampledata experts please

2006-11-12 Thread Darryl Cousins
Hi, I've found something which may help someone help me. I have placed the following in z3c.sampledata.manager in the generate method: def generate(self, context=None, param={}, seed=None): plugins = self.orderedPlugins() for info in plugins: print "=

Re: [Zope3-Users] z3c.sampledata experts - solved

2006-11-12 Thread Darryl Cousins
Aaah. The light dawns. I found that I need to group all the generators into a single manager in order for them to work together. So the configuration that works is: Regards, Darryl __

Re: [Zope3-Users] correct display of Text field in a view

2007-03-10 Thread Darryl Cousins
On Fri, 2007-03-09 at 10:06 +0100, Ivan Horvath wrote: > - modify the description widget data with > PlainTextToHTMLRenderer.render(), but then in the browser i can see > only > encoded chars instead of Hi, As for Frank's suggestion try: when rendering the text2html content. That should al

Re: [Zope3-Users] Zope 3.3.0 creating DTML page TypeError: readline() takes exactly 1 argument (2 given)

2007-03-10 Thread Darryl Cousins
Hi David, There's probably more than one 'hello world' and certainly more than one way to do it. Here's one: http://www.treefernwebservices.co.nz/hello.html Get through this is worthwhile (its a big wiki): http://wiki.zope.org/zope3/ZopeGuideContents And hours to spend here: http://worldcookery.

Re: [Zope3-Users] Cancelling AddForm

2007-03-12 Thread Darryl Cousins
On Mon, 2007-03-12 at 16:18 +0100, Thierry Florac wrote: > Hi, > > I have several formlib.form.AddForm subclasses in which I've created a > custom Action via "@action(...)". > My problem is that I'd like to be able to launch some of these actions > (but not all of them, it's "action specific") w

[Zope3-Users] Formlib - handleSubmit, custom validator on action

2007-03-28 Thread Darryl Cousins
Hi, I'm curious about custom validators on a form action: @action('Edit', validator=my_validator) def edit(self, **data): ... The validator is called from 'update' method of the form: formlib/form.py line 736: errors, action = handleSubmit(self.actions, data, self.validate) but the l

Re: [Zope3-Users] Formlib - handleSubmit, custom validator on action

2007-03-29 Thread Darryl Cousins
Hi, On Thu, 2007-03-29 at 05:52 -0400, Fred Drake wrote: > On 3/29/07, Darryl Cousins <[EMAIL PROTECTED]> wrote: > > but the line previous says > > > > data = {} > > > > So my validator always receives an empty dictionary to validate. > > The

[Zope3-Users] Re: Formlib - handleSubmit, custom validator on action

2007-03-29 Thread Darryl Cousins
Hi, On Thu, 2007-03-29 at 14:44 +0200, Philipp von Weitershausen wrote: > Darryl Cousins wrote: > > On Thu, 2007-03-29 at 05:52 -0400, Fred Drake wrote: > >> On 3/29/07, Darryl Cousins <[EMAIL PROTECTED]> wrote: > >>> but the line previous says >

Re: [Zope3-Users] Re: Formlib - handleSubmit, custom validator on action

2007-03-29 Thread Darryl Cousins
Cheers all. On Thu, 2007-03-29 at 09:24 -0400, Fred Drake wrote: > On 3/29/07, Darryl Cousins <[EMAIL PROTECTED]> wrote: > > OK. Then what I'm missing is how to assign a value to that variable > > `data` because in my code > ... > > So I am always getting an

Re: [Zope3-Users] Interfaces in Schemas

2007-04-18 Thread Darryl Cousins
Hi, On Wed, 2007-04-18 at 09:21 -0700, Martin Aspeli wrote: > > > Hermann Himmelbauer wrote: > > > > Hi, > > I wonder if it's possible to define attributes in a schema that reference > > other interfaces. For instance, I have a schema for a car and another one > > for > > a wheel and what I w

Re: [Zope3-Users] Time for a Decimal field type in zope.schema?

2007-04-27 Thread Darryl Cousins
Hi, > > Did the inclusion of Darryl's code ever get off the ground? I can't find > a Decimal in zope.schema in Zope3.3.1 ... > > Regards, > Adam > > Marius Gedminas wrote: > > On Thu, 31 Aug 2006 20:29:49 +0700 Darryl Cousins > > <[EMAIL PROTECTED]

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

2007-04-30 Thread Darryl Cousins
Hi, On Mon, 2007-04-30 at 22:23 +0200, Maciej Wisniowski wrote: > > class StudentDetails: > > """Helper to return a student photo.""" > > def getPhoto(self): > > student = self.context > > return StudentPhoto(student) > > > > In my page template, I can see that the IImage

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

2007-05-03 Thread Darryl Cousins
reaWidget): def __init__(self, context, request): super(TextAreaWidget, self).__init__(context, request) self.height = 3 self.width = 85 Best regards, Darryl Cousins > > Is there any solution to this? > > Best Regards, > Hermann > ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users

Re: [Zope3-Users] PAU - how to give a principal a role

2007-05-15 Thread Darryl Cousins
Hi, On Tue, 2007-05-15 at 18:02 +0200, Hermann Himmelbauer wrote: > Hi, > I have to write an Authenticator Plugin for my application. My login/pass > data > is stored in a relational database, which I access via zsqlalchemy. > > I have several objects, which are secured by certain permissions.

Re: [Zope3-Users] Does zope.app.file.Image works ?

2007-05-20 Thread Darryl Cousins
Hey, On Sun, 2007-05-20 at 02:04 +0200, Christophe Combelles wrote: > Hi, > > Is zope.app.file.Image functional ? > I'm trying to use it, but uploading or reuploading an image doesn't do > anything > excepted sometimes when I'm lucky. Is it maintained and tested? > (I'm on 3.3.1) Yep, z.a.file

Re: [Zope3-Users] Does zope.app.file.Image works ?

2007-05-20 Thread Darryl Cousins
t; a > different browser, or work on a new clean instance (without any added code) You might want to take a look at z3c.widget.image for an alternate widget. Regards, Darryl > Christophe > > Darryl Cousins a écrit : > > Hey, > > > > On Sun, 2007-05-20 a

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

2007-05-24 Thread Darryl Cousins
Hi, Congratulations Stephan and Roger. I've only read through 3 of the 5 'must read' doctest files. I remember my first reading of formlib/form.txt and being overwhelmed. This has been the opposite experience. The demos are impressive, to say the least. There is much by way of example in the wr

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

2007-05-27 Thread Darryl Cousins
Hi Vinny, On Sun, 2007-05-27 at 18:55 -0400, Vinny wrote: > > For the curious and impatient ... > > - > > > > To run the demos do the following:: > > > > $ svn co svn://svn.zope.org/repos/main/z3c.formdemo/trunk formdemo > > $ cd formdemo > > $ python boots

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

2007-06-29 Thread Darryl Cousins
Hi, On Fri, 2007-06-29 at 03:50 -0400, Stephan Richter wrote: > Hello everyone, > > again thanks to the great feedback we received -- especially from David > Pratt, > Roy Mathew, and Joachim Werner -- we were able to fine-tune our new form > framework even more to make it as robust of a founda

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

2007-06-29 Thread Darryl Cousins
t; Am 29.06.2007 um 11:43 schrieb Darryl Cousins: > > > Hi, > > > > On Fri, 2007-06-29 at 03:50 -0400, Stephan Richter wrote: > >> Hello everyone, > >> > >> again thanks to the great feedback we received -- especially from > >> David P

  1   2   >