Re: [Zope3-Users] Pluggable Authentication and SessionCredentialsPlugin

2005-07-15 Thread Darryl Cousins
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 getLogin() method. I would have expected it to provide

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. Best regards, Darryl Cousins

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
without generating the above exception. What am I missing or not understanding? -- David Johnson ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users -- Darryl Cousins Tree Fern Web

Re: [Zope3-Users] standart views

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-19 Thread Darryl Cousins
, 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/02/2006 в 19:46 +1300, Darryl Cousins пишет: Hi Garanin, I don't believe

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

2006-02-28 Thread Darryl Cousins
Content Management http://www.cps-project.org/ ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users -- Darryl Cousins Tree Fern Web Services (NZ) Ltd http://www.treefernwebservices.co.nz

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

2006-03-01 Thread Darryl Cousins
@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/ ___ Zope3-users mailing list Zope3

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))

[Zope3-Users] Getting started with testbrowser

2006-06-27 Thread Darryl Cousins
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] testbrowser and file upload

2006-07-03 Thread Darryl Cousins
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 I have found a strange behaviour with testbrowser

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 then

[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

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, I've had a bit of a struggle

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:

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

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

2006-07-21 Thread Darryl Cousins
is 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 a formlib form

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

2006-07-21 Thread Darryl Cousins
... /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, Darryl Cousins wrote: Hi, An update

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 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 further (as my principal indeed

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 the

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

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 Persistent p

Re: [Zope3-Users] Persistent subclasses in tests

2006-07-23 Thread Darryl Cousins
, 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 light for me ... Yup, you need to handle a case like that specially. See zope.testing.module Gary

[Zope3-Users] Adapters and getters and setters

2006-07-24 Thread Darryl Cousins
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.zope.org/mailman

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:

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

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 reference

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 = id

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:

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

[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

[Zope3-Users] testbrowser hangs

2006-08-17 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

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 (assuming my own fault) I finally came up

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 reply, I

[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

[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
redirected to the unauthorised view as expected. Best regards, Darryl On Sun, 2006-08-27 at 11:46 +0200, Philipp von Weitershausen wrote: Darryl Cousins wrote: Hi all, In normal browser when logged in as a pau principal I am successfully redirected to the standard unauthorized view when

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

2006-08-27 Thread Darryl Cousins
: ... 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, 2006-08-27 at 14:00 +0200, Philipp von Weitershausen wrote: Darryl Cousins wrote: Hi Philipp

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:

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.

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 -

[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

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: view type=zope.publisher.interfaces.browser.IBrowserRequest

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

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 missed

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

2006-09-06 Thread Darryl Cousins
-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], \ ...IInputWidget,) You need

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 use for debugging: 1. print

[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):

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 to

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 view:

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 span tal:replace=request/principal/titleUser/span

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

Re: [Zope3-Users] Autocreated content objects

2006-09-27 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 are

[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 =

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, I do

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. VirtualHost * ServerName zope3.theshire RewriteRule ^(/?.*)

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

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: browser:page

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 class 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:: adapter name=tfws.gallery.utility

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: SampleManager name=Sample photofolder generator name=z3c.sampledata.site /

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 br Hi, As for Frank's suggestion try: p tal:content=structure view/description / when

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:

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) without

[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

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 validator is responsible for populating `data` with the valid

[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 data = {} So my validator always receives an empty

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 want to do is

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

2007-04-27 Thread Darryl Cousins
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] wrote: On Thu, 2006-08-31 at 15:07 +0300, Marius Gedminas wrote

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 object is being

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

2007-05-03 Thread Darryl Cousins
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] 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.image

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

2007-05-20 Thread Darryl Cousins
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 at 02:04 +0200, Christophe Combelles wrote: Hi, Is zope.app.file.Image functional ? I'm

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

2007-05-25 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

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 bootstrap.py $

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 foundation

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 12:03 +0200, Martin Hefler wrote: Hi, I had the same problem, when I was updating version 1.3.0 to 1.4.0. After checking out to a new directory it works fine. Yep, right you are. Regards, Darryl Regards Martin Am 29.06.2007 um 11:43 schrieb Darryl

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

2007-07-04 Thread Darryl Cousins
Hi, On Wed, 2007-07-04 at 16:27 -0400, Stephan Richter wrote: snip The questionnaire returned with errors (because groups return RequiredMissing errors). Should fields be selected to name and age only? If not, then is there a template registration missing perhaps for the fieldsets?

Re: [Zope3-Users] Building an admin interface

2007-07-17 Thread Darryl Cousins
Hi, On Tue, 2007-07-17 at 08:45 +0200, Hermann Himmelbauer wrote: Am Montag, 16. Juli 2007 22:44 schrieb Stephan Richter: On Monday 16 July 2007 15:58, Benji York wrote: This reminds me of something I've been curious about but haven't had time to research lately. What are the

Re: [Zope3-Users] Difference between schema fields default and missing_value

2007-07-17 Thread Darryl Cousins
Hi, On Tue, 2007-07-17 at 00:42 -0300, Luciano Ramalho wrote: I have not figured out the difference between these schema field attributes: - default: The default value if none was provided. - missing_value: In the case of missing input value, the value provided here is used. The quoted

[Zope3-Users] Re: [Zope3-dev] z3c.formjs-0.2 and z3c.formjsdemo-0.2 released!

2007-07-19 Thread Darryl Cousins
Hi Paul, Hey, very smooth. Congratulations. I've committed a change to buildout.cfg removing z3c.form* develop eggs which kinda spoilt the buildout. Best regards, Darryl Cousins ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org

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

2007-08-09 Thread Darryl Cousins
Hi Andreas, On Thu, 2007-08-09 at 10:12 +0200, Andreas Reuleaux wrote: I am just following the very simple instructions to install z3c.formdemo from zc.buildout snip On Debian this may work: apt-get libxml2-dev libxslt-dev Hope that helps. Darryl

Re: [Zope3-Users] z3c.form: how to use invariant/validator?

2007-08-12 Thread Darryl Cousins
Hi, Invariant now works as expected with your new code. Thanks. Regards, Darryl On Tue, 2007-08-07 at 23:38 -0400, Stephan Richter wrote: On Monday 06 August 2007 22:23, Stephan Richter wrote: On Sunday 05 August 2007 16:51, Peter Piehler wrote: recently I started working with Zope3 and

[Zope3-Users] z3c.form, applyChanges, IModifiedEvent

2007-08-12 Thread Darryl Cousins
out above. Best regards, Darryl Cousins ___ 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 Darryl Cousins
Hi, This was answered recently me thinks. http://mail.zope.org/pipermail/zope3-users/2007-August/006648.html Regards, Darryl On Mon, 2007-08-13 at 11:37 +0200, [EMAIL PROTECTED] wrote: Hello, I'm using an invariant to check if given passwords are equal. I've found two different

Re: [Zope3-Users] Kupu and Zope3

2007-08-20 Thread Darryl Cousins
Hey Jeremy, On Mon, 2007-08-20 at 11:45 +0200, Jeremy Cook wrote: Is anyone using Kupu (or any other visual editor) with zope3? I saw hints that it might be ported to zope3 or conversely that kupu must die. When I tried installing it under zope3 I didn't get awfully far. tinymce

Re: [Zope3-Users] Creating edit form with z3c.form

2007-08-20 Thread Darryl Cousins
Hey Hermann, On Sun, 2007-08-19 at 00:45 +0200, Hermann Himmelbauer wrote: raise ComponentLookupError(objects, interface, name) ComponentLookupError: ((zope.app.publisher.browser.viewmeta.EditEntry object at 0x9f6c68c, zope.publisher.browser.BrowserRequest instance

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

2007-09-07 Thread Darryl Cousins
Hi, On Tue, 2007-09-04 at 18:35 -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. I have implemented this widget now. It is available in

[Zope3-Users] Duplicate emails from mail queue

2007-11-04 Thread Darryl Cousins
Hi, Has anyone experienced duplicate emails being sent using IQueuedMailDelivery? In zope log it appears to be sent only once: 2007-10-30T07:13:03 INFO QueueProcessorThread Mail ... but 2 emails are received. Any clues on where to look and how to correct the problem? Regards, Darryl

Re: [Zope3-Users] Duplicate emails from mail queue

2007-11-04 Thread Darryl Cousins
Hi, On Sun, 2007-11-04 at 22:41 -0500, Benji York wrote: Darryl Cousins wrote: Has anyone experienced duplicate emails being sent using IQueuedMailDelivery? We've seen this when you have more than one process (or thread) attempting to deliver messages from a single maildir. I've

  1   2   >