Changeset 1375


Ignore:
Timestamp:
02/15/07 14:09:42 (13 years ago)
Author:
jukka
Message:

Fixed #1150, spent 20 min. It was a wrong alarm, blog posts seem to be working fine, I just remembered that they were broken in this aspect. General finding was that if something is created in portal factory ( by using invokeFactory(context, id) -method, selecting an object for further editing should also be done inside portal_factory: obj=getattr(context.portal_factory, id)

Location:
trunk/skins/lemill
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/skins/lemill/new_story.py

    r1371 r1375  
    2424new_ob_id = stories.invokeFactory(id=new_id, type_name='Story') 
    2525 
    26 obj = getattr(stories, new_ob_id, None) 
     26obj = getattr(stories.portal_factory, new_ob_id, None) 
    2727if not obj: 
    2828    raise 'ops' 
  • trunk/skins/lemill/start_story.py

    r1023 r1375  
    2424new_ob_id = stories.invokeFactory(id=new_id, type_name='Story', title='About: '+context.Title()) 
    2525 
    26 obj = getattr(stories, new_ob_id, None) 
     26obj = getattr(stories.portal_factory, new_ob_id, None) 
    2727if not obj: 
    2828    raise 'ops' 
Note: See TracChangeset for help on using the changeset viewer.