Plone: adding an event
I need to get a simple calendar going. I thought it would be easy to install Plone and allow users to create events. It's not. I can add events, but when I try to submit an edit (even the initial one), I get an AttributeError on "form". Any advice? I thought this would work "out of the box." Some guidance would be great. I could really use some hand holding getting started. I'm willing to pay a little for the help. Please let me know if you're interested. Thank you. --kyler
I need to get a simple calendar going. I thought it would be easy to install Plone and allow users to create events. It's not.
I can add events, but when I try to submit an edit (even the initial one), I get an AttributeError on "form". Any advice? I thought this would work "out of the box." Some guidance would be great.
It should, and this suggests a mismatch or other broken-ness. If you can send the traceback (from error_log) maybe we can diagnose a little better. Along with versions of your OS, Zope, Python, CMF, and Plone. One short-circuit with strange symptoms is a CMF/Plone mismatch: Plone 1.0.x requires CMF 1.3.x, and will not work with CMF 1.4.x. There are others. --jcc -- "My point and period will be throughly wrought, Or well or ill, as this day's battle's fought."
[Do you prefer that I send only to the list? I'm copying you since you copied me.] On Mon, Nov 03, 2003 at 08:47:55PM -0600, J. Cameron Cooper wrote:
I need to get a simple calendar going. I thought it would be easy to install Plone and allow users to create events. It's not.
I can add events, but when I try to submit an edit (even the initial one), I get an AttributeError on "form". Any advice? I thought this would work "out of the box." Some guidance would be great.
It should, and this suggests a mismatch or other broken-ness. If you can send the traceback (from error_log) maybe we can diagnose a little better.
Ah! I should have done that originally. Traceback (innermost last): Module ZPublisher.Publish, line 98, in publish Module ZPublisher.mapply, line 88, in mapply Module ZPublisher.Publish, line 39, in call_object Module Products.CMFPlone.FormTool, line 233, in __call__ Module Products.CMFPlone.FormTool, line 268, in _validate Module ZPublisher.mapply, line 88, in mapply Module ZPublisher.Publish, line 39, in call_object Module Products.CMFCore.FSPythonScript, line 92, in __call__ Module Shared.DC.Scripts.Bindings, line 252, in __call__ Module Shared.DC.Scripts.Bindings, line 283, in _bindAndExec Module Products.CMFCore.FSPythonScript, line 126, in _exec - __traceback_info__: ({'traverse_subpath': [], 'container': <PloneSite instance at 90d61a0>, 'context': <Event at /Eng/Plone/Event.2003-11-02.2926>, 'script': <FSPythonScript at /Eng/Plone/validate_event_edit used for /Eng/Plone/Event.2003-11-02.2926>}, (), {}, None) Module Script (Python), line 5, in validate_event_edit Module Products.CMFPlone.FormTool, line 358, in addField Module Products.Formulator.Field, line 23, in __init__ Module Products.Formulator.Field, line 42, in initialize_values AttributeError: form
Along with versions of your OS, Zope, Python, CMF, and Plone.
(Debian sid) ii plone 1.0.5.20030909 A zope/cmf-based content management system hi zope 2.6.2-5 Open Source Web Application Server ii zope-book 20030918-1 Zope Open Content Book ii zope-cmf 1.3.3-1 Zope Content Management Framework (CMF) ii zope-cmfcalend 1.3.3-1 Zope CMF Calendar ii zope-cmfcore 1.3.3-1 Zope CMF Core services ii zope-cmfdefaul 1.3.3-1 Zope CMF Default (basic) content ii zope-cmfforum 1.0-3 Zope Content Management Framework Forum Modu ii zope-cmfplone 1.0.5.20030909 A zope/cmf-based content management system ii zope-cmftopic 1.3.3-1 Zope CMF Topic ii zope-cmfworkfl 0.4.2-4 Zope CMF workflow module ii zope-formulato 1.3.1-2 A tool to create and validate web forms in Z ii zope-ldap 1.1.0-3 A driver for connecting Zope with Ldap syste ii zope-localizer 1.0.1-5 Helps build multilingual web sites and multi ii zope-ttwtype 0.9.1-3 Enables portal administrators to create new ii zope-zshell 1.5-2 command line interface to Zope ii zopectl 0.3.1 Zope instances controlling utility Thank you! --kyler
On Tuesday, November 4, 2003, at 07:33 AM, Kyler Laird wrote:
[Do you prefer that I send only to the list? I'm copying you since you copied me.]
This problem comes up every few weeks. The admins refuse to acknowledge that the correct behavior for replying to a message on the list is to reply back to the list. Instead, they cling to some purist position about "munging" Reply-to: headers, even though that results in a default behavior that is incorrect: clicking "Reply" in most email clients only replies to the sender (off-list), while "Reply All" replies to the sender, to the list, and to anyone else CC'd on the post. Neither behavior is correct. I've debated this in the past here, and the admins seem pretty resistant to making things work to the benefit of the subscribers. They prefer to remain true to some purist position even at the cost of making the list inefficient and unwieldy. Document explaining the reasons not to use Reply-to: headers: http://www.unicom.com/pw/reply-to-harmful.html Response to that document: http://www.metasystema.net/essays/reply-to.mhtml ___/ / __/ / ____/ Ed Leafe Linux Love: unzip;strip;touch;finger;mount;fsck;more;yes;umount;sleep
[Do you prefer that I send only to the list? I'm copying you since you copied me.]
I really don't care. Because of the state of the 'reply-to' on the list, and because sometimes folks aren't on (or watching) the list, I eventually decided to use 'Reply All'. I realize it may be mildly inconvenient to whomever asked the question, but it's a reasonable default policy, I think, and I see a lot of people here doing that.
I need to get a simple calendar going. I thought it would be easy to install Plone and allow users to create events. It's not.
I can add events, but when I try to submit an edit (even the initial one), I get an AttributeError on "form". Any advice? I thought this would work "out of the box." Some guidance would be great.
It should, and this suggests a mismatch or other broken-ness. If you can send the traceback (from error_log) maybe we can diagnose a little better.
Ah! I should have done that originally. Traceback (innermost last): Module ZPublisher.Publish, line 98, in publish Module ZPublisher.mapply, line 88, in mapply Module ZPublisher.Publish, line 39, in call_object Module Products.CMFPlone.FormTool, line 233, in __call__ Module Products.CMFPlone.FormTool, line 268, in _validate Module ZPublisher.mapply, line 88, in mapply Module ZPublisher.Publish, line 39, in call_object Module Products.CMFCore.FSPythonScript, line 92, in __call__ Module Shared.DC.Scripts.Bindings, line 252, in __call__ Module Shared.DC.Scripts.Bindings, line 283, in _bindAndExec Module Products.CMFCore.FSPythonScript, line 126, in _exec - __traceback_info__: ({'traverse_subpath': [], 'container': <PloneSite instance at 90d61a0>, 'context': <Event at /Eng/Plone/Event.2003-11-02.2926>, 'script': <FSPythonScript at /Eng/Plone/validate_event_edit used for /Eng/Plone/Event.2003-11-02.2926>}, (), {}, None) Module Script (Python), line 5, in validate_event_edit Module Products.CMFPlone.FormTool, line 358, in addField Module Products.Formulator.Field, line 23, in __init__ Module Products.Formulator.Field, line 42, in initialize_values AttributeError: form
Along with versions of your OS, Zope, Python, CMF, and Plone.
(Debian sid) ii plone 1.0.5.20030909 A zope/cmf-based content management system hi zope 2.6.2-5 Open Source Web Application Server ii zope-book 20030918-1 Zope Open Content Book ii zope-cmf 1.3.3-1 Zope Content Management Framework (CMF) ii zope-cmfcalend 1.3.3-1 Zope CMF Calendar ii zope-cmfcore 1.3.3-1 Zope CMF Core services ii zope-cmfdefaul 1.3.3-1 Zope CMF Default (basic) content ii zope-cmfforum 1.0-3 Zope Content Management Framework Forum Modu ii zope-cmfplone 1.0.5.20030909 A zope/cmf-based content management system ii zope-cmftopic 1.3.3-1 Zope CMF Topic ii zope-cmfworkfl 0.4.2-4 Zope CMF workflow module ii zope-formulato 1.3.1-2 A tool to create and validate web forms in Z ii zope-ldap 1.1.0-3 A driver for connecting Zope with Ldap syste ii zope-localizer 1.0.1-5 Helps build multilingual web sites and multi ii zope-ttwtype 0.9.1-3 Enables portal administrators to create new ii zope-zshell 1.5-2 command line interface to Zope ii zopectl 0.3.1 Zope instances controlling utility
Thank you!
An excellent error report, but I'm afraid I can't figure out what the heck's going on. I don't know why the 'form' attribute does not exist. (In fact, I can't even figure out where it's supposed to be set, which is part of the problem.) Does anything else work? There's a newer version of Formulator out (1.4.1, I think) so maybe you can try that. You may also want to re-create your Plone instance in case something got screwed up. After that, you might try this on the Plone list. Maybe whoever wrote that could have an idea. (It's probably either runyaga or plonista by SourceForge id.) --jcc -- "Code generators follow the 80/20 rule. They solve most of the problems, but not all of the problems. There are always features and edge cases that will need hand-coding. Even if code generation could build 100 percent of the application, there will still be an endless supply of boring meetings about feature design." (http://www.devx.com/java/editorial/15511)
On Thu, Nov 06, 2003 at 05:28:26PM -0600, J Cameron Cooper wrote:
There's a newer version of Formulator out (1.4.1, I think) so maybe you can try that. You may also want to re-create your Plone instance in case something got screwed up.
Ah ha! That's just what I needed to hear. I should have caught it sooner, but I went back to this instance's Products directory and found that it had its own Formulator product. I removed it, restarted, and it seems to work now. Thank you! --kyler
participants (4)
-
Ed Leafe -
J Cameron Cooper -
J. Cameron Cooper -
Kyler Laird