[doc] In the process of refreshing documentation and website.

This commit is contained in:
Gaetan Delannay 2012-08-24 16:39:45 +02:00
parent 812bda7452
commit 5c2d94236f
12 changed files with 98 additions and 210 deletions

View file

@ -1724,7 +1724,9 @@ class File(Type):
else:
# I store value "None", excepted if I find in the request the desire
# to keep the file unchanged.
action = obj.REQUEST.get('%s_delete' % self.name, None)
action = None
rq = getattr(obj, 'REQUEST', None)
if rq: action = rq.get('%s_delete' % self.name, None)
if action == 'nochange': pass
else: setattr(obj, self.name, None)