[Checkins] SVN: Sandbox/pcardune/zobby/ adding skeleton setup and run scripts.

Paul Carduner paulcarduner at gmail.com
Thu May 3 21:11:04 EDT 2007


Log message for revision 75247:
  adding skeleton setup and run scripts.

Changed:
  A   Sandbox/pcardune/zobby/LICENSE.txt
  A   Sandbox/pcardune/zobby/Makefile
  A   Sandbox/pcardune/zobby/ZopePublicLicense.txt
  A   Sandbox/pcardune/zobby/etc/
  A   Sandbox/pcardune/zobby/etc/README.txt
  A   Sandbox/pcardune/zobby/etc/ftesting-base.zcml
  A   Sandbox/pcardune/zobby/etc/ftesting.zcml
  A   Sandbox/pcardune/zobby/etc/instance.conf
  A   Sandbox/pcardune/zobby/etc/overrides.zcml
  A   Sandbox/pcardune/zobby/etc/overrides_ftesting.zcml
  A   Sandbox/pcardune/zobby/etc/overrides_ftesting.zcml.in
  A   Sandbox/pcardune/zobby/etc/principals.zcml
  A   Sandbox/pcardune/zobby/etc/securitypolicy-ftesting.zcml
  A   Sandbox/pcardune/zobby/etc/securitypolicy.zcml
  A   Sandbox/pcardune/zobby/etc/site.zcml
  A   Sandbox/pcardune/zobby/etc/zope.conf
  A   Sandbox/pcardune/zobby/log/
  A   Sandbox/pcardune/zobby/setup.py
  U   Sandbox/pcardune/zobby/src/zobby/browser/browser.py
  A   Sandbox/pcardune/zobby/start.py
  A   Sandbox/pcardune/zobby/test.py
  A   Sandbox/pcardune/zobby/var/
  A   Sandbox/pcardune/zobby/var/Data.fs.tmp

-=-
Added: Sandbox/pcardune/zobby/LICENSE.txt
===================================================================
--- Sandbox/pcardune/zobby/LICENSE.txt	2007-05-04 00:29:51 UTC (rev 75246)
+++ Sandbox/pcardune/zobby/LICENSE.txt	2007-05-04 01:11:02 UTC (rev 75247)
@@ -0,0 +1,78 @@
+=======
+License
+=======
+
+
+Zope Public License 2.1
+-----------------------
+
+The Zope 3 application server is released under the Zope Public License 2.1.
+
+
+Zope Public License 2.0
+-----------------------
+
+The docutils package was implemented and placed in the public domain by
+David Goodger and others.
+
+We are rereleasing it under the terms of the Zope Public License 2.0.
+
+Exceptions to this are the following files within the docutils package:
+
+roman.py, by Mark Pilgrim:
+
+This program is free software; you can redistribute it and/or modify
+it under the terms of the Python 2.1.1 license, available at
+http://www.python.org/2.1.1/license.html
+
+
+ICU License - ICU 1.8.1 and later
+---------------------------------
+
+The XML files in locales directory in the zope.i18n package are
+made available under the ICU License:
+
+ICU License - ICU 1.8.1 and later
+
+COPYRIGHT AND PERMISSION NOTICE
+
+Copyright (c) 1995-2002 International Business Machines Corporation and others
+All rights reserved.
+
+Permission is hereby granted, free of charge, to any person obtaining a
+copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, and/or sell copies of the Software, and to permit persons
+to whom the Software is furnished to do so, provided that the above
+copyright notice(s) and this permission notice appear in all copies of
+the Software and that both the above copyright notice(s) and this
+permission notice appear in supporting documentation.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
+OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
+HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
+INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
+FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
+NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
+WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+
+Except as contained in this notice, the name of a copyright holder
+shall not be used in advertising or otherwise to promote the sale, use
+or other dealings in this Software without prior written authorization
+of the copyright holder.
+
+All trademarks and registered trademarks mentioned herein are the property 
+of their respective owners.
+
+
+PSF license agreement for Python 2.4
+------------------------------------
+
+The zope.testing.doctest module is a copy of the doctest module from
+the Python 2.4 standard library.  It if the property of the Python
+Software Foundation (PSF) and is covered by the PSF license agreement
+for Python 2.4.  We will no-longer distribute this module with Zope at
+some point on the future.


Property changes on: Sandbox/pcardune/zobby/LICENSE.txt
___________________________________________________________________
Name: svn:eol-style
   + native

