[Zope3-Users] Re: Re: Re: Please Guido, pick me, pick me!
On Mon, 06 Feb 2006 06:15:45 -, Brad Allen [EMAIL PROTECTED] wrote: By new website, do you mean a Zope 3 advocacy site, or a general documentation site? Making a separate site for advocacy seems like a no-brainer (ala Pythonology.org), but the documentation site is another matter. Have the Zope 3 core developers decided to split Zope 3 documentation onto a completely separate site? Maybe this has already been discussed on the Zope3-dev list, which I haven't yet looked at. I think it's best if the documentation (esp. in the form of easy-access tutorials) is part of the advocacy. If you're advocating a development framework, the only thing that's going to sell it to developers is actual code - examples, demos, and a demonstration that there is sufficienet documentation there to make it possible for them to learn it (which includes pointers to the ++apidoc++ stuff!). I'd say make a site that works on message, but make it possible to slot documentation in there. Also, solicit the help of the wider community - I'm sure many other people have thought about how this may work and how it'd best be presented to them. Martin -- (muted) ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
[Zope3-Users] Re: Sqlalchemy and Zope3?
Wade Leftwich schrieb: Is anybody using Sqlalchemy (http://www.sqlalchemy.org/) with Z3? If so, any tips /examples to share? I'm building a semi-complicated MySQL database using sqlalchemy for a non-web application. Now, halfway through, we're saying You know, a web interface would really be nice here ... surprise! Any advice or useful links on Z3 with sqlalchemy in particular or rdb integration in general will be much appreciated. Hi Wade, we did some stuff with sqlalchemy and z3, so I could help you out with specific questions - but to my shame, there's no such thing as an easy, written tutorial for this (or at least none I could locate). We did 2 projects, but integrated sqlalchemy differently, since the apps differed significantly - so I could give you no general solution. But you're definitely on the right way to integrate a RDB into Zope3 ;-) - since SQLAlchemy shares a similar valueset (quality, simplicity, open-ness to python standards/reusability and style) with Zope3. Holger Froebe - Jena, Germany - ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] Looking up the schema of an adapter?
On Saturday 07 January 2006 13:46, Alec Munro wrote: I would like a straightforward way to lookup the schema and create the Add Form without having to instantiate the ProductOrder. Alternatively, if anyone can suggest any modifications to my overall system that will allow me the same functionality, that would be great. implementedBy(SomeClass) returns all implemented interfaces. You can even determine the content type using this API call, if you have the instance: from zope.app.content import queryContentType queryContentType(SomeClass()) Regards, Stephan -- Stephan Richter CBU Physics Chemistry (B.S.) / Tufts Physics (Ph.D. student) Web2k - Web Software Design, Development and Training ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] AttributeError: 'module' object has no attribute 'UTC'
On Sunday 08 January 2006 07:37, Przemysław Plewa wrote: I`ve got problem with my zope3: I know this is a late response for such a critical question, but which Zope are you using? Does it work in a recent trunk? Regards, Stephan -- Stephan Richter CBU Physics Chemistry (B.S.) / Tufts Physics (Ph.D. student) Web2k - Web Software Design, Development and Training ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] Re: Re: Please Guido, pick me, pick me!
On Monday 06 February 2006 01:15, Brad Allen wrote: By new website, do you mean a Zope 3 advocacy site, or a general documentation site? Making a separate site for advocacy seems like a no-brainer (ala Pythonology.org), but the documentation site is another matter. Have the Zope 3 core developers decided to split Zope 3 documentation onto a completely separate site? Maybe this has already been discussed on the Zope3-dev list, which I haven't yet looked at. Any site, any focus would be good. Anything at all is an improvement! :-) We have not decided anything about documentation. The only thing that we have done is develop a tool to generate the static apidoc, which is 98% done (it only has some bugs left). Regards, Stephan -- Stephan Richter CBU Physics Chemistry (B.S.) / Tufts Physics (Ph.D. student) Web2k - Web Software Design, Development and Training ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] Example Apps for Newbies
On Sunday 05 February 2006 16:43, Paul Dumais wrote: Should any of these be removed? Should any be added? The style of them is more or less outdated in some areas, but I think they are generally still good examples. There is also the book.messageboard from my book, which could be used. Regards, Stephan -- Stephan Richter CBU Physics Chemistry (B.S.) / Tufts Physics (Ph.D. student) Web2k - Web Software Design, Development and Training ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] passing data to nextURL()
On Wednesday 25 January 2006 10:43, Rupert Redington wrote: I'm currently writing a blogging application in zope3, and enjoying the learning curve after some years working with zope/plone. This is really good to hear. I would love to see a good blog for Zope 3, because I could then start a Zope 3 site for my homepage. I can affect this behaviour to some extent using nextURL() but the best I can manage is to construct a nextURL which is in some way connected to the comment's location. (using Stephan's post to this list http://www.mail-archive.com/zope3-users@zope.org/msg01048.html ) So far attempts to use the HTTP_REFERER from the request headers have failed since by the time nextURL comes into play the trail has gone cold. In what way (or ways) am I being wrongheaded and what would be a zope3ish solution to this case? How would you do it in another framework? One solution would be to pass along a nextURL field name. Would that work for you? Regards, Stephan -- Stephan Richter CBU Physics Chemistry (B.S.) / Tufts Physics (Ph.D. student) Web2k - Web Software Design, Development and Training ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] Re: Zope3-users Digest, Vol 15, Issue 31
On Thursday 19 January 2006 12:05, Paul Dumais wrote: I noticied that the installation documentation does not explicitly explain how to install SchooBell within an existing Zope3 installation (though it says this is possible). Could someone give a brief overview of how this is done? Would I be better off contacting the SchoolBell developers? Yeah, please send a message to schooltool@schooltool.org or [EMAIL PROTECTED] Regards, Stephan -- Stephan Richter CBU Physics Chemistry (B.S.) / Tufts Physics (Ph.D. student) Web2k - Web Software Design, Development and Training ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] Simple Acquisition
On 2/4/06, David Johnson [EMAIL PROTECTED] wrote: If I understand correctly, a non-technical web designer would not be able to do much design work with Zope 3 unless they understand how to program interfaces also or they would have to design the old-fashioned way by creating a separate page for each item/folder they want to display? A web application platform is not something you design with. Teaching the web designer interfaces an python probably does not help, you still can't design it with Zope 3. You design *for* Zope 3, which is an altogether different issue. Zope 2 was a way to create web sites, that was too good at it and got used as an application server instead. Zope 3 is an application server. http://blogs.nuxeo.com/sections/blogs/lennart_regebro/2005_10_04_zope2-vs-zope3-faq ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] Re: Get classes implementing Interface
Am Montag, 6. Februar 2006 12:19 schrieb Stephan Richter: On Sunday 08 January 2006 10:01, Florian Lindner wrote: I do it this way now: utils = getUtilitiesFor(IFactory) self.objects = {} for i in utils: if IContainer in i[1].getInterfaces(): the UtilityVocabulary gives the same result as getUtilitiesFor. But that does not list all classes, for example there is no class of the normal Folder. This is bad and I think a bug. Could you report it as an issue or even investigate it further and make a suggestion? I'm not sure if I described it correctly. I've the following code: def __call__(self): from zope.app.zapi import * from zope.component.interfaces import IFactory from zope.app.container.interfaces import IContainer utils = getUtilitiesFor(IFactory) for i in utils: if zope.app.content.Folder == i[0]: import pdb; pdb.set_trace() at the breakpoint: (Pdb) i (u'zope.app.content.Folder', Factory for class 'zope.app.folder.folder.Folder') (Pdb) i[1].getInterfaces() implementedBy zope.app.folder.folder.Folder (Pdb) IContainer in i[1].getInterfaces() False Should the latter return True? If yes and therefore it is a bug I'll try to investigate if further and/or report an issue. Florian ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
[Zope3-Users] newbie problems with new content-type
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 following code: 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 failures, 0 errors So no tests found. But when I run this command: Z:\c:\python24\python my_root_app_dir\tests\test_provider.py . -- Ran 1 test in 0.010s OK It *runs* 1 test. What am I doing wrong? Second question: When I register my content-type in Zope using a configure.zcml in the root directory and a browser package with its own configure.zcml everything seems to work fine. I can see an entry in the Add menu for my content type. When I click on that entry I see a nice autogenerated form for the Provider. I fill some fields and click the Add button and then I get a security exception: ForbiddenAttribute: ('name', my_root_app_dir.provider.Provider object at 0x034A2730) I'm logging in as the only principal in my zope instance which is the one created with the mkzopeinstance script. In the configure.zcml file of the browser subpackage I have this code: addform label=Add Provider name=AddProvider.html schema=my_root_app_dir.interfaces.IProvider content_factory=my_root_app_dir.provider.Provider fields=name phone address email permission=zope.ManageContent / Any help is greatly appreciated. Thanks Lorenzo Gil ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] newbie problems with new content-type
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 the leading letter: or a relative path is expected. Yeah, that's what I though so I try executing it with relative paths as you can see from my second try (in the original message). ForbiddenAttribute: ('name', my_root_app_dir.provider.Provider object at 0x034A2730) addform label=Add Provider name=AddProvider.html schema=my_root_app_dir.interfaces.IProvider content_factory=my_root_app_dir.provider.Provider fields=name phone address email permission=zope.ManageContent / is it possible you forgot to provide permissions for setting the schema? content class=.provider.Provider implements interface=zope.app.annotation.IAttributeAnnotatable / require permission=zope.View interface=.interface.IProvider / require permission=zope.ManageContent set_schema=.interfaces.IProvider / /content where interface.IProvider should have an attribute ``name''. Thanks a lot Christoph. That was exactly my problem. It's great to have so fast feedback. Lorenzo ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
[Zope3-Users] Zope 3 Marketing Competition? (was Re: [Zope3-dev] Re: Selecting a code name)
On Feb 6, 2006, at 5:37 PM, Martin Aspeli wrote: [...] This is about getting people to *understand* what Zope is about, to understand that we *care* that they understand and that we made an *effort* to make it easy for them to get into it. It's about lowering the barrier to entry and the risk that they'll spend time learning something that'll turn out to be a dead end. It's about showing off that Zope can be sexy and knock the socks off the competition. It's about generating some excitement, not just a dreary list of technical blather. [...] How about we have a marketing competition? :-) The goal would be to set a date, like end of February or end of March, at which point everyone would submit their entries. Entries would be something like a one-to-three page brochure website. We'd vote...maybe within categories like 'marketing copy', 'layout', 'logo', and 'overall concept'. Winners would have net fame, and we'd put top contenders up on a zope*.org site. Maybe we could do something else small for the winners too? Any ideas? Minimal requirements to get this to happen: - final submission date - enough people committing to have an entry (maybe 10? 15? I think *everyone* potentially has something to offer here, so the numbers would ideally be even bigger...but I won't hold my breath :-) - someone willing to organize - a web site to post the results to. ;-) If the due date is in March or later, I'll volunteer to organize, if there's enough interest and then enough commitments to enter. That said, if someone else wanted to volunteer to organize, I'd gladly hand the reins over. ;-) Is this crazy? Gary ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users