def gis_marker_retrieve_file_properties(filename, path=None):
 if (not path):
  path = current.db.gis_marker.image.uploadfolder
 if ('/' in filename):
  _path = filename.split('/', 1)
  if (len(_path) > 1):
   (_path, filename) = _path
  else:
   (_path, filename) = ('', filename)
  path = os.path.join(path, _path)
 return {'path': path, 'filename': filename}

def gis_marker_retrieve_file_properties ( filename , path = None ) : if ( not path ) : path = current . db . gis_marker . image . uploadfolder if ( '/' in filename ) : _path = filename . split ( '/' , 1 ) if ( len ( _path ) > 1 ) : ( _path , filename ) = _path else : ( _path , filename ) = ( '' , filename ) path = os . path . join ( path , _path ) return { 'path' : path , 'filename' : filename }
custom method to override web2py dals standard retrieve_file_properties .