Hi Torty,
also erst mal vielen Dank, dass du mir nochmal hilfst. Ich hab das jetzt gemacht, wie du es mir beschrieben hast. Poste einfach mal den ganzen Code, obwohl man das eigentlich nicht macht, aber ich weiß nicht was du genau benötigst.
Vielen Dank.
Lg
Andrea
P.S: Und du bekommst den Fehler wirklich nicht?
Time 2005/12/09 10:13:35.928 GMT+1
User Name (User Id) admin (admin)
Request URL http://140.78.40.81/guestbook/guestbook_add_entry_thanks
Exception Type TypeError
Exception Value unsupported operand type(s) for /: 'instance' and 'float'
Traceback (innermost last):
* Module ZPublisher.Publish, line 100, in publish
* Module ZPublisher.mapply, line 88, in mapply
* Module ZPublisher.Publish, line 40, in call_object
* Module Shared.DC.Scripts.Bindings, line 306, in __call__
* Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
* Module Products.PageTemplates.ZopePageTemplate, line 222, in _exec
* Module Products.PageTemplates.PageTemplate, line 96, in pt_render
<ZopePageTemplate at /Plone/guestbook_add_entry_thanks used for /Plone/guestbook>
* Module TAL.TALInterpreter, line 189, in __call__
* Module TAL.TALInterpreter, line 233, in interpret
* Module TAL.TALInterpreter, line 663, in do_useMacro
* Module TAL.TALInterpreter, line 233, in interpret
* Module TAL.TALInterpreter, line 408, in do_optTag_tal
* Module TAL.TALInterpreter, line 393, in do_optTag
* Module TAL.TALInterpreter, line 388, in no_tag
* Module TAL.TALInterpreter, line 233, in interpret
* Module TAL.TALInterpreter, line 694, in do_defineSlot
* Module TAL.TALInterpreter, line 233, in interpret
* Module TAL.TALInterpreter, line 408, in do_optTag_tal
* Module TAL.TALInterpreter, line 393, in do_optTag
* Module TAL.TALInterpreter, line 388, in no_tag
* Module TAL.TALInterpreter, line 233, in interpret
* Module TAL.TALInterpreter, line 642, in do_defineMacro
* Module TAL.TALInterpreter, line 233, in interpret
* Module TAL.TALInterpreter, line 686, in do_defineSlot
* Module TAL.TALInterpreter, line 233, in interpret
* Module TAL.TALInterpreter, line 459, in do_setLocal_tal
* Module Products.PageTemplates.TALES, line 220, in evaluate
URL: /Plone/guestbook_add_entry_thanks
Line 11, Column 2
Expression: <PythonExpr here.guestbook_addEntry(request.guest_name,request.email,request.url, request.comments)>
Names:
{'container': <PloneSite instance at 02CC07D0>,
'context': <Folder instance at 02D6B140>,
'default': <Products.PageTemplates.TALES.Default instance at 0x010CDF08>,
'here': <Folder instance at 02D6B140>,
'loop': <SafeMapping instance at 03B8CF00>,
'modules': <Products.PageTemplates.ZRPythonExpr._SecureModuleImporter instance at 0x010C3B98>,
'nothing': None,
'options': {'args': ()},
'repeat': <SafeMapping instance at 03B8CF00>,
'request': <HTTPRequest, URL=http://140.78.40.81/guestbook/guestbook_add_entry_thanks>,
'root': <Application instance at 02C62B60>,
'template': <ZopePageTemplate at /Plone/guestbook_add_entry_thanks used for /Plone/guestbook>,
'traverse_subpath': [],
'user': admin}
* Module Products.PageTemplates.ZRPythonExpr, line 47, in __call__
__traceback_info__: here.guestbook_addEntry(request.guest_name,request.email,request.url, request.comments)
* Module Python expression "here.guestbook_addEntry(request.guest_name,request.email,request.url, request.comments)", line 1, in <expression>
* Module Shared.DC.Scripts.Bindings, line 306, in __call__
* Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
* Module Products.PythonScripts.PythonScript, line 318, in _exec
* Module None, line 5, in guestbook_addEntry
<PythonScript at /Plone/guestbook_addEntry used for /Plone/guestbook>
Line 5
* Module DateTime.DateTime, line 722, in __init__
* Module DateTime.DateTime, line 300, in _calcSD
TypeError: unsupported operand type(s) for /: 'instance' and 'float'
Display traceback as text
REQUEST
form
guest_name 'Andrea'
url 'http://www.google.at'
email 'laal@lala'
comments 'lalalalalala'
cookies
cookieTest '1'
__ac_name 'admin'
628563445434 '1'
lazy items
SESSION <bound method SessionDataManager.getSessionData of <SessionDataManager instance at 02CC0440>>
other
guest_name 'Andrea'
_pts_catalog_names_ploneguestbook_de ['PloneGuestbook.i18n-ploneguestbook-de.po']
TraversalRequestNameStack []
AUTHENTICATED_USER admin
URL 'http://140.78.40.81/guestbook/guestbook_add_entry_thanks'
VirtualRootPhysicalPath ('', 'Plone')
_portaluser <MemberData at /Plone/portal_memberdata/admin used for /acl_users>
SiteRootPATH '/'
SERVER_URL 'http://140.78.40.81'
comments 'lalalalalala'
AUTHENTICATION_PATH ''
traverse_subpath []
email 'laal@lala'
_pts_catalog_names_plone_de-de ['CMFPlone.i18n-plone-de.po', 'CMFPlone.i18n-plone-en.po']
url 'http://www.google.at'
PUBLISHED <ZopePageTemplate at /Plone/guestbook_add_entry_thanks used for /Plone/guestbook>
_pts_negotiator_cache_language {('de', 'de-li', 'de-at', 'de-lu', 'de-ch', 'en'): 'de', ('ka', 'ru', 'ko', 'hu', 'et', 'lt', 'af', 'es-es', 'tr', 'zh-tw', 'pl', 'en', 'uk', 'eo', 'ua', 'ro', 'da', 'it', 'ar', 'no', 'zh-hk', 'hy', 'de', 'ca', 'eu', 'pt', 'ja', 'fi', 'cs', 'sv', 'zh-cn', 'es-ar', 'zh', 'bg', 'fr', 'el', 'pt-br', 'fa', 'nn', 'he', 'nl', 'es', 'hr', 'nl-be', 'en-zw', 'es-hn', 'zh-mo', 'es-cr', 'de-ch', 'fr-lu', 'ca-es', 'es-py', 'de-de', 'en-bz', 'es-us', 'es-bo', 'nb', 'it-ch', 'zh', 'es-pe', 'es-gt', 'en-nz', 'de-at', 'eu-es', 'es-ec', 'zh-hk', 'es-uy', 'en-tt', 'no-bok', 'en-ie', 'es-mx', 'en-jm', 'es-ve', 'ca-fr', 'ja-jp', 'en-gb', 'es-pa', 'de-lu', 'en-za', 'nb-no', 'nn-no', 'es-do', 'en-au', 'de-li', 'no-nyn', 'fr-ch', 'fr-mc', 'sv-fi', 'en-ph', 'ko-kr', 'zh-cn', 'es-sv', 'es-co', 'fr-be', 'fr-fr', 'ca-it', 'tr-tr', 'es-pr', 'en-us', 'es-cl', 'en-ca', 'zh-sg', 'es-ni', 'fr-ca'): 'de-de'}
_pts_is_rtl False
disable_border 1
URL0 http://140.78.40.81/guestbook/guestbook_add_entry_thanks
URL1 http://140.78.40.81/guestbook
URL2 http://140.78.40.81
BASE0 http://140.78.40.81
BASE1 http://140.78.40.81
BASE2 http://140.78.40.81/guestbook
BASE3 http://140.78.40.81/guestbook/guestbook_add_entry_thanks
environ
HTTP_COOKIE '__ac_name="admin"; 628563445434="1"; cookieTest=1; __ac="YWRtaW46aGFubmVz%0A"'
SERVER_SOFTWARE 'Zope/(unreleased version, python 2.3.3, win32) ZServer/1.1 Plone/2.0.5'
SCRIPT_NAME ''
REQUEST_METHOD 'POST'
HTTP_KEEP_ALIVE '300'
SERVER_PROTOCOL 'HTTP/1.1'
channel.creation_time 1134119450
CONNECTION_TYPE 'keep-alive'
HTTP_ACCEPT_CHARSET 'ISO-8859-1,utf-8;q=0.7,*;q=0.7'
HTTP_USER_AGENT 'Mozilla/5.0 (Windows; U; Windows NT 5.1; de-DE; rv:1.7.12) Gecko/20050919 Firefox/1.0.7'
HTTP_REFERER 'http://140.78.40.81/guestbook_add_entry_form'
SERVER_NAME 'idv-edu'
REMOTE_ADDR '83.215.22.33'
PATH_TRANSLATED '\\guestbook\\guestbook_add_entry_thanks'
SERVER_PORT '80'
CONTENT_LENGTH '88'
HTTP_HOST '140.78.40.81'
HTTP_ACCEPT 'text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5'
GATEWAY_INTERFACE 'CGI/1.1'
HTTP_ACCEPT_LANGUAGE 'de-de,de;q=0.8,en-us;q=0.5,en;q=0.3'
CONTENT_TYPE 'application/x-www-form-urlencoded'
HTTP_ACCEPT_ENCODING 'gzip,deflate'
PATH_INFO '/guestbook/guestbook_add_entry_thanks'
[/code]