Re: [Zope3-Users] newbie need help, how to write nested zcml directive?

2009-12-03 Thread Shailesh Kumar
IIRC, ZCML doesn't support directives below 2 levels. So your 5 level nested XML couldn't be supported in ZCML. A way around could be as follows: 1 1 In the above middleware and app are directives supporting child directive param. - Shailesh On Thu, Dec 3, 2009 at 11:07 PM, lucif

[Zope3-Users] newbie need help, how to write nested zcml directive?

2009-12-03 Thread lucifer
hi list: I'm new to the zope :) I want to write a new zcml driective `middleware` for my app, like this: 1 1 1 1 complexDirective can do this? have any examples? thanks. -- alec __

[Zope3-Users] newbie needs to glue zope-concepts together to create tree

2008-02-02 Thread dfgdfg dfg
hi, im new to zope, but i read the 2 books (not everything but very much). im developing a tree-like structure that i want to use throughout my project to store tag-information in it. every node should store some tags, that are extensible by the users by adding new tags as they tag their conten

[Zope3-Users] Newbie Question

2007-02-23 Thread Edward Muller
I've done Zope2 stuff in the past, including writing Zope2 Products. We are working on new hosting software and have decided to use Zope 3. So we're defining our interfaces and have started to define classes based on those interfaces and I have a question... The simple todo app (http://world

Re: [Zope3-Users] newbie database adapter questions

2007-02-02 Thread Maciej Wisniowski
> It seems like most of the examples only explain how to create forms by > using interfaces and objects. I've noticed this too. > I don't want a user within zope to create a form in the ZODB, I just > want to them to open up a location to url and see results from my > database. Currently I'm

Re: [Zope3-Users] newbie database adapter questions

2007-02-01 Thread TAHARA Yusei
Hi. You can use z3c.zalchemy or sqlos(sqlobject wrapper) for OR mapping. zalchemy http://svn.zope.org/z3c.zalchemy/trunk/src/z3c/zalchemy/ sqlos http://codespeak.net/z3/sqlos/ Thanks. -- Yusei TAHARA ___ Zope3-users mailing list Zope3-users@zope.org

[Zope3-Users] newbie database adapter questions

2007-02-01 Thread tyson
Hi, I just started looking into Zope3 and I am unsure on how to create forms that interact with my database. I have the psycopg adapter installed and working. I just want to create a simple html form that will load some values into a couple text fields from my postgreSQL database and displa

Re: [Zope3-Users] NEWBIE: Using Pluggable Auth in Zope 3

2006-09-06 Thread Stephan Richter
On Wednesday 12 July 2006 03:30, Nick Howden wrote: > However, I appear to be stumbling at the very first block of how to > initialise my zope3 "product" using ZCML to include the pluggable auth > modules. Is there a document anywhere that will guide me through the > process (I've read the app.auth

Re: [Zope3-Users] newbie problem

2006-09-04 Thread Chris Withers
Karel Antonio Verdecia Ortiz wrote: Thank you, but when I use now "svn://" instead of "http://"; I get: svn: No fue posible conectarse al equipo 'svn.zope.org': Network is unreachable I think it should be a problem with my proxy Indeed, you need to unblock the port. I

Re: [Zope3-Users] newbie problem

2006-09-02 Thread Karel Antonio Verdecia Ortiz
El dom, 03-09-2006 a las 14:16 +0900, TAHARA Yusei escribió: > Hi. > > You should use "svn://" instead of "http://";. > > svn co svn://svn.zope.org/repos/main/z3c.zalchemy/trunk > Thank you, but when I use now "svn://" instead of "http://"; I get: svn: No fue posible conectarse al equip

Re: [Zope3-Users] newbie problem

2006-09-02 Thread TAHARA Yusei
Hi. You should use "svn://" instead of "http://";. svn co svn://svn.zope.org/repos/main/z3c.zalchemy/trunk -- Tahara Yusei [EMAIL PROTECTED] ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users

[Zope3-Users] newbie problem

2006-09-02 Thread Karel Antonio Verdecia Ortiz
Hi, I tried to download zalchemy with the following comand: svn co http://svn.zope.org/repos/main/z3c.zalchemy/trunk but I get this error: svn: requerimiento PROPFIND falló en '/' svn: PROPFIND de '/': 200 OK (http://svn.zope.org) Can some one tell me ot

Re: [Zope3-Users] Newbie relationship question

2006-07-26 Thread Albertas Agejevas
On Wed, Jul 26, 2006 at 06:33:50PM +0200, Carlo Cardelli wrote: > class IInvoice(Interface): > invRef = Int( > title=u"Ref.no", > description=u"Invoice reference number", > min=1, > required=True > ) > invDate = Date( > title=u"Date", >

[Zope3-Users] Newbie relationship question

2006-07-26 Thread Carlo Cardelli
Hi all, sorry for the 'basic' question but I don't know where to look... I am setting up two related objects, "Invoice" and "Customer". IMO there is a non-containing relationship here, i.e. I do not want the Customer to 'contain' Invoices; a Customer can receive more than one Invoice. Here are

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

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

2006-07-21 Thread Siddharth Sethi
Hi, I am just starting out on Zope and have played around with the features somewhat on my windows xp system. The problem that i am having is that when i try to install zope 3.2.0 on my windows server 2003 system it gives me an error in command prompt -->   warning: strop functions are obs

[Zope3-Users] NEWBIE: Using Pluggable Auth in Zope 3

2006-07-12 Thread Nick Howden
Hi, I am relatively new to Zope 3 - though I have been using Zope since its Bobo days - which I think shows my age :-) I am trying to use some of the authentication classes contained in app.authentication - in particular the SessionCredentialsPlugin and our own PluggableAuthentication to auth

Re: [Zope3-Users] Newbie Struggling with Zope 3

2006-05-07 Thread Siddhartha Azad
Hi All, Thanks a lot for all your extremely helpful responses. Philipp, you articulated my doubt perfectly and the paradigm difference is what I was struggling with. The fact that having a package installed in the zope instance is kinda like providing a component, which needs to be instantiated usi

Re: [Zope3-Users] Newbie Struggling with Zope 3

2006-05-07 Thread Egon Frerich
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Siddhartha Azad schrieb am 07.05.2006 17:21: > Hi, Yes I have installed zope-3.2. The worldcookery application stops > working from chapter 6 onward in Unfortunately you don't give us the traceback with the error message. I cannot see any problem i

Re: [Zope3-Users] Newbie Struggling with Zope 3

2006-05-07 Thread Joseph Method
But unless I have made it through the ZMI, I am unable to access it. Why is that? What URL should I be using for a newly developed folder that I didn't add through the ZMI but which is installed in my Zope Instance's lib/python and configured in the ZCML files? This is kind of a strange questi

Re: [Zope3-Users] Newbie Struggling with Zope 3

2006-05-07 Thread Egon Frerich
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, Siddhartha Azad schrieb am 07.05.2006 08:10: > Hi, > I am starting to work with Zope3 am having trouble > understanding a few things. I bought the Zope 3 Book > and installed the worldcookery application in my what does that mean? The book tell

[Zope3-Users] Newbie Struggling with Zope 3

2006-05-06 Thread Siddhartha Azad
Hi, I am starting to work with Zope3 am having trouble understanding a few things. I bought the Zope 3 Book and installed the worldcookery application in my instance's lib/python directory and configured the .zcml files too. But when I do a http://localhost:8080/worldcookery, I get: " [top]

Re: [Zope3-Users] newbie question on i18n

2006-04-26 Thread Frank Burkhardt
Hi, On Wed, Apr 26, 2006 at 11:14:19AM +0200, Riccardo Tonon wrote: > Hi everybody, > > I'm developing a multilanguage site in Zope 3. > > I've just prepared it to support the i18n based on the browser language. > > I would like also to let the user decide which language to use. (e.g. using a

Re: [Zope3-Users] newbie question on i18n

2006-04-26 Thread Andreas Jung
--On 26. April 2006 11:14:19 +0200 Riccardo Tonon <[EMAIL PROTECTED]> wrote: Hi everybody, I'm developing a multilanguage site in Zope 3. I've just prepared it to support the i18n based on the browser language. I would like also to let the user decide which language to use. (e.g. using a

[Zope3-Users] newbie question on i18n

2006-04-26 Thread Riccardo Tonon
Hi everybody, I'm developing a multilanguage site in Zope 3. I've just prepared it to support the i18n based on the browser language. I would like also to let the user decide which language to use. (e.g. using a combo box present on each page of the site) Anybody has an example where I could

Re: [Zope3-Users] newbie question

2006-04-10 Thread Marco Mariani
张平 wrote: > Hi, > > I wanna develop a site for managing content using workflow, where can i > find any document about zope3 workflow, > You should look at the directory wfmc/README.txt in the SVN repository. It's the new workflow system. The one referred to in the book is also in SVN, but I thin

[Zope3-Users] newbie question

2006-04-09 Thread 张平
Hi, I wanna develop a site for managing content using workflow, where can i find any document about zope3 workflow, i add as chapter 20 (Approval Workflow for Messages) of Zope3book, but runzope told me no implements directive. silly question, :(, anyone can help me. zhangping begin:vcard fn;q

Re: [Zope3-Users] Newbie

2006-03-29 Thread Stéphane Brault
Thank you very much, Stéphane --- Jonathan <[EMAIL PROTECTED]> a écrit : > > Hi all, > > I want to use zope 3 for an application which uses > a > > MySQL database. It seems that sqlos will be a good > > thing to use. The problem I have is that I can't > > access the svn repository to download th

Re: [Zope3-Users] Newbie

2006-03-29 Thread Stéphane Brault
Thanks a lot, Stéphane --- baiju m <[EMAIL PROTECTED]> a écrit : > On 3/29/06, Stéphane Brault > <[EMAIL PROTECTED]> wrote: > > Hi all, > > I want to use zope 3 for an application which uses > a > > MySQL database. It seems that sqlos will be a good > > thing to use. The problem I have is that I

Re: [Zope3-Users] Newbie

2006-03-29 Thread Jonathan
Hi all, I want to use zope 3 for an application which uses a MySQL database. It seems that sqlos will be a good thing to use. The problem I have is that I can't access the svn repository to download the latest version since I don't have the reqired login and password. I have the same problem with

Re: [Zope3-Users] Newbie

2006-03-29 Thread baiju m
On 3/29/06, Stéphane Brault <[EMAIL PROTECTED]> wrote: > Hi all, > I want to use zope 3 for an application which uses a > MySQL database. It seems that sqlos will be a good > thing to use. The problem I have is that I can't > access the svn repository to download the latest > version since I don't

[Zope3-Users] Newbie

2006-03-29 Thread Stéphane Brault
Hi all, I want to use zope 3 for an application which uses a MySQL database. It seems that sqlos will be a good thing to use. The problem I have is that I can't access the svn repository to download the latest version since I don't have the reqired login and password. I have the same problem with z

Re: [Zope3-Users] Newbie question...

2006-03-21 Thread Stephan Richter
On Tuesday 21 March 2006 18:47, Thierry FLORAC wrote: > Of course, I'm not sure to really understand the difference between this > code and the previous one, and why this "object" inheritance is so > important (I've always thought that every Python class was automatically > inheriting from "object"

Re: [Zope3-Users] Newbie question...

2006-03-21 Thread Thierry FLORAC
On Tue, 2006-03-21 at 17:59 -0500, Stephan Richter wrote: > On Tuesday 21 March 2006 17:39, Thierry FLORAC wrote: > > class IPhotoStorage: > > Well, this needs to inherit Interface. Of course it is ! I just forgot to put the correct syntax for this inheritance in my post... :-( > > clas

Re: [Zope3-Users] Newbie question...

2006-03-21 Thread Stephan Richter
On Tuesday 21 March 2006 17:39, Thierry FLORAC wrote: >     class IPhotoStorage: Well, this needs to inherit Interface. >     class PhotoStorage: try to make this a new-style class: class PhotoStorage(object) Let me know what the outcome was. Regards, Stephan -- Stephan Richter CBU Physics &

Re: [Zope3-Users] Newbie question...

2006-03-21 Thread Thierry FLORAC
On Mon, 2006-03-20 at 19:02 -0500, Stephan Richter wrote: > On Monday 20 March 2006 17:26, Thierry FLORAC wrote: > > Actually, the only working way I found to update my annotations through > > my adapters is always to use "form" directives with the help of a > > support class using "getData/setData

Re: [Zope3-Users] Newbie question...

2006-03-20 Thread Stephan Richter
On Monday 20 March 2006 17:26, Thierry FLORAC wrote: > Actually, the only working way I found to update my annotations through > my adapters is always to use "form" directives with the help of a > support class using "getData/setData" methods which call the adapter > directly... Can you post the c

Re: [Zope3-Users] Newbie question...

2006-03-20 Thread Thierry FLORAC
On Mon, 2006-03-20 at 09:45 -0500, Stephan Richter wrote: On Saturday 04 March 2006 10:01, Thierry FLORAC wrote: >  - define "editform" in browser's "configure.zcml" => probably bad ! If the "for" attribute differs from the "schema" attribute in the edit form, the form will automatically lo

Re: [Zope3-Users] Newbie question...

2006-03-20 Thread Stephan Richter
On Saturday 04 March 2006 10:01, Thierry FLORAC wrote: >  - define "editform" in browser's "configure.zcml" => probably bad ! If the "for" attribute differs from the "schema" attribute in the edit form, the form will automatically look up an adapter from the context object (implementing the "for

Re: [Zope3-Users] Newbie question...

2006-03-06 Thread Thierry FLORAC
On Tue, 2006-03-07 at 01:20 +0100, Thierry FLORAC wrote: > My code is in fact very simple : > > class IPhotoStorage: > identifier = TextLine(...) > hostname = TextLine(...) > > PhotoStorageKey = "http://www.ulthar.net/keys/storage"; > >

Re: [Zope3-Users] Newbie question...

2006-03-06 Thread Thierry FLORAC
On Sat, 2006-03-04 at 16:01 +0100, Thierry FLORAC wrote: > I've started to create a few components with Zope-3.2. > Until now, everything is OK for simple content components and a few > utilities. > > I'm actually trying to develop new adapters. > One of these adapters is designed to use annotatio

[Zope3-Users] Newbie question...

2006-03-04 Thread Thierry FLORAC
  Hi, I've started to create a few components with Zope-3.2. Until now, everything is OK for simple content components and a few utilities. I'm actually trying to develop new adapters. One of these adapters is designed to use annotations, but I can't make it working in Zope3 management inter

RE: [Zope3-Users] newbie design questions for UI to external data

2006-02-14 Thread Shaun Cutts
Gary, Thanks for the reply. > On Feb 13, 2006, at 10:33 PM, Shaun Cutts wrote: > > > Um... > > > > I guess I must have asked too many questions at once :) > > :-) and this is still a bit much for me. > > > I've implemented > > a first pass of a container for external data and got it working on

Re: [Zope3-Users] newbie design questions for UI to external data

2006-02-14 Thread Gary Poster
On Feb 13, 2006, at 10:33 PM, Shaun Cutts wrote: Um... I guess I must have asked too many questions at once :) :-) and this is still a bit much for me. I've implemented a first pass of a container for external data and got it working on some of my collections. I've included the (first

RE: [Zope3-Users] newbie design questions for UI to external data

2006-02-13 Thread Shaun Cutts
Um... I guess I must have asked too many questions at once :) I've implemented a first pass of a container for external data and got it working on some of my collections. I've included the (first pass of the) base DBContainer and DBContained objects for criticism, and would be very grateful if an

[Zope3-Users] newbie design questions for UI to external data

2006-02-10 Thread Shaun Cutts
Hello, I'm trying to write a zope3 UI for data in an RDBMS with python business logic. (Hence updates shouldn't go directly to the database; queries are probably best off using the marshalling code in business logic as well, but could use direct query if its especially easy.) I was trying to adap

Re: [Zope3-Users] newbie problems with new content-type

2006-02-09 Thread wata
> > Ok, that's my problem. My package was outside the instance lib > directory. I think I have read in the Zope Developers Book that you > could put your application anywhere in your harddisk as long as > PYTHONPATH includes it. > I understand that. a month ago I was in the same situation as

Re: [Zope3-Users] newbie problems with new content-type

2006-02-09 Thread Lorenzo Gil Sanchez
[EMAIL PROTECTED] wrote: 'test' command searches only packages under "instance_lib". and "instance_lib" is 'c:\path\to\your\instance\lib\python' Ok, that's my problem. My package was outside the instance lib directory. I think I have read in the Zope Developers Book that you could put your

Re: [Zope3-Users] newbie problems with new content-type

2006-02-08 Thread wata
> > c:\path\to\my\instance\bin\test -vpu --dir z:\my_root_app_dir > [ traceback ] > ImportError: No module named z:.my_root_app_dir > > So I go to the z:\ dir and try another form: > > c:\path\to\my\instance\bin\test -vpu --dir my_root_app_dir > Running tests at level 1 > Total: 0 tests, 0 failu

Re: [Zope3-Users] newbie problems with new content-type

2006-02-08 Thread Lorenzo Gil Sanchez
Chris Withers wrote: Lorenzo Gil Sanchez wrote: c:\path\to\my\instance\bin\test -vpu --dir z:\my_root_app_dir [ traceback ] ImportError: No module named z:.my_root_app_dir Is my_root_app_dir on your PYTHON_PATH? Yes it is also, do you have __init__.py files in \tests? Yes I do If you

Re: [Zope3-Users] newbie problems with new content-type

2006-02-07 Thread Chris Withers
Lorenzo Gil Sanchez wrote: c:\path\to\my\instance\bin\test -vpu --dir z:\my_root_app_dir [ traceback ] ImportError: No module named z:.my_root_app_dir Is my_root_app_dir on your PYTHON_PATH? try this just before you run the test: set PYTHON_PATH=%PYTHON_PATH%;z:\my_root_app_dir also, do you

Re: [Zope3-Users] newbie problems with new content-type

2006-02-06 Thread Lorenzo Gil Sanchez
Christoph Frick wrote: On Mon, Feb 06, 2006 at 06:48:30PM +0100, Lorenzo Gil Sanchez wrote: c:\path\to\my\instance\bin\test -vpu --dir z:\my_root_app_dir [ traceback ] ImportError: No module named z:.my_root_app_dir dunnonothing about windows - but either the test-environment can not handle t

Re: [Zope3-Users] newbie problems with new content-type

2006-02-06 Thread Christoph Frick
On Mon, Feb 06, 2006 at 06:48:30PM +0100, Lorenzo Gil Sanchez wrote: > c:\path\to\my\instance\bin\test -vpu --dir z:\my_root_app_dir > [ traceback ] > ImportError: No module named z:.my_root_app_dir dunnonothing about windows - but either the test-environment can not handle the leading "letter:"

[Zope3-Users] newbie problems with new content-type

2006-02-06 Thread Lorenzo Gil Sanchez
Hi, I'm trying to get my first content-type working and I have some problems. For the record, I'm following Stephan great book and I'm running Zope 3.2.0 on Windows. My content-type represents a Provider and is quite simple. The first problem I have is when I try to run the tests with the fo

Re: [Zope3-Users] newbie: can't find ZopeTop

2005-12-08 Thread TAHARA Yusei
Hi. At Thu, 08 Dec 2005 09:28:43 +, CGIP CGIP wrote: > > hi list > have loaded zope3 on windows and have tried the url > http://localhost:9080/++skin++ZopeTop > (from ZopetopTenChanges document - 1st task) > > "the connection was refused when attempting to contact > loacalhost:9080" > > do

[Zope3-Users] newbie: can't find ZopeTop

2005-12-08 Thread CGIP CGIP
hi list have loaded zope3 on windows and have tried the url http://localhost:9080/++skin++ZopeTop (from ZopetopTenChanges document - 1st task) "the connection was refused when attempting to contact loacalhost:9080" do i need to fiddle with something ? cheers rich ___

Re: [Zope3-Users] Newbie, unit.test errors after install

2005-09-10 Thread Benji York
Gregor n wrote: I just installed Zope 3.0.1 on Redhat Linux 9, using python 2.4 and get running make check: "/usr/local/ZopeX3-3.0.1/build/lib.linux-i686-2.4/zdaemon/tests/testzdrun.py", line 244, in testUmask self.assert_(not os.access(path, os.W_OK)) File "/usr/local/lib/python2.4/uni

[Zope3-Users] Newbie, unit.test errors after install

2005-09-10 Thread Gregor Horvath
Hi, I just installed Zope 3.0.1 on Redhat Linux 9, using python 2.4 and get running make check: == FAIL: testRunIgnoresParentSignals (zdaemon.tests.testzdrun.ZDaemonTests) --