Re: [Zope3-Users] logging in in interactive shell?

2009-06-23 Thread John
orm.update()" the root folder is empty, but afterward it has the 'srichter' key. > I have a feeling that if I get that far, I may have all I need for a > good while! :) > I've had that feeling too, but it never lasts long :) John > e. > > On Tue, Jun 23

[Zope3-Users] grant via zcml vs zmi

2009-06-04 Thread John
After working through Paul Carduner's z3c tutorial, I removed this zcml: and created two users that I thought should have equal permissions, one called 'user' via this zcml: and the other called 'user2', which I created in a PrincipalFolder under a registered pau and granted the Manage

[Zope3-Users] new principal cannot login

2009-06-02 Thread John
but still the new principal cannot login. What am I missing? Is there something I should have read to avoid this problem? Thanks, John ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users

Re: [Zope3-Users] z3c.form in the apidoc code browser

2009-05-19 Thread John
yes, that was it (i created a new zopeproject each time and just forgot). thanks again michael! Michael Howitz wrote: > Am 18.05.2009 um 21:16 schrieb John: > >> that fixed all conflicts and exceptions. now i see z3c, but no >> "Modules and Subpackages" below

Re: [Zope3-Users] z3c.form in the apidoc code browser

2009-05-18 Thread John
rror: unknown url type: svn -- Some packages may not be found! but buildout claimed that it "Got" versions of each of the 3 packages i specified (and several dependencies as well). Michael Howitz wrote: > Am 18.05.2009 um 17:05 schrieb John: >> thanks michael. i did as you sugges

Re: [Zope3-Users] z3c.form in the apidoc code browser

2009-05-18 Thread John
thanks michael. i did as you suggested, but buildout said: Develop: '/home/john/e6/z3c_in_apidoc/.' Updating app. Getting distribution for 'zope.app.apidoc==3.6.3'. Got zope.app.apidoc 3.6.3. Getting distribution for 'zope.traversing>=3.5a5dev'. Got zope.trave

[Zope3-Users] z3c.form in the apidoc code browser

2009-05-15 Thread John
hi, i cannot see z3c code in the code browser at http://apidoc.zope.org/++apidoc++/ thinking that maybe z3c just wasnt installed at that site, i installed z3c.form locally (ubuntu 8.04) in a virtualenv: sudo easy_install virtualenv virtualenv env4 cd env4 bin/easy_install zopep

Re: [Zope3-Users] ZCML Layout Decision?

2008-10-10 Thread John de la Garza
Tim Cook wrote: > Well, at your suggestion I have given Grok a new try. I think I can > best express my opinion as: > > **GROK IS FRICKEN AWESOME!!*** > I've been trying to get into using Zope for a while and was overwhelmed. I started using Grok about 3 weeks ago and was able to understand

Re: [Zope3-Users] Looking for the Z3C tutorial?

2008-10-09 Thread John de la Garza
On Oct 9, 2008, at 12:02 PM, Paul Carduner wrote: > Hi everyone, > > My website that was hosting the z3c tutorial recently went down. I > haven't had time to diagnose the problems and bring it back up. In > the mean time, I have moved the z3c tutorial to ibiblio. If you have > been looking for

Re: [Zope3-Users] clearing grouped widgets in z3c.form

2008-03-06 Thread John
fore "self.widgets.update()" (or after self.parentForm is assigned in __init__), add line: self.prefix = util.expandPrefix(self.parentForm.prefix) (and of course "from z3c.form import util") John John wrote: In modifying the formdemo/addressbook example to use groups,

[Zope3-Users] clearing grouped widgets in z3c.form

2008-02-28 Thread John
In modifying the formdemo/addressbook example to use groups, I found that fields in groups are not cleared to their default values when the Done or Delete button is pressed in the editform, resulting in an addform with values from the previous editform. Fields that are not in groups are cleare

[Zope3-Users] how work around broken egg?

2008-01-25 Thread John
ehow and re-install it to get the complete files? Details: (_1) There is no 1.7.2 listed at http://svn.zope.org/z3c.form/tags/?rev=83190 Thanks, John ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users

[Zope3-Users] zcml for z3c.form

