[BlueBream] Form Demo Trouble

Christopher Lozinski lozinski at freerecruiting.com
Mon Sep 13 20:46:22 EDT 2010


  Well I finally figured out that the way to work with the ZTK is to
download the demo, run it, and read the source code. 

Brilliant.  Except the demo did not work.  Here are the commands. 

$ svn co svn://svn.zope.org/repos/main/z3c.formdemo/trunk formdemo
$ cd formdemo
$ python bootstrap.py
$ ./bin/buildout -N
$ ./bin/demo fg

It is the last one which did not work.  At the end is the error message. 

In the meantime, I am sure the source code will be very helpful. 

Regards
Christopher Lozinski

./bin/demo fg
/usr/local/zope3/formdemo/parts/form-demo-app/runzope -C /usr/local/zope3/formdemo/parts/demo/zope.conf
Traceback (most recent call last):
  File "/usr/local/zope3/formdemo/parts/form-demo-app/runzope", line 117, in ?
    zope.app.twisted.main.main()
  File "/usr/local/zope3/formdemo/eggs/zope.app.twisted-3.5.0-py2.4.egg/zope/app/twisted/main.py", line 74, in main
    service = setup(load_options(args))
  File "/usr/local/zope3/formdemo/eggs/zope.app.twisted-3.5.0-py2.4.egg/zope/app/twisted/main.py", line 140, in setup
    db = zope.app.appsetup.appsetup.multi_database(options.databases)[0][0]
  File "/usr/local/zope3/formdemo/eggs/zope.app.appsetup-3.14.0-py2.4.egg/zope/app/appsetup/appsetup.py", line 213, in multi_database
    db = factory.open()
  File "/usr/local/zope3/formdemo/eggs/ZODB3-3.10.0b6-py2.4-freebsd-8.1-RELEASE-i386.egg/ZODB/config.py", line 101, in open
    storage = section.storage.open()
  File "/usr/local/zope3/formdemo/eggs/ZODB3-3.10.0b6-py2.4-freebsd-8.1-RELEASE-i386.egg/ZODB/config.py", line 157, in open
    from ZODB.FileStorage import FileStorage
  File "/usr/local/zope3/formdemo/eggs/ZODB3-3.10.0b6-py2.4-freebsd-8.1-RELEASE-i386.egg/ZODB/FileStorage/__init__.py", line 3, in ?
    from ZODB.FileStorage.FileStorage import FileStorage, TransactionRecord
  File "/usr/local/zope3/formdemo/eggs/ZODB3-3.10.0b6-py2.4-freebsd-8.1-RELEASE-i386.egg/ZODB/FileStorage/FileStorage.py", line 412
    with self._files.get() as _file:
            ^
SyntaxError: invalid syntax






More information about the bluebream mailing list