|
From: Carrer Y. <yu...@al...> - 2004-02-25 14:47:39
|
> Hi to all of you,
>
> I am using OpenFlow 1.2.0 for the last month (Zope-2.6.1). Great Product.
>
> I noticed a small bug when I create a new transition. The description
> attribute is not saved.
>
> I have to change transition attributes and then the description is
> saved properly.
>
> Does anyone have the same problem?
>
in 1.1.0 it is not a problem.
In 1.2.0:
def addTransition(self, id, From, To, condition=None, REQUEST=None):
""" adds a transition """
t = transition(id, From, To, condition)
self._setObject(t.id, t)
if REQUEST: REQUEST.RESPONSE.redirect(REQUEST.HTTP_REFERER)
it does not set it :-)
def edit(self, condition, From, To, description, REQUEST=None):
""" """
self.condition = condition
self.From = From
self.To = To
self.description = description
self.reindex_object()
if REQUEST: REQUEST.RESPONSE.redirect('../index_html')
it does set it :-)
So just add
t.description = REQUEST['description'] in addTransition :-)
> Nikos Papagrigoriou.
>
>
>
> -------------------------------------------------------
> SF.Net is sponsored by: Speed Start Your Linux Apps Now.
> Build and deploy apps & Web services for Linux with
> a free DVD software kit from IBM. Click Now!
> http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
> _______________________________________________
> Openflow-dev mailing list
> Ope...@li...
> https://lists.sourceforge.net/lists/listinfo/openflow-dev
|