2008-01-24 Thread John
I'm converting from formlib to z3c.form. What should my configure.zcml look like? For formlib it is: I assume the 'for=' value should change, but to what? Complete code is attached (with non-Person classes still using formlib). Thanks, John from interfaces import I

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

2008-01-23 Thread john saponara
1. I used tortoiseSvn for the checkout, and 2. I entered the command line steps at the dos prompt (not at a bash prompt as the '$' prompts seem to suggest). Can someone suggest a fix? Thanks, John C:\Documents and Settings\Saponara>cd C:\pr\z3\lib\python\formdemo C:\pr\z3\l

Re: [Zope3-Users] UnpickleableError when adding object with reference

2008-01-15 Thread john saponara
That works great, thank you Thierry Thierry Florac wrote: Le mardi 15 janvier 2008 à 07:05 -0500, john saponara a écrit : I add a Limoservice object, then inside that object add a Car; then I add a Driver (which contains a Car), and the AddForm offers a dropdown with '(no value)'

[Zope3-Users] UnpickleableError when adding object with reference

2008-01-15 Thread john saponara
I add a Limoservice object, then inside that object add a Car; then I add a Driver (which contains a Car), and the AddForm offers a dropdown with '(no value)' and my Car object. If I select the car from the dropdown I get an error: UnpickleableError: Cannot pickle objects Whereas if I lea

[Zope3-Users] zmi menu error

2008-01-14 Thread john saponara
62, in getMenuItems result = [(ifaces.index(item._for or Interface), ValueError: list.index(x): x not in list The complete call stack is in the attached error.txt. I'm using v3.3.1 under winxpprosp2. What am I doing wrong? Thanks, John http://namespaces.zope.org/zope&

[Zope3-Users] how to model a 1-to-1 relation

2008-01-10 Thread john saponara
I want to allow the user to create car and driver objects in a limoService container. Car objects will stand alone, but each driver object should contain a car object by reference (not by value) and the driver add form should allow the user to choose which car the new driver object will have.

Re: [Zope3-Users] want to use ObjectWidget and default add form

2008-01-04 Thread john saponara
]) I dont really need to access the form instance, but that seems to be a reasonable way to access the application's container (all drivers and cars are put into the same 'LimoService' container for now). So how can I access the list of cars from the widget? And

Re: [Zope3-Users] want to use ObjectWidget and default add form

