Data Model version 2.1.2
Acknowledgements
Diagram | Class Map | Attribute Map | Method Map | Help | License
Home | Package | Class | Attribute | Method: { prev | next }

Method: getFileLocation


    get absolute file location for TopObject in repository

guid: www.ccpn.ac.uk_Fogh_2007-04-24-13:22:35_00003
OpType: otherQuery
OpSubType: None
isQuery: True
isAbstract: False
Scope: instance_level
Code: url = self.url
protocol = url.protocol

if protocol == 'file':
  from memops.universal import Io as uniIo
  result = uniIo.joinPath(url.getDataLocation(), *packageName.split('.'))

else:
  raise ApiError("getFileLocation not implemented for url.protocol == '%s'" % protocol)
  Data Model Version 2.1.2
Go to Top  
  Autogenerated by  PyApiDocGen  revision 1.3   on  Thu Oct 2 16:09:04 2014    from data model package  memops.api.Implementation.Repository   revision ?  
  Work done by the CCPN team.
www.ccpn.ac.uk