Added: Sandbox/pcardune/zobby/Makefile
===================================================================
--- Sandbox/pcardune/zobby/Makefile	2007-05-04 00:29:51 UTC (rev 75246)
+++ Sandbox/pcardune/zobby/Makefile	2007-05-04 01:11:02 UTC (rev 75247)
@@ -0,0 +1,124 @@
+PYTHON=python2.4
+TESTFLAGS=-v
+TESTOPTS=
+SETUPFLAGS=
+LOCALES_BASE=`pwd`/src/jsalib/locales/
+DOMAINS="jsalib"
+DISCARDED_ZCML="apidoc-configure.zcml \
+apidoc-meta.zcml \
+buddydemo-configure.zcml \
+bugtracker-configure.zcml \
+cache-configure.zcml \
+dav-configure.zcml \
+dav-meta.zcml \
+debugskin-configure.zcml \
+exception-ftesting.zcml \
+file-configure.zcml \
+ftp-configure.zcml \
+helloworld-configure.zcml \
+i18nfile-configure.zcml \
+interpreter-configure.zcml \
+preference-configure.zcml \
+preference-meta.zcml \
+pythonpage-configure.zcml \
+rdb-configure.zcml \
+rdb-meta.zcml \
+renderer-meta.zcml \
+schemacontent-configure.zcml \
+sqlscript-configure.zcml \
+testbrowser-ftesting.zcml \
+tree-configure.zcml \
+undo-configure.zcml \
+workflow-configure.zcml \
+xmlintrospection-configure.zcml \
+z3checkins-configure.zcml \
+zope.app.boston-configure.zcml \
+zope.app.css-configure.zcml \
+zope.app.demo.insensitivefolder-configure.zcml \
+zope.app.demo.menu-configure.zcml \
+zope.app.demo.skinpref-configure.zcml \
+zope.app.demo.widget-configure.zcml \
+zope.app.dtmlpage-configure.zcml \
+zope.app.dtmlpage.fssync-configure.zcml \
+zope.app.externaleditor-configure.zcml \
+zope.app.file.fssync-configure.zcml \
+zope.app.folder.fssync-configure.zcml \
+zope.app.fssync-configure.zcml \
+zope.app.fssync-meta.zcml \
+zope.app.homefolder-configure.zcml \
+zope.app.module.fssync-configure.zcml \
+zope.app.pluggableauth-configure.zcml \
+zope.app.recorder-configure.zcml \
+zope.app.schema-configure.zcml \
+zope.app.sqlexpr-configure.zcml \
+zope.app.styleguide-configure.zcml \
+zope.app.wfmc-configure.zcml \
+zope.app.zptpage.fssync-configure.zcml \
+zope.app.zptpage.textindex-configure.zcml \
+zope.browsertestrecorder-configure.zcml \
+zope.dublincore.fssync-configure.zcml \
+zopetop-configure.zcml \
+zptpage-configure.zcml \
+zwiki-configure.zcml"
+
+all: inplace
+
+# Build in-place
+inplace:
+	$(PYTHON) setup.py $(SETUPFLAGS) \
+		build_ext -i install_data --install-dir Zope3
+	for file in "$(DISCARDED_ZCML)"; do \
+            rm -f "Zope3/zopeskel/etc/package-includes/$$file"; \
+        done;
+
+run:
+	$(PYTHON) start.py
+
+debug: principals.zcml
+	PYTHONPATH=`pwd`/src:$(PYTHONPATH) $(PYTHON) -i -c \
+            "from zope.app import Application;\
+             app = Application('Data.fs', 'site.zcml')()"
+
+clean:
+	find . \( -name '*.o' -o -name '*.so' -o -name '*.py[co]' -o -name '*.dll' \) -exec rm -f {} \;
+	rm -rf build
+	rm -f Zope3/zopeskel/etc/package-includes/*.zcml
+	rm -f Zope3/zopeskel/etc/securitypolicy.zcml
+
+realclean: clean
+	$(PYTHON) setup.py clean -a
+
+.PHONY: coverage
+coverage:
+	rm -rf coverage
+	mkdir coverage
+	$(PYTHON) test.py -vp1 --coverage=coverage \
+            -s z3c.form
+
+.PHONY: coverage-report
+coverage-report: coverage
+	rm -rf coverage/reports
+	mkdir coverage/reports
+	$(PYTHON) coverage_reports.py coverage coverage/reports
+
+i18nextract:
+	PYTHONPATH=`pwd`/Zope3/src:`pwd`/src:$(PYTHONPATH) \
+        $(PYTHON) i18nextract.py \
+            -d z3c.form -s `pwd`/etc/site.zcml -p src -o z3c/form/locales \
+	    -x zif -x zc
+
+i18nmerge:
+	PYTHONPATH=`pwd`/Zope3/src:$(PYTHONPATH) \
+          $(PYTHON) Zope3/utilities/i18nmergeall.py \
+          -l src/z3c/form/locales
+
+i18nstats:
+	PYTHONPATH=`pwd`/Zope3/src:$(PYTHONPATH) \
+          $(PYTHON) Zope3/utilities/i18nstats.py \
+          -l src/z3c/form/locales
+
+i18ncompile:
+	for domain in "$(DOMAINS)"; do \
+	    msgfmt -o $(LOCALES_BASE)de/LC_MESSAGES/$$domain.mo \
+	              $(LOCALES_BASE)de/LC_MESSAGES/$$domain.po; \
+	done;


Property changes on: Sandbox/pcardune/zobby/Makefile
___________________________________________________________________
Name: svn:eol-style
   + native

Added: Sandbox/pcardune/zobby/ZopePublicLicense.txt
===================================================================
--- Sandbox/pcardune/zobby/ZopePublicLicense.txt	2007-05-04 00:29:51 UTC (rev 75246)
+++ Sandbox/pcardune/zobby/ZopePublicLicense.txt	2007-05-04 01:11:02 UTC (rev 75247)
@@ -0,0 +1,54 @@
+Zope Public License (ZPL) Version 2.1
+-------------------------------------
+
+A copyright notice accompanies this license document that
+identifies the copyright holders.
+
+This license has been certified as open source. It has also
+been designated as GPL compatible by the Free Software
+Foundation (FSF).
+
+Redistribution and use in source and binary forms, with or
+without modification, are permitted provided that the
+following conditions are met:
+
+1. Redistributions in source code must retain the
+   accompanying copyright notice, this list of conditions,
+   and the following disclaimer.
+
+2. Redistributions in binary form must reproduce the accompanying
+   copyright notice, this list of conditions, and the
+   following disclaimer in the documentation and/or other
+   materials provided with the distribution.
+
+3. Names of the copyright holders must not be used to
+   endorse or promote products derived from this software
+   without prior written permission from the copyright
+   holders.
+
+4. The right to distribute this software or to use it for
+   any purpose does not give you the right to use
+   Servicemarks (sm) or Trademarks (tm) of the copyright
+   holders. Use of them is covered by separate agreement
+   with the copyright holders.
+
+5. If any files are modified, you must cause the modified
+   files to carry prominent notices stating that you changed
+   the files and the date of any change.
+
+Disclaimer
+
+  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS''
+  AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT
+  NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
+  AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN
+  NO EVENT SHALL THE COPYRIGHT HOLDERS BE
+  LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+  LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+  HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+  CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
+  OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
+  DAMAGE.


Property changes on: Sandbox/pcardune/zobby/ZopePublicLicense.txt
___________________________________________________________________
Name: svn:eol-style
   + native

Added: Sandbox/pcardune/zobby/etc/README.txt
===================================================================
--- Sandbox/pcardune/zobby/etc/README.txt	2007-05-04 00:29:51 UTC (rev 75246)
+++ Sandbox/pcardune/zobby/etc/README.txt	2007-05-04 01:11:02 UTC (rev 75247)
@@ -0,0 +1,11 @@
+======
+README
+======
+
+This is the location for all relevant configuration files where we use during 
+development.
+
+Perhaps we can use this configuration directly on productive servers but this
+will be tested before we make the first release. Right now this sturcture will
+give us the option to customize configuration files without to touch the Zope3
+package.


Property changes on: Sandbox/pcardune/zobby/etc/README.txt
___________________________________________________________________
Name: svn:eol-style
   + native

Added: Sandbox/pcardune/zobby/etc/ftesting-base.zcml
===================================================================
--- Sandbox/pcardune/zobby/etc/ftesting-base.zcml	2007-05-04 00:29:51 UTC (rev 75246)
+++ Sandbox/pcardune/zobby/etc/ftesting-base.zcml	2007-05-04 01:11:02 UTC (rev 75247)
@@ -0,0 +1,61 @@
+<configure
+   xmlns="http://namespaces.zope.org/zope"
+   xmlns:meta="http://namespaces.zope.org/meta"
+   i18n_domain="zope">
+
+  <!-- Turn on the devmode -->
+  <meta:provides feature="devmode" />
+
+  <!-- This file is the equivalent of site.zcml and it is -->
+  <!-- used for functional testing setup -->
+  <include files="../Zope3/zopeskel/etc/package-includes/*-meta.zcml" />
+
+  <include package="zope.app.zcmlfiles" />
+  <include package="zope.app.zcmlfiles" file="ftesting.zcml" />
+
+  <include files="../Zope3/zopeskel/etc/package-includes/*-configure.zcml" />
+  <include files="../Zope3/zopeskel/etc/package-includes/*-ftesting.zcml" />
+
+  <include file="securitypolicy.zcml" />
+  <include file="securitypolicy-ftesting.zcml" />
+
+  <!-- Principals -->
+
+  <unauthenticatedPrincipal
+      id="zope.anybody"
+      title="Unauthenticated User" />
+
+  <unauthenticatedGroup
+    id="zope.Anybody"
+    title="Unauthenticated Users"
+    />
+
+  <authenticatedGroup
+    id="zope.Authenticated"
+    title="Authenticated Users"
+    />
+
+  <everybodyGroup
+    id="zope.Everybody"
+    title="All Users"
+    />
+
+  <!-- Principal that tests generally run as -->
+  <principal
+      id="zope.mgr"
+      title="Manager"
+      login="mgr"
+      password="mgrpw" />
+
+  <!-- Bootstrap principal used to make local grant to the principal above -->
+  <principal
+      id="zope.globalmgr"
+      title="Manager"
+      login="globalmgr"
+      password="globalmgrpw" />
+
+  <grant role="zope.Manager" principal="zope.globalmgr" />
+
+  <includeOverrides file="overrides_ftesting.zcml" />
+
+</configure>


Property changes on: Sandbox/pcardune/zobby/etc/ftesting-base.zcml
___________________________________________________________________
Name: svn:eol-style
   + native

Added: Sandbox/pcardune/zobby/etc/ftesting.zcml
===================================================================
--- Sandbox/pcardune/zobby/etc/ftesting.zcml	2007-05-04 00:29:51 UTC (rev 75246)
+++ Sandbox/pcardune/zobby/etc/ftesting.zcml	2007-05-04 01:11:02 UTC (rev 75247)
@@ -0,0 +1,11 @@
+<configure
+   xmlns="http://namespaces.zope.org/zope"
+   xmlns:meta="http://namespaces.zope.org/meta"
+   i18n_domain="zope">
+
+  <!-- Turn on the devmode -->
+  <meta:provides feature="devmode" />
+
+  <include file="ftesting-base.zcml" />
+
+</configure>


Property changes on: Sandbox/pcardune/zobby/etc/ftesting.zcml
___________________________________________________________________
Name: svn:eol-style
   + native

Added: Sandbox/pcardune/zobby/etc/instance.conf
===================================================================
--- Sandbox/pcardune/zobby/etc/instance.conf	2007-05-04 00:29:51 UTC (rev 75246)
+++ Sandbox/pcardune/zobby/etc/instance.conf	2007-05-04 01:11:02 UTC (rev 75247)
@@ -0,0 +1 @@
+%define INSTANCE /home/pcardune/gsoc/z3cForm/trunk
\ No newline at end of file


Property changes on: Sandbox/pcardune/zobby/etc/instance.conf
___________________________________________________________________
Name: svn:eol-style
   + native

Added: Sandbox/pcardune/zobby/etc/overrides.zcml
===================================================================
--- Sandbox/pcardune/zobby/etc/overrides.zcml	2007-05-04 00:29:51 UTC (rev 75246)
+++ Sandbox/pcardune/zobby/etc/overrides.zcml	2007-05-04 01:11:02 UTC (rev 75247)
@@ -0,0 +1,17 @@
+<configure xmlns="http://namespaces.zope.org/zope"
+           xmlns:browser="http://namespaces.zope.org/browser">
+
+  <!-- Register a special mail delivery utility that is a stub 
+       implementation, so that the system does not attempt to send out 
+       E-mails. 
+       Comment this out if you like to disable te mail function. 
+       -->
+<!--
+  <utility
+      name="recruiter"
+      provides="zope.sendmail.interfaces.IMailer"
+      factory="smart.testing.createFauxSMTPMailer"
+      />
+-->
+
+</configure>


Property changes on: Sandbox/pcardune/zobby/etc/overrides.zcml
___________________________________________________________________
Name: svn:eol-style
   + native

Added: Sandbox/pcardune/zobby/etc/overrides_ftesting.zcml
===================================================================
--- Sandbox/pcardune/zobby/etc/overrides_ftesting.zcml	2007-05-04 00:29:51 UTC (rev 75246)
+++ Sandbox/pcardune/zobby/etc/overrides_ftesting.zcml	2007-05-04 01:11:02 UTC (rev 75247)
@@ -0,0 +1,5 @@
+<configure xmlns="http://namespaces.zope.org/zope">
+
+  <!-- Here you can include overrides directives for-->
+
+</configure>
\ No newline at end of file


Property changes on: Sandbox/pcardune/zobby/etc/overrides_ftesting.zcml
___________________________________________________________________
Name: svn:eol-style
   + native

Added: Sandbox/pcardune/zobby/etc/overrides_ftesting.zcml.in
===================================================================
--- Sandbox/pcardune/zobby/etc/overrides_ftesting.zcml.in	2007-05-04 00:29:51 UTC (rev 75246)
+++ Sandbox/pcardune/zobby/etc/overrides_ftesting.zcml.in	2007-05-04 01:11:02 UTC (rev 75247)
@@ -0,0 +1,15 @@
+<configure xmlns="http://namespaces.zope.org/zope">
+
+  <!-- Here you can include overrides directives for-->
+  <!-- functional testing, may your products need so. -->
+
+  <!-- For example, you may want to include site or package overrides
+       on functional tests to make sure that the system will behave as
+       expected in the presence of overrides. -->
+
+  <!-- Example:
+       <includeOverrides files="package-includes/*-overrides.zcml" />
+       <includeOverrides file="overrides.zcml" />
+  -->
+
+</configure>
\ No newline at end of file


Property changes on: Sandbox/pcardune/zobby/etc/overrides_ftesting.zcml.in
___________________________________________________________________
Name: svn:eol-style
   + native

Added: Sandbox/pcardune/zobby/etc/principals.zcml
===================================================================
--- Sandbox/pcardune/zobby/etc/principals.zcml	2007-05-04 00:29:51 UTC (rev 75246)
+++ Sandbox/pcardune/zobby/etc/principals.zcml	2007-05-04 01:11:02 UTC (rev 75247)
@@ -0,0 +1,34 @@
+<configure xmlns='http://namespaces.zope.org/zope'>
+
+  <unauthenticatedPrincipal
+    id="zope.anybody"
+    title="Unauthenticated User" />
+
+  <unauthenticatedGroup
+    id="zope.Anybody"
+    title="Unauthenticated Users" 
+    />
+
+  <authenticatedGroup
+    id="zope.Authenticated"
+    title="Authenticated Users" 
+    />
+
+  <everybodyGroup
+    id="zope.Everybody"
+    title="All Users" 
+    />
+
+  <principal
+    id="zope.manager"
+    title="Manager"
+    login="Manager"
+    password="password"
+    />
+
+  <grant
+    role="zope.Manager"
+    principal="zope.manager"
+    />
+
+</configure>


Property changes on: Sandbox/pcardune/zobby/etc/principals.zcml
___________________________________________________________________
Name: svn:eol-style
   + native

Added: Sandbox/pcardune/zobby/etc/securitypolicy-ftesting.zcml
===================================================================
--- Sandbox/pcardune/zobby/etc/securitypolicy-ftesting.zcml	2007-05-04 00:29:51 UTC (rev 75246)
+++ Sandbox/pcardune/zobby/etc/securitypolicy-ftesting.zcml	2007-05-04 01:11:02 UTC (rev 75247)
@@ -0,0 +1 @@
+<include package="zope.app.securitypolicy.tests" file="functional.zcml" />


Property changes on: Sandbox/pcardune/zobby/etc/securitypolicy-ftesting.zcml
___________________________________________________________________
Name: svn:eol-style
   + native

Added: Sandbox/pcardune/zobby/etc/securitypolicy.zcml
===================================================================
--- Sandbox/pcardune/zobby/etc/securitypolicy.zcml	2007-05-04 00:29:51 UTC (rev 75246)
+++ Sandbox/pcardune/zobby/etc/securitypolicy.zcml	2007-05-04 01:11:02 UTC (rev 75247)
@@ -0,0 +1,23 @@
+<configure
+    xmlns="http://namespaces.zope.org/zope"
+    i18n_domain="zope">
+
+  <include package="zope.app.securitypolicy" />
+
+  <securityPolicy
+    component="zope.app.securitypolicy.zopepolicy.ZopeSecurityPolicy" />
+
+  <role id="zope.Anonymous" title="Everybody"
+                 description="All users have this role implicitly" />
+  <role id="zope.Manager" title="Site Manager" />
+  <role id="zope.Member" title="Site Member" />
+
+  <!-- Replace the following directive if you don't want public access -->
+  <grant permission="zope.View"
+                  role="zope.Anonymous" />
+  <grant permission="zope.app.dublincore.view"
+                  role="zope.Anonymous" />
+
+  <grantAll role="zope.Manager" />
+
+</configure>


Property changes on: Sandbox/pcardune/zobby/etc/securitypolicy.zcml
___________________________________________________________________
Name: svn:eol-style
   + native

Added: Sandbox/pcardune/zobby/etc/site.zcml
===================================================================
--- Sandbox/pcardune/zobby/etc/site.zcml	2007-05-04 00:29:51 UTC (rev 75246)
+++ Sandbox/pcardune/zobby/etc/site.zcml	2007-05-04 01:11:02 UTC (rev 75247)
@@ -0,0 +1,20 @@
+<configure xmlns="http://namespaces.zope.org/zope">
+  
+  <include files="../Zope3/zopeskel/etc/package-includes/*-meta.zcml" />
+
+  <include package="zope.app.zcmlfiles" />
+
+  <include files="../Zope3/zopeskel/etc/package-includes/*-configure.zcml" />
+
+  <!-- Provide local overrides of standard configurations-->
+  <includeOverrides files="../Zope3/zopeskel/etc/package-includes/*-overrides.zcml" />
+  <includeOverrides file="overrides.zcml" />
+
+  <include file="securitypolicy.zcml" />
+  <include file="principals.zcml" />
+
+  <!-- Load a "default" i18n domain for debugging purposes
+       production sites shouldn't do this -->
+  <include package="zope.app.i18n.tests" />
+
+</configure>


Property changes on: Sandbox/pcardune/zobby/etc/site.zcml
___________________________________________________________________
Name: svn:eol-style
   + native

Added: Sandbox/pcardune/zobby/etc/zope.conf
===================================================================
--- Sandbox/pcardune/zobby/etc/zope.conf	2007-05-04 00:29:51 UTC (rev 75246)
+++ Sandbox/pcardune/zobby/etc/zope.conf	2007-05-04 01:11:02 UTC (rev 75247)
@@ -0,0 +1,120 @@
+# This is the configuration file for the Zope Application Server.
+
+%include instance.conf
+
+%define CONFDIR   $INSTANCE/etc
+%define DATADIR   $INSTANCE/var
+%define LOGDIR    $INSTANCE/log
+
+# identify the component configuration used to define the site:
+#
+site-definition $CONFDIR/site.zcml
+
+# number of bytecode instructions to execute between checks for
+# interruptions (SIGINTR, thread switches):
+#
+interrupt-check-interval 200
+
+# Standard HTTP server for Zope 3.
+# Server: All Servers
+<server>
+  type HTTP
+  address 8080
+</server>
+
+# Ready to go HTTPS server. You just need to make sure OpenSSL is installed.
+# Server: Twisted only!
+# <sslserver>
+#   type HTTPS
+#   address 8443
+#   privatekeypath $CONFDIR/server.pem
+#   certificatepath $CONFDIR/server.pem
+# </sslserver>
+
+# A special HTTP server that records HTTP session that can be converted to
+# functional tests.
+# Server: Twisted only!
+# <server>
+#   type RecordingHTTP
+#   address 8081
+# </server>
+
+# For debugging purposes, you can use this publisher instead/as well
+# (obviously if it's as well, use a different port number). If there's
+# an exception, Zope will drop into pdb at the point of the exception.
+# Server: Twisted only!
+#
+#<server>
+#  type PostmortemDebuggingHTTP
+#  address 8080
+#</server>
+
+# uncomment this if you want the FTP server up and running
+# Server: All Servers
+#<server ftp>
+#  type FTP
+#  address 8021
+#</server>
+
+# You must install pycrypto to use the SFTP server.
+# Server: Twisted only!
+# <sshserver>
+#   type SFTP
+#   address 8115
+#   hostkey ssh_host_rsa_key
+# </sshserver>
+
+# Standard Filestorage
+<zodb>
+  <filestorage>
+    path $DATADIR/Data.fs
+  </filestorage>
+
+# uncomment this if you want to connect to a local ZEO server
+# instead:
+#  <zeoclient>
+#    server localhost:8100
+#    storage 1
+#    # ZEO client cache, in bytes
+#    cache-size 20MB
+#    # Uncomment to have a persistent disk cache
+#    #client zeo1
+#  </zeoclient>
+</zodb>
+
+<accesslog>
+  # This sets up logging to both a file (access.log) and to standard
+  # output (STDOUT).  The "path" setting can be a relative or absolute
+  # filesystem path or the tokens STDOUT or STDERR.
+
+  <logfile>
+    path $LOGDIR/access.log
+  </logfile>
+
+  <logfile>
+    path STDOUT
+  </logfile>
+</accesslog>
+
+<eventlog>
+  # This sets up logging to both a file and to standard output
+  # (STDOUT).  The "path" setting can be a relative or absolute
+  # filesystem path or the tokens STDOUT or STDERR.
+
+  <logfile>
+    path $LOGDIR/z3.log
+  </logfile>
+
+  <logfile>
+    path STDOUT
+  </logfile>
+</eventlog>
+
+# devmode
+#
+#   Switches the Developer Mode on and off.
+#
+# Default:
+#   devmode on
+
+devmode on


Property changes on: Sandbox/pcardune/zobby/etc/zope.conf
___________________________________________________________________
Name: svn:eol-style
   + native


Property changes on: Sandbox/pcardune/zobby/log
___________________________________________________________________
Name: svn:ignore
   + z3.log
access.log



Added: Sandbox/pcardune/zobby/setup.py
===================================================================
--- Sandbox/pcardune/zobby/setup.py	2007-05-04 00:29:51 UTC (rev 75246)
+++ Sandbox/pcardune/zobby/setup.py	2007-05-04 01:11:02 UTC (rev 75247)
@@ -0,0 +1,126 @@
+##############################################################################
+#
+# Copyright (c) 2007 Zope Foundation and Contributors.
+# All Rights Reserved.
+#
+# This software is subject to the provisions of the Zope Public License,
+# Version 2.1 (ZPL).  A copy of the ZPL should accompany this distribution.
+# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
+# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
+# FOR A PARTICULAR PURPOSE.
+#
+##############################################################################
+"""
+$Id: setup.py 72 2007-03-26 15:31:12Z rineichen $
+"""
+
+import os
+import site
+import sys
+import zipfile
+
+application = 'Zope3'
+sources = 'src'
+precompiled = 'Zope3-pyd-Py-2.4.3-Development-Revision-73085.zip'
+here = os.path.dirname(os.path.abspath(__file__))
+application_path = os.path.join(here, application)
+precompiled_path = os.path.join(here, precompiled)
+zopeskel = [application_path, 'zopeskel' ,'etc']
+buildsupport = os.path.join(application_path, 'buildsupport')
+
+
+if '-q' in sys.argv or '--quiet' in sys.argv:
+    verbose = False
+else:
+    verbose = True
+
+if '--dry-run' in sys.argv or '-n' in sys.argv:
+    dry_run = True
+else:
+    dry_run = False
+
+def _remove_file(path):
+    try:
+        if not dry_run:
+            os.remove(path)
+
+        if verbose:
+            print 'removing', path
+
+    except:
+        pass # there is no file to remove
+
+def _remove_pyc(ignore, dirname, files):
+    # remove and remember removed files
+    [_remove_file(os.path.join(dirname, file)) 
+     for file in files if file.endswith('.pyc') or file.endswith('.pyd')]
+
+if verbose:
+    print 'running *.pyc clean-up'
+# remove *.pyc from sources
+os.path.walk(os.path.join(here, sources), _remove_pyc, None)
+os.path.walk(os.path.join(application_path, sources), _remove_pyc, None)
+
+# remove *.zcml from package-includes
+if verbose:
+    print 'running package-includes clean-up'
+path = list(zopeskel);
+path.append('package-includes')
+path = os.path.join(*path)
+[_remove_file(os.path.join(path, file))
+ for file in os.listdir(path) if file.endswith('.zcml')]
+
+
+path = list(zopeskel); path.append('securitypolicy.zcml')
+path = os.path.join(*path)
+_remove_file(path)
+
+# Add 'buildsupport' to sys.path and process *.pth files from 'buildsupport':
+last = len(sys.path)
+site.addsitedir(buildsupport)
+if len(sys.path) > last:
+    # Move all appended directories to the start.
+    # Make sure we use ZConfig shipped with the distribution
+    new = sys.path[last:]
+    del sys.path[last:]
+    sys.path[:0] = new
+
+import zpkgsetup.package
+import zpkgsetup.publication
+import zpkgsetup.setup
+
+context = zpkgsetup.setup.SetupContext(
+    'Zope', '3.2.X', __file__)
+
+context.load_metadata(
+    os.path.join(application_path, 'releases', 'Zope',
+                 zpkgsetup.publication.PUBLICATION_CONF))
+
+context.walk_packages(sources)
+context.walk_packages(os.path.join('.', application, sources))
+
+context.setup()
+# add pyc's if nessecary
+if os.path.exists(precompiled_path) and 'build_ext' not in sys.argv and sys.platform == 'win32' :
+    zip = zipfile.ZipFile(precompiled_path)
+    if verbose:
+        print 'copying precompiled extension'
+
+    for name in zip.namelist():
+        path = os.path.join(application_path, *name.split('/'))
+        open(path, 'wb').write(zip.read(name))
+        if verbose:
+            print 'copying ', path
+        
+    zip.close()
+
+if os.path.exists(precompiled_path) and verbose:
+    print 'done'
+
+if not os.path.exists(precompiled_path):
+    print ""
+    print "********************************"
+    print "ALERT, *.pyd zip file is missing"
+    print "********************************"
+    print ""


Property changes on: Sandbox/pcardune/zobby/setup.py
___________________________________________________________________
Name: svn:eol-style
   + native

Modified: Sandbox/pcardune/zobby/src/zobby/browser/browser.py
===================================================================
--- Sandbox/pcardune/zobby/src/zobby/browser/browser.py	2007-05-04 00:29:51 UTC (rev 75246)
+++ Sandbox/pcardune/zobby/src/zobby/browser/browser.py	2007-05-04 01:11:02 UTC (rev 75247)
@@ -1,12 +1,43 @@
 from jsonserver.jsonrpc import MethodPublisher
 
-from zobby.zobby import Session
+from zobby import zobby
 
+
+## class ZobbyApplicationAddForm(form.AddForm):
+##     """An add form for the zobby application."""
+
+##     template = None
+##     layout = None
+##     contentName = None
+##     label = u'Add Zobby Application'
+
+##     fields = field.Fields()
+
+##     def create(self, data):
+##         return zobby.ZobbyApplication(**data)
+
+##     def add(self, object):
+##         self._name = object.title
+##         self.context[object.title] = object
+
+##     def nextURL(self):
+##         return absoluteURL(self.context[self._name], self.request)
+
+##     def __call__(self):
+##         self.update()
+##         if self._finishedAdd:
+##             self.request.response.redirect(self.nextURL())
+##             return ''
+##         layout = zope.component.getMultiAdapter((self, self.request),
+##                                                 ILayoutTemplate)
+##         return layout(self)
+
+
 class ZobbyHandler(MethodPublisher):
     """simple json-rpc view class with two methods"""
 
     def newSession(self, name):
-        self.context[name] = Session()
+        self.context[name] = zobby.Session()
         return "Created a new session named %s"% name
 
     def getSessions(self):

Added: Sandbox/pcardune/zobby/start.py
===================================================================
--- Sandbox/pcardune/zobby/start.py	2007-05-04 00:29:51 UTC (rev 75246)
+++ Sandbox/pcardune/zobby/start.py	2007-05-04 01:11:02 UTC (rev 75247)
@@ -0,0 +1,63 @@
+##############################################################################
+#
+# Copyright (c) 2004 Zope Corporation and Contributors.
+# All Rights Reserved.
+#
+# This software is subject to the provisions of the Zope Public License,
+# Version 2.1 (ZPL).  A copy of the ZPL should accompany this distribution.
+# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
+# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
+# FOR A PARTICULAR PURPOSE.
+#
+##############################################################################
+
+"""Script to run the Zope Application Server in the foreground.
+
+$Id: start.py 72 2007-03-26 15:31:12Z rineichen $
+"""
+
+import os
+import sys
+
+here = os.path.dirname(os.path.abspath(__file__))
+ZOPE3 = os.path.join(here, "Zope3")
+SOFTWARE_HOME = os.path.join(here, "src")
+INSTANCE_HOME = os.path.join(here, "Zope3", "src")
+CONFIG_FILE = os.path.join(here, "etc", "zope.conf")
+
+
+def run():
+    if sys.version_info < ( 2,3,5 ):
+        print """\
+        ERROR: Your python version is not supported by Zope3.
+        Zope3 needs Python 2.3.5 or greater. You are running:""" + sys.version
+        sys.exit(1)
+
+    # add additional path
+    basepath = filter(None, sys.path)
+    sys.path[:] = [INSTANCE_HOME, SOFTWARE_HOME] + basepath
+
+    # remove bad and duplicated paths from sys.path
+    goodPath = []
+    badPath = [ZOPE3, here]
+    for path in sys.path:
+        if path not in badPath:
+            goodPath.append(path)
+        else:
+            badPath.append(path)
+
+    sys.path[:] = goodPath
+
+    from zope.app.twisted.main import main
+    main(["-C", CONFIG_FILE] + sys.argv[1:])
+
+
+if __name__ == '__main__':
+     iconf = os.path.join(here, 'etc', 'instance.conf')
+     if not os.path.exists(iconf):
+         print "creating local instance.conf: %s" % iconf
+         f = file(iconf,'w')
+         f.write("%%define INSTANCE %s" % here)
+         f.close()
+     run()


Property changes on: Sandbox/pcardune/zobby/start.py
___________________________________________________________________
Name: svn:eol-style
   + native

Added: Sandbox/pcardune/zobby/test.py
===================================================================
--- Sandbox/pcardune/zobby/test.py	2007-05-04 00:29:51 UTC (rev 75246)
+++ Sandbox/pcardune/zobby/test.py	2007-05-04 01:11:02 UTC (rev 75247)
@@ -0,0 +1,88 @@
+#!/usr/bin/env python2.4
+##############################################################################
+#
+# Copyright (c) 2007 Zope Foundation and Contributors.
+# All Rights Reserved.
+#
+# This software is subject to the provisions of the Zope Public License,
+# Version 2.1 (ZPL).  A copy of the ZPL should accompany this distribution.
+# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
+# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
+# FOR A PARTICULAR PURPOSE.
+#
+##############################################################################
+"""
+$Id: test.py 72 2007-03-26 15:31:12Z rineichen $
+"""
+
+import logging, os, sys, warnings
+
+if sys.version_info < (2, 4):
+    print >> sys.stderr, '%s: need Python 2.4 or later.' % sys.argv[0]
+    print >> sys.stderr, 'Your python is %s' % sys.version
+    sys.exit(1)
+
+here = os.path.abspath(os.path.dirname(sys.argv[0]))
+
+
+# Remove this directory from path:
+sys.path[:] = [p for p in sys.path if os.path.abspath(p) != here]
+
+
+# Remove Zope3 directory from path:
+zope3Root = os.path.join(here, 'Zope3')
+sys.path[:] = [p for p in sys.path if os.path.abspath(p) != zope3Root]
+
+
+# Replace the directory of this wrapper script with src and Zope3/src
+# source directories
+sys.path[:1] = [os.path.join(here, 'src'), os.path.join(here, 'Zope3', 'src')]
+
+
+# add Zope3/src and src to path, put at beginning to avoid one in site_packages
+zope3src = os.path.join(here, 'Zope3', 'src')
+src = os.path.join(here, 'src')
+sys.path.insert(0, zope3src)
+sys.path.insert(0, src)
+
+
+from zope.testing import testrunner
+
+# the duplicated *--test-path* variable seems to work. ri
+defaults = ['--tests-pattern', '^f?tests$', '--test-path', src, '--test-path', zope3src]
+defaults += ['-m',
+             '!^('
+             'ZConfig'
+             '|'
+             'BTrees'
+             '|'
+             'persistent'
+             '|'
+             'ThreadedAsync'
+             '|'
+             'transaction'
+             '|'
+             'ZEO'
+             '|'
+             'ZODB'
+             '|'
+             'twisted'
+             '|'
+             'zdaemon'
+             '|'
+             'zope[.]testing'
+             '|'
+             ')[.]']
+
+# Get rid of twisted.conch.ssh warning
+warnings.filterwarnings(
+    'ignore', 'PyCrypto', RuntimeWarning, 'twisted[.]conch[.]ssh')
+
+result = testrunner.run(defaults)
+
+# Avoid spurious error during exit. Some thing is trying to log
+# something after the files used by the logger have been closed.
+logging.disable(999999999)
+
+sys.exit(result)


Property changes on: Sandbox/pcardune/zobby/test.py
___________________________________________________________________
Name: svn:eol-style
   + native


Property changes on: Sandbox/pcardune/zobby/var
___________________________________________________________________
Name: svn:ignore
   + Data.fs
Data.fs.index
Data.fs.lock
Data.fs.tmp



Added: Sandbox/pcardune/zobby/var/Data.fs.tmp
===================================================================
(Binary files differ)


Property changes on: Sandbox/pcardune/zobby/var/Data.fs.tmp
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream



More information about the Checkins mailing list