2008-01-03 Thread john saponara
self.context.model, self.context.nPassengers) class DriverView(object): def message(self): if self.context.car: carInfo=self.context.car.__dict__ else: carInfo=None return 'driver drives car model %s' % (carInfo) from zope.app.form.browser.widget import SimpleInputWidget class CarsListWidget(SimpleInputWidget): def cars(self): parent=zapi.getParent(self.co

[Zope3-Users] want to use ObjectWidget and default add form

2007-12-29 Thread john saponara
hi, please point me to an example showing how to use ObjectWidget with a default add form. in case there is no example, perhaps my failing attempt below could serve as one, once it's modified to work. # interfaces.py from zope.interface import Interf

[Zope3-Users] Trouble installing DocumentLibrary

2007-09-21 Thread John Goerzen
configure.zcml", line 6.2 ConfigurationError: ('Unknown directive', u'http://namespaces.zope.org/browser', u'layer') Does anyone have any idea how to fix this? Line 6 of that file begins this tag: Thanks, -- John __

[Zope3-Users] Principally annotating InternalPrincipals at creation time

2007-08-11 Thread John Maddison
Hi all, I'm using a PrincipalFolder to store users who have signed up to a site, and during signup I'd like to ask them for some more information (email address, etc) and store it in a principal annotation. However, PrincipalFolders use IInternalPrincipals, which do not appear to be easily conve

Re: [Zope3-Users] Application instantiation without ZMI

2007-06-23 Thread John Maddison
On 6/23/07, Stephan Richter <[EMAIL PROTECTED]> wrote: Yeah, people at ZC prefer using generations. Others (including me), on the other hand, have developed z3c.configurator and z3c.sampledata, which can setup entire applications for you. I can sort of see how to use generations, but z3c.config

[Zope3-Users] Application instantiation without ZMI

2007-06-18 Thread John Maddison
Hi all, I've just started playing around with using z3c.layer to create applications that don't use the ZMI at all. Everything is pretty simple so far, except for one fairly important step: creating my initial application object in the ZODB. What methods do people use to create their applicatio

[Zope3-Users] App server tracebacks for functional tests

2006-10-25 Thread John Maddison
than the entire (unfortunately) proprietary application I'm working on.] Secondly, and leading on from this, is it possible to get the traceback the application server side of things produces in functional (zope.app.testing.functional.FunctionalDocFileSuite) tests? At the moment the only info

Re: [Zope3-Users] Autocreated content objects

2006-09-26 Thread John Maddison
Oops, forgot to CC the list. On 9/27/06, John Maddison <[EMAIL PROTECTED]> wrote: On 9/26/06, Fred Drake <[EMAIL PROTECTED]> wrote: > On 9/26/06, John Maddison <[EMAIL PROTECTED]> wrote: > > Right, that's basically what I want to run, but I can't seem to f

Re: [Zope3-Users] Autocreated content objects

2006-09-26 Thread John Maddison
On 9/25/06, Darryl Cousins <[EMAIL PROTECTED]> wrote: Hi John, This may be what you are after: root['my-app'] = MyApp() Right, that's basically what I want to run, but I can't seem to figure out how to have that run at ZODB creation time. Should I be listening for

Re: [Zope3-Users] Autocreated content objects

2006-09-26 Thread John Maddison
On 9/25/06, Stephan Richter <[EMAIL PROTECTED]> wrote: On Monday 25 September 2006 03:21, John Maddison wrote: > Is it possible/wise to "auto-create" content objects in the ZODB? Say I'm > creating a blog application and have a container type(BlogContainer) and >

[Zope3-Users] Autocreated content objects

2006-09-25 Thread John Maddison
only option to create it through the ZMI? I thought that perhaps an event was generated when the root object was created that I could hook into, but it seems not.  Perhaps I'm looking at this the wrong way - would "fixtures" like this be better implemented as utilities with z3c.travers

Re: [Zope3-Users] __init__ method never called?

2006-09-19 Thread John Smith
provided in the definition. This can be practically tested by inserting a NotImplementedError into to the definition of Resource.__init__. I'm pretty certain that that method is never called, unless perhaps somewhere else in zope there is another class that inherits from it first. Cheers,

[Zope3-Users] __init__ method never called?

2006-09-18 Thread John Smith
method is used by anything else? Thanks, John ___ All new Yahoo! Mail "The new Interface is stunning in its simplicity and ease of use." - PC Magazine http://uk.docs.yahoo.com/nowy

[Zope3-Users] Interface or adapter for AddMenuItems

2006-08-04 Thread John Smith
template.pt, but it looks as if the items in the add menu come in as some kind of html text string. Any help gratefully received, Thanks, John ___ The all-new Yahoo! Mail goes wherever you go - free your email address from your

Re: [Zope3-Users] Re: Access request object from content_factory

2006-06-21 Thread John Smith
--- Rupert Redington <[EMAIL PROTECTED]> wrote: > I realise that I shouldn't use zapi anymore... apart Good gracious! No zapi? How did I miss that? Where do I get my utilities, parents, roots, adapters from now? John. (daze

Re: [Zope3-Users] Re: Access request object from content_factory

2006-06-21 Thread John Smith
and utilities that need a request object, it seems unnecessary to deprive a content factory of the use of them, when the developer chooses to take advantage of browser:addform. Best wishes, John --- Philipp von Weitershausen <[EMAIL PROTECTED]> wrote: > Marco Mariani wrote: &

[Zope3-Users] Access request object from content_factory

2006-06-20 Thread John Smith
of views. So I am stumped. How do I get at the request object? A utility? An adaptor? Thanks, John Try the all-new Yahoo! Mail . "The New Version is radically easier to use" – The Wall Street Journal___ Zope3-users mailing list Z

Re: [Zope3-Users] Add and Edit form

2006-05-12 Thread John Smith
I am a little unclear into which object I should add the nextURL method.In myclass/browser/configure.zcml I have addMenuItem and addForm directives. I have tried adding the nextURL method to the class specified in the 'class' parameter of the addForm directive. That does not work.Stephan

[Zope3-Users] Add and Edit form

2006-05-12 Thread John Smith
er to edit it is a usability issue. Solutions: a) there is something already in zope3 that I don't know about :) b) create an "Add and Edit" button to go beside the "Refresh" and "Add" buttons in the standard template and create some handler for this. Thanks

