Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enabling IEventBasic for existing objects fails in 1.1.1 #160

Closed
pbauer opened this issue May 23, 2014 · 7 comments
Closed

Enabling IEventBasic for existing objects fails in 1.1.1 #160

pbauer opened this issue May 23, 2014 · 7 comments
Assignees

Comments

@pbauer
Copy link
Sponsor Member

pbauer commented May 23, 2014

When enabling IEventBasic for existing objects in p.a.e. 1.1.1 the objects have no start&end. Thus inline-validation fails and they can't be editied.

Traceback (innermost last):
 Module ZPublisher.Publish, line 138, in publish
 Module ZPublisher.mapply, line 77, in mapply
 Module Products.PDBDebugMode.runcall, line 70, in pdb_runcall
 Module ZPublisher.Publish, line 48, in call_object
 Module plone.app.z3cform.inline_validation, line 29, in __call__
 Module z3c.form.group, line 97, in extractData
 Module z3c.form.group, line 64, in extractData
 Module z3c.form.form, line 146, in extractData
 Module z3c.form.field, line 324, in extract
 Module z3c.form.field, line 216, in validate
 Module z3c.form.validator, line 201, in validate
 Module z3c.form.validator, line 206, in validateObject
 Module zope.interface.interface, line 590, in validateInvariants
 Module plone.app.event.dx.behaviors, line 140, in validate_start_end
 Module z3c.form.validator, line 175, in __getattr__
 Module z3c.form.datamanager, line 71, in get
 Module plone.app.event.dx.behaviors, line 358, in start
AttributeError: start
@pbauer pbauer added the bug label May 23, 2014
@Gomez
Copy link
Member

Gomez commented Oct 2, 2014

This bug is described in the mastering plone trainig:

https://github.com/plone/training/blob/master/events.rst

Update if fixed or more info available.

thet added a commit that referenced this issue Oct 14, 2014
…e not available on the context, e.g. after event related behaviors were added to the object. Same for the recurrence attribute. Fixes #160.
@thet
Copy link
Member

thet commented Oct 14, 2014

should be fixed now! @Gomez @pbauer can you please verify?
if it works for you, i can make a release and the bug-reference in http://plone-training.readthedocs.org/en/latest/events.html should be removed

@thet thet closed this as completed Oct 14, 2014
@Gomez
Copy link
Member

Gomez commented Oct 14, 2014

I will go through it soon, will update then

@Gomez Gomez self-assigned this Oct 14, 2014
thet added a commit that referenced this issue Oct 14, 2014
…e not available on the context, e.g. after event related behaviors were added to the object. Same for the recurrence attribute. Fixes #160.
@thet
Copy link
Member

thet commented Oct 14, 2014

the commit f5c316b was replaced by a1c1d69

@Gomez
Copy link
Member

Gomez commented Oct 22, 2014

Steps to reproduce:

  1. Buildout: https://github.com/collective/training_buildout
    Now you need to make a small change to the buildout. Open the file buildout.cfg in an editor and add a # at the beginning of line 25 where it says buildout_dir = /home/vagrant. Then remove the # at the next line. Activate ploneconf.site
  2. cd src;git clone https://github.com/collective/ploneconf.site_sneak.git
  3. cp -Rf src/ploneconf.site_sneak/chapters/23_dexterity_2/ src/ploneconf.site
  4. Install ploneconf.site
  5. Create a talk ct
  6. Active Event Basic behavior
  7. Try to open the previous talk ct

@thet thet reopened this Oct 22, 2014
thet added a commit that referenced this issue Oct 23, 2014
@thet
Copy link
Member

thet commented Oct 23, 2014

i began to work on it here:
65fa06b

the problem is that no templates or code should rely on the necessary attributes beeing actually set. which is cumbersome - there are many more places which need this fix (e.g. ical export, probably event_listing too). at least the possible areas where we have to apply this fix can be found via a test (by extending AbstractSampleDataEvents in https://github.com/plone/plone.app.event/blob/1.1.x/plone/app/event/tests/base_setup.py#L32)

i have to consult my pillow about that. maybe it's the best to provide an upgrade script which fixes all contents with some default values. but which default values should then be used?

however, i can't spend much more time for it this week, i fear...

@pbauer
Copy link
Sponsor Member Author

pbauer commented Aug 25, 2022

Closed due to long inactivity. Please reopen if this is still relevant for Plone 5.2 or 6.

@pbauer pbauer closed this as completed Aug 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants