Back to index

plone3  3.1.7
Classes | Functions
wicked.at.field Namespace Reference

Classes

class  WikiField

Functions

def baseunit_to_string
def fileupload_to_string

Function Documentation

def wicked.at.field.baseunit_to_string (   value,
  field 
)
this avoid a security proxy that will foul regexes

Definition at line 43 of file field.py.

00043 
00044 def baseunit_to_string(value, field):
00045     """this avoid a security proxy that will foul regexes"""
00046     return value.getRaw()
00047 
00048 
00049 @implementer(IValueToString)
@adapter(FileUpload, IAmWickedField)
def wicked.at.field.fileupload_to_string (   value,
  field 
)
a file was uploaded, get the (possibly transformed) value

Definition at line 50 of file field.py.

00050 
00051 def fileupload_to_string(value, field):
00052     """a file was uploaded, get the (possibly transformed) value"""
00053     # XXX no `instance` defined
00054     return field.get(instance, skip_filters=True)
00055 
00056 
00057