[Zope3-Users] Managing Principals

2006-01-23 Thread John Smith
n the zope.app.authentication.principalfolder ideas. Has someone already solved this problem? Best wishes, John ___ NEW Yahoo! Cars - sell your car and browse thousands of new and used cars online! http://uk.cars.yaho

[Zope3-Users] macros from ZPT

2006-01-16 Thread John Smith
ng not yet available within Z3. I know that my view class getMacro method is returning a relevant object as my debug output shows that I can access the 'macros' attribute ok. Thanks in advance for help, john __

[Zope3-Users] Access attributes of content object from view

2006-01-07 Thread John Smith
27;, ) I have tried altering the zcml content/require permissions but they are all set for "zope.View", including the IReadContainer interface. Is it to do with the fact that the object is subclassed from BTreeContainer? Any pointers gratefully rece

Re: [Zope3-Users] Get to ZODB root from global utility

2005-12-14 Thread John Smith
27;] 6. root['newobject']= or navigate to where you need to go 7. conn.getTransaction.commit() and tidy up. John ___ How much free photo storage do you get? Store your holiday snaps for FREE

Re: [Zope3-Users] Get to ZODB root from global utility

2005-12-14 Thread John Smith
, John --- Jim Fulton <[EMAIL PROTECTED]> wrote: > John Smith wrote: > > Hi, > > > > Does anyone know if there any way to get to the > main > > ZODB root of the site other than using > > zope.app.zapi.getRoot(someObject)? > > > > Here is th

[Zope3-Users] Get to ZODB root from global utility

2005-12-14 Thread John Smith
periodically. I have made a global utility what spawns a worker thread which creates the folder objects. My problem is I don't seem to be able to work out how to get hold of the Zope root as I have not get any context. Thanks,

Re: [Zope3-Users] Help with building Zope3

2005-12-10 Thread John Poltorak
On Sat, Dec 10, 2005 at 08:03:15AM -0500, Stephan Richter wrote: > On Saturday 10 December 2005 04:20, John Poltorak wrote: > > Is this the right list to ask about problems encountered in building > > Zope3? > > yep. Great! Maybe someone can tell me what may have gone

[Zope3-Users] Help with building Zope3

2005-12-10 Thread John Poltorak
Is this the right list to ask about problems encountered in building Zope3? -- John ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users

[Zope3-Users] Problems building Zope3

2005-12-06 Thread John Poltorak
n _raise_open_error url) ZConfig.ConfigurationError: error opening file //G:/ux2bs/workdir/Zope-3.1.0/Support/zpkgsetup/package.xml: [Errno ftp error] no host given make: *** [build] Error 1 Does this mean I need to specify hostname before building Zope3 ? -- John __

[Zope3-Users] Zope3 broke when renaming folder

2005-11-16 Thread John Smith
, but this seems a bit nuclear, for what must surely be a bit of ZODB editing, if I but knew where to look. Thanks, John ___ To help you stay safe and secure online, we've developed the all new Yahoo! Securi

[Zope3-Users] Renaming folder causes NotFoundError

2005-11-14 Thread John Smith
y putting in print statements and as best I can tell, the magic is somewhere around line 604 in zope.app.registration.registration.py where "Adapters" is the supplied name and a serviceregistration object is createed whose componentPath attrib

[Zope3-Users] configure.zcml entries for using adapters.

2005-11-10 Thread John Smith
iki product but to no avail. Am I right in thinking that my problems are related to the configure.zcml file? Any pointers gratefully received. I can get the ISized examples from the books to work ok. Thanks to all. John _

[Zope3-Users] browser:form

2005-07-18 Thread John Smith
page built from .pt file? Thanks for any help, John ___ How much free photo storage do you get? Store your holiday snaps for FREE with Yahoo! Photos http://uk.photos.yahoo.com ___ Z

[Zope3-Users] HTTP Post Request Handling

2005-07-16 Thread John Smith
d. I tried searching the interface specification for 'request' to see if there was an analogue of the Zope2 request.setAttribute function, but could not find one. Any help greatly appreciated, thanks, John. ___