[Zope3-Users] zope3 debian/testing ZopeXMLConfigurationError
hello list, I'm new to zope3 and want to install it on a debian/testing box. when i want to start the sandbox instanz with the following command mawensi:/home/martin# /var/lib/zope3/instance/sandbox/bin/runzope i get this error mesage: Traceback (most recent call last): File "/var/lib/zope3/instance/sandbox/bin/runzope", line 48, in ? run() File "/var/lib/zope3/instance/sandbox/bin/runzope", line 44, in run main(["-C", CONFIG_FILE] + sys.argv[1:]) File "/usr/lib/python2.4/site-packages/zope/app/twisted/main.py", line 74, in main service = setup(load_options(args)) File "/usr/lib/python2.4/site-packages/zope/app/twisted/main.py", line 139, in setup zope.app.appsetup.config(options.site_definition, features=features) File "/usr/lib/python2.4/site-packages/zope/app/appsetup/appsetup.py", line 110, in config context = xmlconfig.file(file, context=context, execute=execute) File "/usr/lib/python2.4/site-packages/zope/configuration/xmlconfig.py", line 554, in file include(context, name, package) File "/usr/lib/python2.4/site-packages/zope/configuration/xmlconfig.py", line 490, in include processxmlfile(f, context) File "/usr/lib/python2.4/site-packages/zope/configuration/xmlconfig.py", line 345, in processxmlfile parser.parse(src) File "/usr/lib/python2.4/xml/sax/expatreader.py", line 107, in parse xmlreader.IncrementalParser.parse(self, source) File "/usr/lib/python2.4/xml/sax/xmlreader.py", line 123, in parse self.feed(buffer) File "/usr/lib/python2.4/xml/sax/expatreader.py", line 207, in feed self._parser.Parse(data, isFinal) File "/usr/lib/python2.4/xml/sax/expatreader.py", line 348, in end_element_ns self._cont_handler.endElementNS(pair, None) File "/usr/lib/python2.4/site-packages/zope/configuration/xmlconfig.py", line 326, in endElementNS self.context.end() File "/usr/lib/python2.4/site-packages/zope/configuration/config.py", line 544, in end self.stack.pop().finish() File "/usr/lib/python2.4/site-packages/zope/configuration/config.py", line 690, in finish actions = self.handler(context, **args) File "/usr/lib/python2.4/site-packages/zope/configuration/xmlconfig.py", line 490, in include processxmlfile(f, context) File "/usr/lib/python2.4/site-packages/zope/configuration/xmlconfig.py", line 345, in processxmlfile parser.parse(src) File "/usr/lib/python2.4/xml/sax/expatreader.py", line 107, in parse xmlreader.IncrementalParser.parse(self, source) File "/usr/lib/python2.4/xml/sax/xmlreader.py", line 123, in parse self.feed(buffer) File "/usr/lib/python2.4/xml/sax/expatreader.py", line 207, in feed self._parser.Parse(data, isFinal) File "/usr/lib/python2.4/xml/sax/expatreader.py", line 348, in end_element_ns self._cont_handler.endElementNS(pair, None) File "/usr/lib/python2.4/site-packages/zope/configuration/xmlconfig.py", line 326, in endElementNS self.context.end() File "/usr/lib/python2.4/site-packages/zope/configuration/config.py", line 544, in end self.stack.pop().finish() File "/usr/lib/python2.4/site-packages/zope/configuration/config.py", line 690, in finish actions = self.handler(context, **args) File "/usr/lib/python2.4/site-packages/zope/configuration/xmlconfig.py", line 490, in include processxmlfile(f, context) File "/usr/lib/python2.4/site-packages/zope/configuration/xmlconfig.py", line 345, in processxmlfile parser.parse(src) File "/usr/lib/python2.4/xml/sax/expatreader.py", line 107, in parse xmlreader.IncrementalParser.parse(self, source) File "/usr/lib/python2.4/xml/sax/xmlreader.py", line 123, in parse self.feed(buffer) File "/usr/lib/python2.4/xml/sax/expatreader.py", line 207, in feed self._parser.Parse(data, isFinal) File "/usr/lib/python2.4/xml/sax/expatreader.py", line 348, in end_element_ns self._cont_handler.endElementNS(pair, None) File "/usr/lib/python2.4/site-packages/zope/configuration/xmlconfig.py", line 326, in endElementNS self.context.end() File "/usr/lib/python2.4/site-packages/zope/configuration/config.py", line 544, in end self.stack.pop().finish() File "/usr/lib/python2.4/site-packages/zope/configuration/config.py", line 689, in finish args = toargs(context, *self.argdata) File "/usr/lib/python2.4/site-packages/zope/configuration/config.py", line 1381, in toargs args[str(name)] = field.fromUnicode(s) File "/usr/lib/python2.4/site-packages/zope/configuration/fields.py", line 139, in fromUnicode value = self.context.resolve(name) File "/usr/lib/python2.4/site-packages/zope/configuration/config.py", line 184, in resolve mod = __import__(mname, *_import_chickens) File "/usr/lib/python2.4/site-packages/zope/app/twisted/http.py", line 23, in ? from twisted.web2.channel.http import HTTPFactory zope.configuration.xmlconfig.ZopeXMLConfigurationError: File "/var/lib/zope3/instance/sandbox/etc/site.zcml", line 7.2-7.55 ZopeXMLCo
[Zope3-Users] more efficient role -> permission mapping in ZCML
Hello, I'v a number of permissions (A, B, C, D) which I want to map to a number of roles (x, y, z). x should have permission A, B, C, D y should have A, B, C z should have A Is there a faster way of doing that in ZCML than and so on? Thanks, Florian ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
[Zope3-Users] modified layout from web
I very want modified layout ('skin_macros') of my site throw web. How i can do it? I try create 'PageFolder'-utility but after create 'skin_macros'-ZPT my site down & crach (is it bug?). Thanks. ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
RE: [Zope3-Users] SQL integration
Here is the kind of thing I've been doing -- keep in mind, I'm still new at this. I'm not using connection caching as I let the database handle that - I find it smarter and more powerful than Zope in this area (and just simpler). I have found the ISQLScript implementation to be a good example; see if you can find and examine the source to that. You can build off of this as well if you want to use DTML. I find I don't need DTML, so I don't. My general approach for SQL integration is to create a content object that represents my database application and it has different views, and contains objects from the database as need be. In this way, I can have one database connection used by all the views and objects, without having to manually select the connection for each object or view. Unlike sqlos, I do not need to put it in a file and I can keep everything TTW. I'm trying to brief, so if you need more ideas, let me know. -- from zope.interface import implements from interfaces import ICustomerApplication from zope.app import zapi from zope.app.rdb import queryForResults from zope.app.rdb.interfaces import IZopeDatabaseAdapter from zope.app.container.btree import BTreeContainer class CustomerApplication(BTreeContainer): """A transaction object.""" implements(ICustomerApplication) def __init__(self, connectionName=''): super(BTreeContainer, self).__init__() self.connectionName = connectionName def _setConnectionName(self, name): self._connectionName = name def _getConnectionName(self): return self._connectionName def getConnection(self): name = self.connectionName connection = zapi.getUtility(IZopeDatabaseAdapter, name) return connection() def listContacts(self): """List all of the functions""" try: connection = self.getConnection() except KeyError: raise AttributeError("The database connection '%s' cannot be " "found." % (self.connectionName)) query = "select * from contacts" result = queryForResults(connection, query) return result # See zope.app.sqlscript.interfaces.ISQLScript connectionName = property(_getConnectionName, _setConnectionName) -- Interface... class ICustomerApplication(IContainer): """A Customer Application.""" connectionName = Choice( title=u"Connection Name", description=u"The Connection Name for the connection to be used.", vocabulary="Connection Names", required=False) -- My browser view is configured like: -- Page template something like: First Name Last Name Eileen Dover ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
RE: [Zope3-Users] SQL integration
Thanks for the response. Are you using ZSQL or DB-ABI? If ZSQL: suppose you want to select * from foo where How is that written in the filesystem (in particular, how are parameters written?) if DB-ABI: are you doing connection caching? jim penny "David Johnson" <[EMAIL PROTECTED]> wrote on 02/21/2006 07:55:56 PM: > I've been able to do some basic things, depending upon what you're looking > for. I'm still exploring the best methods. So far I've found I have to do > everything on the file system. I'm still playing but I'm close mastering > the basic database operations. > > > > -Original Message- > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > > On Behalf Of [EMAIL PROTECTED] > > Sent: Tuesday, February 21, 2006 5:51 PM > > To: zope3-users@zope.org > > Subject: [Zope3-Users] SQL integration > > > > Does anyone have a trivial example? > > > > Can ZSQL methods reside on the filesystem or are they currently TTW only? > > > > Is there any working ODBC access yet? > > > > I know that ZODB is the preferred database for many people, but, > > I need to access data from non-Zope based applications. > > > > TIA > > > > jim penny > > ___ > > 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
Re: [Zope3-Users] The Zope Software Certification Program and CommonRepository Proposal
On Wednesday 22 February 2006 07:24, Lukasz Lakomy wrote: > Hello Stephan and all > > I think this is a very good idea. As far as I can see we are talking only > about certification of packages. I've read all post about this and have few > suggestions. Yes, we are talking only about package certification. The suggestions below are clearly out of scope for this proposal, though I have commented on them a little. > 1. Zope Certified Company. Soemthing similar to certificates given by > commercial companies: Microsoft, Oracle etc. Sometimes there are companies > creating comemrcial aplications with Zope. They have no possibility to make > them open source or to contribute to Zope 3 development. But they want to > measure their quality of work and comapre to other companies/competitors. > So I'm thinking also about levels of maturity for company. It could be > achieved by participations in some trainings or maybe by audits from Zope > Corporation. It won't be free of course! It always look nice on the comapny > website where there is a logo "Technology X certifies" and makes the > comapny trustworthy. I think such a company certification only makes sense in the context of the Zope Foundation. It is very difficult to come up with a protocol that a company must implement to be certified. Mmh, this begs the question: What does it mean for a company to be Zope certified? From the experience of writing the discussed proposal, I know that it is very difficult to come up with measurable metrics for the certification. And for companies, this might be even more difficult. Would we want certified companies to follow a defined process, like requiring UML modeling, design documents, specified development process (i.e. XP), etc.? To find agreement among companies will be very difficult. On a totally different note: Commercial Zope software can apply for certification. I was very careful in the ZSCP description to not require fields that only Open Source packages could fulfill. On the other hand, it will be tricky for those companies to get their code certified, because I doubt that core developers are willing to sign non-disclosure agreements just to certify the code. > 2. Zope Certified Programmer. They are also certificates for persons who > know given technology. Why we cannot make it for Zope also? For example if > a company wats to employ a programer it could state that he needs Zope > Certified Programmer Level X. This shows the maturity of developer and be > motivating for him. The base leves should be obtained by sending some piece > of code, next level after some Internet chat, rest maybe on exams during > sprints or in the company that are being certified. The knowledge for base > levels should be checked via Internet because of long distances. It also > should be free or very cheap, the higher levels may be more expensive. Again, finding the right measurable metrics are very difficult. I think it cannot just be a generic Zope certification. For example, the certification exam might ask how to install Zope 2 product or setup CMF membership. Since I am not working with either Zope 2 or CMF, I would fail the certification exam. So the trick here is to define small units of certification, like "general Zope 3 development", "CMF Site development", "Zope 2 product development", "ZPT Level X", etc. Each certification level would have to specify exactly the knowledge that should be required. Further test questions would need to be developed that are kept away from public exposure. You can see where this goes. BTW, I Zope Corp. tried certification for programmers once, but they seemed to have dropped it: http://mail.zope.org/pipermail/zope-announce/2001-November/000618.html Overall I would be interested in seeing such initiatives, since it would only strengthen the purpose of the ZF and provide value to decision makers. However, I have no time working on such a proposal, but I would be glad to comment on one. 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] The Zope Software Certification Program and CommonRepository Proposal
Hello Stephan and all I think this is a very good idea. As far as I can see we are talking only about certification of packages. I've read all post about this and have few suggestions. 1. Zope Certified Company. Soemthing similar to certificates given by commercial companies: Microsoft, Oracle etc. Sometimes there are companies creating comemrcial aplications with Zope. They have no possibility to make them open source or to contribute to Zope 3 development. But they want to measure their quality of work and comapre to other companies/competitors. So I'm thinking also about levels of maturity for company. It could be achieved by participations in some trainings or maybe by audits from Zope Corporation. It won't be free of course! It always look nice on the comapny website where there is a logo "Technology X certifies" and makes the comapny trustworthy. 2. Zope Certified Programmer. They are also certificates for persons who know given technology. Why we cannot make it for Zope also? For example if a company wats to employ a programer it could state that he needs Zope Certified Programmer Level X. This shows the maturity of developer and be motivating for him. The base leves should be obtained by sending some piece of code, next level after some Internet chat, rest maybe on exams during sprints or in the company that are being certified. The knowledge for base levels should be checked via Internet because of long distances. It also should be free or very cheap, the higher levels may be more expensive. Lukasz Lakomy > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of Stephan Richter > Sent: Monday, February 20, 2006 10:31 PM > To: zope@zope.org; zope-dev@zope.org; zope3-dev@zope.org; > zope3-users@zope.org > Subject: [Zope3-Users] The Zope Software Certification Program > and CommonRepository Proposal > > > Hello everyone, > > With the development of Zope 3, the Zope developers committed to a new > development process and higher software quality guidelines. With > the adoption > of Zope 3 technologies in the wider Zope community, we should also start > using the process for third party package development. > > I have spent the last two weeks working on a proposal that defines a Zope > Software Certification Program (ZSCP) and a Common Repository > that implements > this process. The proposal is attached to this mail. I welcome > any comments > about it! > > In the pre-publication phase of the proposal, I have worked with a small > committee to receive initial feedback. For the purpose of this > proposal, I > will not be representing a particular Zope sub-community, but > instead act as > a mediator among the parties of interest. I will try my best to > answer all > concerns and comments in a neutral manner. > > I would like to thank all pre-proposal committee members for > their time and > valuable input. > > Thanks for your time! > > Regards, > Stephan > > P.S.: Sorry for the cross post! > -- > 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