[Zope-CMF] CMFCalendar - ready for beta?
Andrew Sawyers
andrew@digicool.com
Fri, 1 Jun 2001 10:08:21 -0700
Marc,
Did you run the install external method (Extensions/Install.py)? I'm sure I
had docs (i.e. README, INSTALL, etc) in the root of the product. The
isntall sets everything up for you, and should take care of the problem
you're expierincing. If you still have this problem, please add it to the
tracker.
Thanks,
Andrew
----- Original Message -----
From: "marc lindahl" <marc@bowery.com>
To: <zope-cmf@zope.org>
Sent: Thursday, May 31, 2001 4:56 PM
Subject: [Zope-CMF] CMFCalendar - ready for beta?
I noticed this CMFCalendar product is in the CMF beta... no docs, so I just
tried it out. Made a FTI type, created a FSDV skin folder, put it on the
paths (just after topic and before content)... then tried to add one (as
admin). Got an error, seems there's a little bug in it? (p.s. ignore the
directory name, it's running zope 2.3.2 final)
An exception occurred in a DTML method or document.
Error type: TypeError
Error value: ('not enough arguments; expected 2, got 1', <extension class
Products.CMFDefault.MetadataTool.ElementSpec at 8689028>, ())
Innermost method: /junk/bowery/event_edit_form
Namespace Stack (innermost entry at top)
ID Type
(N/A) mapping with keys: ['document_id', 'document_title']
testEv2 InstanceDict
REQUEST ZPublisher.HTTPRequest.HTTPRequest
Source of /junk/bowery/event_edit_form with fault:
<dtml-var standard_html_header>
<STYLE>
<!--
body,td,th { font-family:arial,helvetica; font-size:10pt }
BIG {FONT-FAMILY: Arial,Helvetica; font-size: 17px;font-weight:bold}
A {FONT-FAMILY: Arial,Helvetica; font-size: 13.5px;}
SMALL {FONT-FAMILY: Arial,Helvetica; font-size: 2.75mm;}
.bttn
{
BACKGROUND-COLOR: #cccccc;
BORDER-BOTTOM: #9999cc 2px outset;
BORDER-LEFT: #9999cc 2px outset;
BORDER-RIGHT: #9999cc 2px outset;
BORDER-TOP: #9999cc 2px outset
}
-->
</STYLE>
<style type="text/css" >
<!--
td.EventBackground { background: #DDDDDD }
td.EventHorizon { background: #818384 }
a.calendarlight:link { color: #FFFFFF; text-decoration: none }
a.calendarlight:visited { color: #FFFFFF; text-decoration: none }
a.calendarlight:active { color: #FFFFFF; text-decoration: none }
a.calendarlight:hover { color: #dddddd; text-decoration: none }
a.calendardark:link { color: #FFFFFF; text-decoration: none }
a.calendardark:visited { color: #FFFFFF; text-decoration: none }
a.calendardark:active { color: #FFFFFF; text-decoration: none }
a.calendardark:hover { color: #dddddd; text-decoration: none }
#nav a:link { color: blue; text-decoration: none }
#nav a:visited { color: blue; text-decoration: none }
#nav a:active { color: blue; text-decoration: none }
#nav a:hover { color: #000000; text-decoration: none }
#nav TD {PADDING-LEFT: 2px;}
-->
</style>
<FORM METHOD=POST ACTION="&dtml-absolute_url;/event_edit">
<center>
<table border=0 bordercolor=bronze width=100% height=100% >
<tr><td align=center valign=top >
<table border=0 bordercolor=grey width=100% height=100% cellspacing=0
cellpadding=0 >
<tr height=2% ><td colspan=5 >
<table border=0 cellpadding=0 cellspacing=0 >
<tr><td><image src="event_info_tab.gif" height=26 width=90
border=0></td><td>
<img src="space.gif" width=5 height=1></td>
<td></td>
<td><img src="space.gif" width=5 height=1></td>
<td></td>
<td><img src="space.gif" width=5 height=1></td>
<td></td>
<td><img src="space.gif" width=5 height=1></td>
</tr>
</table>
</td></tr>
<tr height=2% ><td Class="EventHorizon" width=15% colspan=4 > </td>
<td width=85% Class="EventHorizon" align=right nowrap >
<table border=0 cellpadding=6 cellspacing=0>
<tr><td align="Right" nowrap>
<nobr>
<INPUT TYPE="submit" VALUE="Save" style="font-size:9pt" >
<INPUT TYPE="reset" VALUE="Reset" style="font-size:9pt" >
</nobr>
</td></tr>
</table>
</td></tr>
<tr height=1>
<td colspan=5 bgcolor=#FFFFFF ><img src="space.gif" width=10 height=1
border=0></td>
</tr>
<tr height=96% ><td colspan=5 Class="EventBackground" valign=top>
<table border=0 cellpadding=5 width=100% cellspacing=3>
<tr><td Class="EventBackground">
<table border=0 width=100% >
<TR>
<th align=right NOWRAP>Event Name</th>
<TD NOWRAP><INPUT TYPE=text NAME="title" MAXLENGTH=100 size=35
VALUE="&dtml-Title;"></TD>
<th align=right NOWRAP>Contact Name</th>
<TD NOWRAP><INPUT TYPE=text NAME="contact_name" MAXLENGTH=100 size=35
VALUE="&dtml-contact_name;"></TD>
</TR>
<TR>
<th align=right>Location</th>
<TD NOWRAP><INPUT TYPE=text NAME="location" MAXLENGTH=100 size=35
VALUE="&dtml-location;" ></TD>
<th align=right NOWRAP>Contact Email</th>
<TD NOWRAP><INPUT TYPE=text NAME="contact_email" MAXLENGTH=100 size=35
VALUE="&dtml-contact_email;"></TD>
</TR>
<TR>
<th align=right>Event type</th>
<TD VALIGN=top>
<dtml-let contentSubject=Subject
allowedSubjects="portal_metadata.listAllowedSubjects( this()
)"> <select name="event_type:list" multiple>
<dtml-in allowedSubjects>
<dtml-let item=sequence-item
sel="item in contentSubject and 'selected' or ''"
>
<option value="&dtml-sequence-item;"
&dtml-sel;> &dtml-sequence-item; </option>
</dtml-let>
</dtml-in>
</select>
</dtml-let>
</TD>
<th align=right NOWRAP>Contact Phone</th>
<TD NOWRAP><INPUT TYPE=text NAME="contact_phone" MAXLENGTH=100 size=35
VALUE="&dtml-contact_phone;"></TD>
</TR>
<tr>
<th align="right">Event URL</th>
<td colspan="3"><input type="text" name="event_url" size="55"
MAXLENGTH="100" value="&dtml-event_url;"></td>
</tr>
<tr><td colspan=4 >
<table border=0 width=100% cellpadding=2 cellspacing=3 >
<tr>
<td colspan="4" >
<hr></font></td>
</tr>
<tr><th valign="middle" align=right>Start Date</th>
<dtml-with getEffectiveStrings mapping>
<td>
<select name="effectiveYear">
<dtml-in buildYears>
<option value="&dtml-sequence-item;"
<dtml-if expr="_['sequence-item'] ==
year">Selected</dtml-if>>
<dtml-var sequence-item></option>
</dtml-in>
</select>
<select name="effectiveMo">
<dtml-in buildMonths>
<option value="&dtml-sequence-item;"
<dtml-if expr="_['sequence-item'] ==
month">Selected</dtml-if>>
<dtml-var sequence-item></option>
</dtml-in>
</select>
<select name="effectiveDay">
<dtml-in buildDays>
<option value="&dtml-sequence-item;"
<dtml-if expr="_['sequence-item'] ==
day">Selected</dtml-if>>
<dtml-var sequence-item></option>
</dtml-in>
</select>
</td>
</dtml-with>
<th valign="middle" align="right"> Stop Date </th>
<dtml-with getExpirationStrings mapping>
<td>
<select name="expirationYear">
<dtml-in buildYears>
<option value="&dtml-sequence-item;"
<dtml-if expr="_['sequence-item'] ==
year">Selected</dtml-if>>
<dtml-var sequence-item></option>
</dtml-in>
</select>
<select name="expirationMo">
<dtml-in buildMonths>
<option value="&dtml-sequence-item;"
<dtml-if expr="_['sequence-item'] ==
month">Selected</dtml-if>>
<dtml-var sequence-item></option>
</dtml-in>
</select>
<select name="expirationDay">
<dtml-in buildDays>
<option value="&dtml-sequence-item;"
<dtml-if expr="_['sequence-item'] ==
day">Selected</dtml-if>>
<dtml-var sequence-item></option>
</dtml-in>
</select>
</td>
</td>
</dtml-with>
</td>
</tr>
<TR>
<th valign="middle" align="right">Start Time</th>
<TD><select name="start_time" >
<dtml-let stTimeString="_.string.split(getStartTimeString())"
amSel="(_.len(stTimeString) == 2 and stTimeString[1] == 'am')
and 'CHECKED' or ''"
pmSel="(_.len(stTimeString) == 2 and stTimeString[1] == 'pm')
and 'CHECKED' or ''"
>
<dtml-in buildTimes>
<option value="&dtml-sequence-item;"
<dtml-if expr="_['sequence-item'] == stTimeString[0]">
selected="selected"
</dtml-if>> <dtml-var sequence-item> </option>
</dtml-in>
</select>
<input type="radio" name="startAMPM" value="am" &dtml-amSel;> am
<input type="radio" name="startAMPM" value="pm" &dtml-pmSel;> pm
<input type="hidden" name="startAMPM:default" value="pm">
</dtml-let>
</TD>
<th valign="middle" align="right">Stop Time</th>
<td> <select name="stop_time">
<dtml-let stTimeString="_.string.split(getStopTimeString())"
amSel="(_.len(stTimeString) == 2 and stTimeString[1] == 'am')
and 'CHECKED' or ''"
pmSel="(_.len(stTimeString) == 2 and stTimeString[1] == 'pm')
and 'CHECKED' or ''"
>
<dtml-in buildTimes>
<option value="&dtml-sequence-item;"
<dtml-if expr="_['sequence-item'] == stTimeString[0]">
selected="selected"
</dtml-if>> <dtml-var sequence-item> </option>
</dtml-in>
</select>
<input type="radio" name="stopAMPM" value="am" &dtml-amSel;> am
<input type="radio" name="stopAMPM" value="pm" &dtml-pmSel;> pm
<input type="hidden" name="stopAMPM:default" value="pm">
</dtml-let>
</td>
</tr>
</table>
</td></tr>
<tr><td colspan=4 ><hr></td></tr>
<tr>
<th align=right valign=top >Description</th>
<TD colspan="3" VALIGN=top NOWRAP>
<TEXTAREA NAME="description" WRAP=virtual ROWS=6
COLS=55>&dtml-Description;</TEXTAREA>
</td></tr>
</table>
</td></tr>
</table>
</td></tr>
</table>
</td></tr>
</table>
</center>
</FORM>
<dtml-var standard_html_footer>
Call stack (security context)
/junk/bowery/event_edit_form
REQUEST information
form
cookies
tree-s 'eJzTiFZ3hANPW3UdhWiEiHuVr616bGysjiYAwPAJ8Q'
portal_skin 'underground'
dtpref_cols '50'
__ac 'YWRtaW46c2hhcmsqMi43%0a'
dtpref_rows '15'
other
AUTHENTICATION_PATH ''
BASEPATH1 ''
dtpref_rows '15'
PUBLISHED <FSDTMLMethod instance at 8f6be08>
portal_skin 'underground'
__ac 'YWRtaW46c2hhcmsqMi43%0a'
batch_size 20
SERVER_URL 'http://210.67.3.12'
tree-s 'eJzTiFZ3hANPW3UdhWiEiHuVr616bGysjiYAwPAJ8Q'
URL 'http://210.67.3.12/junk/bowery/Admin/testEv2/event_edit_form'
AUTHENTICATED_USER admin
TraversalRequestNameStack []
dtpref_cols '50'
URL0 http://210.67.3.12/junk/bowery/Admin/testEv2/event_edit_form
URL1 http://210.67.3.12/junk/bowery/Admin/testEv2
URL2 http://210.67.3.12/junk/bowery/Admin
URL3 http://210.67.3.12/junk/bowery
URL4 http://210.67.3.12/junk
URL5 http://210.67.3.12
BASE0 http://210.67.3.12
BASE1 http://210.67.3.12
BASE2 http://210.67.3.12/junk
BASE3 http://210.67.3.12/junk/bowery
BASE4 http://210.67.3.12/junk/bowery/Admin
BASE5 http://210.67.3.12/junk/bowery/Admin/testEv2
BASE6 http://210.67.3.12/junk/bowery/Admin/testEv2/event_edit_form
environ
SCRIPT_NAME
HTTP_HOST 210.67.3.12
channel.creation_time 991352480
HTTP_REFERER http://210.67.3.12/junk/bowery/Admin/invokeFactory
HTTP_UA_CPU PPC
HTTP_EXTENSION Security/Remote-Passphrase
SERVER_PROTOCOL 1.1
SERVER_PORT 8080
PATH_TRANSLATED /junk/bowery/Admin/testEv2/event_edit_form
HTTP_ACCEPT */*
REQUEST_METHOD GET
SERVER_SOFTWARE Zope/Zope 2.3.2 (binary release, python 1.5.2,
linux2-x86) ZServer/1.1b1
HTTP_COOKIE portal_skin=underground; dtpref_rows=15; dtpref_cols=50;
__ac=YWRtaW46c2hhcmsqMi43%0a;
tree-s=eJzTiFZ3hANPW3UdhWiEiHuVr616bGysjiYAwPAJ8Q
HTTP_UA_OS MacOS
PATH_INFO /junk/bowery/Admin/testEv2/event_edit_form
HTTP_ACCEPT_LANGUAGE en, ja;q=0.7, zh-hk;q=0.3
GATEWAY_INTERFACE CGI/1.1
SERVER_NAME localhost
REMOTE_ADDR 127.0.0.1
HTTP_USER_AGENT Mozilla/4.0 (compatible; MSIE 5.0; Mac_PowerPC)
CONNECTION_TYPE Keep-Alive
Traceback (innermost last):
File /usr/local/zope/Zope-2.3.1/lib/python/ZPublisher/Publish.py, line
223, in publish_module
File /usr/local/zope/Zope-2.3.1/lib/python/ZPublisher/Publish.py, line
187, in publish
File /usr/local/zope/Zope-2.3.1/lib/python/Zope/__init__.py, line 221, in
zpublisher_exception_hook
(Object: DynamicType)
File /usr/local/zope/Zope-2.3.1/lib/python/ZPublisher/Publish.py, line
171, in publish
File /usr/local/zope/Zope-2.3.1/lib/python/ZPublisher/mapply.py, line 160,
in mapply
(Object: event_edit_form)
File /usr/local/zope/Zope-2.3.1/lib/python/ZPublisher/Publish.py, line
112, in call_object
(Object: event_edit_form)
File
/usr/local/zope/Zope-2.3.1/lib/python/Products/CMFCore/FSDTMLMethod.py, line
180, in __call__
(Object: event_edit_form)
File /usr/local/zope/Zope-2.3.1/lib/python/DocumentTemplate/DT_String.py,
line 538, in __call__
(Object: event_edit_form)
File /usr/local/zope/Zope-2.3.1/lib/python/Products/ZDebug/DTMLDebug.py,
line 307, in debug_render_blocks
File /usr/local/zope/Zope-2.3.1/lib/python/Products/ZDebug/DTMLDebug.py,
line 239, in debugException
(Object: contentSubject=Subject
allowedSubjects="portal_metadata.listAllowedSubjects( this()
)")
File /usr/local/zope/Zope-2.3.1/lib/python/Products/ZDebug/DTMLDebug.py,
line 305, in debug_render_blocks
File /usr/local/zope/Zope-2.3.1/lib/python/DocumentTemplate/DT_Let.py,
line 146, in render
(Object: contentSubject=Subject
allowedSubjects="portal_metadata.listAllowedSubjects( this()
)")
File /usr/local/zope/Zope-2.3.1/lib/python/DocumentTemplate/DT_Util.py,
line 334, in eval
(Object: portal_metadata.listAllowedSubjects( this() ))
(Info: this)
File <string>, line 0, in ?
File
/usr/local/zope/Zope-2.3.1/lib/python/Products/CMFDefault/MetadataTool.py,
line 511, in listAllowedSubjects
(Object: portal_metadata)
File
/usr/local/zope/Zope-2.3.1/lib/python/Products/CMFDefault/MetadataTool.py,
line 501, in _listAllowedVocabulary
(Object: portal_metadata)
File
/usr/local/zope/Zope-2.3.1/lib/python/Products/CMFDefault/MetadataTool.py,
line 440, in getElementSpec
(Object: portal_metadata)
File /usr/local/zope/Zope-2.3.1/lib/python/ZODB/PersistentMapping.py, line
114, in __getitem__
File /usr/local/zope/Zope-2.3.1/lib/python/ZODB/Connection.py, line 533,
in setstate
TypeError: (see above)
_______________________________________________
Zope-CMF maillist - Zope-CMF@zope.org
http://lists.zope.org/mailman/listinfo/zope-cmf
See http://www.zope.org/Products/PTK/Tracker for bug reports and feature
requests