[Grok-dev] Re: grok application based on zopeproject

Jan-Wijbrand Kolman janwijbrand at gmail.com
Sun Dec 23 07:13:18 EST 2007


Philipp von Weitershausen wrote:
> Jan-Wijbrand Kolman wrote:
>> Just a little "FYI".
> 
> Cool! Thanks for posting this!
> 
>> I played arround with getting Grok running in a project created by the
>> "zopeproject" tool. As far as I can see now it requires only a little
>> manual work after running zopeproject.
>>
>> Below is a diff of a plain zopeproject-based instance against a
>> zopeproject-based project in which I got Grok running. Maybe it is
>> useful for someone.
> 
> Those diffs look backwards to me...
snip

Yup, your're right. I've been a bit too hasty with posting the diff.
Here's a cleaner one, including Christian's and your suggestions.


regards,
jw


diff -ur plain-zopeproject/MyProject/buildout.cfg
grok-on-zopeproject/MyProject/buildout.cfg
--- plain-zopeproject/MyProject/buildout.cfg	2007-12-23
13:09:35.000000000 +0100
+++ grok-on-zopeproject/MyProject/buildout.cfg	2007-12-23
13:10:18.000000000 +0100
@@ -1,4 +1,6 @@
 [buildout]
+extends = http://grok.zope.org/releaseinfo/grok-0.11.cfg
+versions = versions
 develop = .
 parts = app test
 find-links = http://download.zope.org/distribution/
diff -ur plain-zopeproject/MyProject/src/myproject/configure.zcml
grok-on-zopeproject/MyProject/src/myproject/configure.zcml
--- plain-zopeproject/MyProject/src/myproject/configure.zcml	2007-12-23
13:09:35.000000000 +0100
+++ grok-on-zopeproject/MyProject/src/myproject/configure.zcml
2007-12-23 13:10:38.000000000 +0100
@@ -1,4 +1,5 @@
 <configure xmlns="http://namespaces.zope.org/zope"
+           xmlns:grok="http://namespaces.zope.org/grok"
            i18n_domain="myproject">

   <include package="zope.security" file="meta.zcml" />
@@ -23,5 +24,7 @@
   <include package="zope.app.catalog" />

   <!-- Add your own component registrations here -->
+  <include package="grok" />
+  <grok:grok package="." />

 </configure>
diff -ur plain-zopeproject/MyProject/src/myproject/ftesting.zcml
grok-on-zopeproject/MyProject/src/myproject/ftesting.zcml
--- plain-zopeproject/MyProject/src/myproject/ftesting.zcml	2007-12-23
13:11:21.000000000 +0100
+++ grok-on-zopeproject/MyProject/src/myproject/ftesting.zcml	2007-12-23
13:11:04.000000000 +0100
@@ -1,9 +1,11 @@
 <configure xmlns="http://namespaces.zope.org/zope"
            xmlns:meta="http://namespaces.zope.org/meta"
+           xmlns:grok="http://namespaces.zope.org/grok"
            i18n_domain="myproject">

   <!-- Turn on the devmode -->
   <meta:provides feature="devmode" />
+  <include package="grok" />
   <include package="myproject" />

   <include package="zope.app.securitypolicy" file="meta.zcml" />



More information about the Grok-dev mailing list