Hi,

Are you using 

<dtml-var "ZopeTime().Date()">

instead of 

<dtml-var "_.ZopeTime().Date()">

ZopeTime I suspect doesn't come from the local namespace.

Cheers,
Paul Zwarts

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf
Of Kolb, Hap
Sent: Friday, November 02, 2001 11:26 AM
To: '[EMAIL PROTECTED]'
Subject: [Zope-dev] DocumentLibrary 1.0b3 / Zope 2.4.2 (newbie?) problem

Hi,

any attempt to submit a document to my newly created document library
under
zope 2.4.2 yields the following error (traceback appended below):

        Error Type: NameError
        Error Value: global name 'ZopeTime' is not defined

Now that's an error so basic that I suspect that it's me who is doing
something wrong---if I only knew what...!

Any help would be highly appreciated!

Best, ...hap


Traceback (innermost last):
  File /data1/software/Zope/zope-2.4.2/lib/python/ZPublisher/Publish.py,
line 223, in publish_module
  File /data1/software/Zope/zope-2.4.2/lib/python/ZPublisher/Publish.py,
line 187, in publish
  File /data1/software/Zope/zope-2.4.2/lib/python/Zope/__init__.py, line
226, in zpublisher_exception_hook
    (Object: library)
  File /data1/software/Zope/zope-2.4.2/lib/python/ZPublisher/Publish.py,
line 171, in publish
  File /data1/software/Zope/zope-2.4.2/lib/python/ZPublisher/mapply.py,
line
160, in mapply
    (Object: document_submit)
  File /data1/software/Zope/zope-2.4.2/lib/python/ZPublisher/Publish.py,
line 112, in call_object
    (Object: document_submit)
  File /data1/software/Zope/zope-2.4.2/lib/python/OFS/DTMLMethod.py,
line
195, in __call__
    (Object: document_submit)
  File
/data1/software/Zope/zope-2.4.2/lib/python/DocumentTemplate/DT_String.py
,
line 546, in __call__
    (Object: document_submit)
  File
/data1/software/Zope/zope-2.4.2/lib/python/DocumentTemplate/DT_Try.py,
line
212, in render
  File
/data1/software/Zope/zope-2.4.2/lib/python/DocumentTemplate/DT_Try.py,
line
221, in render_try_except
  File
/data1/software/Zope/zope-2.4.2/lib/python/DocumentTemplate/DT_With.py,
line
148, in render
    (Object: Documents)
  File
/data1/software/Zope/zope-2.4.2/lib/python/DocumentTemplate/DT_With.py,
line
133, in render
    (Object: addDocumentFile(REQUEST))
  File
/data1/software/Zope/zope-2.4.2/lib/python/DocumentTemplate/DT_Util.py,
line
231, in eval
    (Object: addDocumentFile(REQUEST))
    (Info: REQUEST)
  File <string>, line 2, in f
  File
/data1/software/Zope/zope-2.4.2/Products/DocumentLibrary/DocumentStore.p
y,
line 355, in addDocumentFile
    (Object: Documents)
  File /data1/software/Zope/zope-2.4.2/lib/python/OFS/ObjectManager.py,
line
324, in _setObject
    (Object: Documents)
  File
/data1/software/Zope/zope-2.4.2/lib/python/Products/ZCatalog/CatalogAwar
enes
s.py, line 114, in manage_afterAdd
    (Object: 1004694129.27)
  File
/data1/software/Zope/zope-2.4.2/lib/python/Products/ZCatalog/CatalogAwar
enes
s.py, line 184, in index_object
    (Object: 1004694129.27)
  File
/data1/software/Zope/zope-2.4.2/Products/DocumentLibrary/CatalogPlus.py,
line 122, in catalog_object
  File
/data1/software/Zope/zope-2.4.2/lib/python/Products/ZCatalog/Catalog.py,
line 382, in catalogObject
  File
/data1/software/Zope/zope-2.4.2/lib/python/Products/ZCatalog/Catalog.py,
line 495, in recordify
  File /data1/software/Zope/zope-2.4.2/lib/python/OFS/DTMLMethod.py,
line
188, in __call__
    (Object: date)
  File
/data1/software/Zope/zope-2.4.2/lib/python/DocumentTemplate/DT_String.py
,
line 546, in __call__
    (Object: date)
  File
/data1/software/Zope/zope-2.4.2/lib/python/DocumentTemplate/DT_Util.py,
line
231, in eval
    (Object: ZopeTime().Date())
    (Info: ZopeTime)
  File <string>, line 2, in f
    (Object: guarded_getattr)
NameError: (see above)

_______________________________________________
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )


_______________________________________________
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )

Reply via email to