parameters: (tablename, filename, makedirs=False)
return_statement: return path
docstring: Given a tablename and a filename return the full path
      TODO: For now it assumes uploadseparate=True in the field definition,
            could be more versatile.
docstring_summary: Given a tablename and a filename return the full path
      TODO: For now it assumes uploadseparate=True in the field definition,
            could be more versatile.
docstring_tokens: Given a tablename and a filename return the full path TODO : For now it assumes uploadseparate = True in the field definition could be more versatile .
function: def upload_fullpath(tablename, filename, makedirs=False):
      """
      Given a tablename and a filename return the full path
      TODO: For now it assumes uploadseparate=True in the field definition,
            could be more versatile.
      """
      import os
      fieldname, img_uid = filename.split('.')[1:3]
      path = os.path.join(request.folder, 'uploads', tablename + '.' + fieldname, img_uid[:2], filename)
      if makedirs:
          try:
              os.makedirs(os.path.dirname(path))
          except OSError:
              print "Skipping creation of %s because it exists already." % os.path.dirname(path)
      return path
function_tokens: def upload_fullpath ( tablename , filename , makedirs = False ) : import os fieldname , img_uid = filename . split ( '.' ) [ 1 : 3 ] path = os . path . join ( request . folder , 'uploads' , tablename + '.' + fieldname , img_uid [ : 2 ] , filename ) if makedirs : try : os . makedirs ( os . path . dirname ( path ) ) except OSError : print "Skipping creation of %s because it exists already." % os . path . dirname ( path ) return path