Package osaf :: Package sharing :: Module Sharing :: Class WebDAVAccount
[frames | no frames]

Type WebDAVAccount

object --+                
         |                
     CItem --+            
             |            
          Item --+        
                 |        
              Item --+    
                     |    
           ContentItem --+
                         |
                        WebDAVAccount


Method Summary
  findMatchingAccount(cls, view, url)
Find a WebDAV account which corresponds to a URL. (Class method)
  getLocation(self)
Return the base url of the account
Inherited from ContentItem: __init__, __str__, __unicode__, addToCollection, ExportItemData, getBasedAttributes, getCurrentMeEmailAddress, getEmailAddress, getMembershipItem, getSharedState, InitOutgoingAttributes, isAttributeModifiable, ItemAboutString, ItemBodyString, ItemWhoFromString, ItemWhoString, removeFromCollection, SetItemBodyString, StampKind
Inherited from Item: getDefaultParent, getKind, iterItems
Inherited from Item: __getitem__, __iter__, _repr_, addValue, check, clone, collectionChanged, copy, delete, dir, find, findMatch, findPath, findUUID, getACL, getAttributeValue, getItemChild, getItemCloud, getItemDisplayName, getItemDisplayString, getValue, getVersion, hasAttributeAspect, hasChild, hasChildren, hashItem, hasKey, hasLocalAttributeValue, hasValue, isAttributeDirty, isItemOf, isRemote, iterAttributeValues, iterChildren, mixinKinds, move, placeChild, printItem, refCount, removeACL, removeAttributeValue, removeValue, rename, setACL, setAttributeValue, setPinned, setValue, unwatchCollection, unwatchKind, walk, watchCollection, watchKind
Inherited from CItem: __new__, __repr__, getAttributeAspect, getDirty, isDeleted, isDeleting, isDirty, isNew, isPinned, isSchema, isStale, setDirty
Inherited from object: __delattr__, __getattribute__, __hash__, __reduce__, __reduce_ex__, __setattr__

Property Summary
Inherited from ContentItem: bodyString, sharedState

Instance Variable Summary
  accountType: Account Type -- One(None)
  body: attribute descriptor
  collections: attribute descriptor
  conduits: Sequence(WebDAVConduit)
  contentsOwner: attribute descriptor
  createdOn: attribute descriptor
  creator: attribute descriptor
  description: attribute descriptor
  displayName: attribute descriptor
  host: Host -- One(Text)
  importance: attribute descriptor
  kindExtent: attribute descriptor
  lastModified: attribute descriptor
  lastModifiedBy: attribute descriptor
  mine: attribute descriptor
  modifiedOn: attribute descriptor
  monitors: attribute descriptor
  password: Password -- One(Text)
  path: Path -- One(Text)
  port: Port -- One(Integer)
  previousStamps: attribute descriptor
  private: attribute descriptor
  read: attribute descriptor
  references: attribute descriptor
  sharedIn: attribute descriptor
  shares: attribute descriptor
  TPBDetailItemOwner: attribute descriptor
  TPBSelectedItemOwner: attribute descriptor
  username: Username -- One(Text)
  useSSL: Use secure connection (SSL/TLS) -- One(Boolean)
  viewContainer: attribute descriptor
  watcherDispatch: attribute descriptor
  watchers: attribute descriptor
  watches: attribute descriptor
Inherited from Item: aliasedBy, typeFor, version
Inherited from CItem: itsKind, itsName, itsParent, itsPath, itsRoot, itsUUID, itsVersion, itsView

Class Variable Summary
dict __kind_info__ = {'displayName': u'WebDAV Account Account...
Inherited from ContentItem: __kind_clouds__, READONLY, READWRITE, UNSHARED
Inherited from Item: __default_path__
Inherited from CItem: ADIRTY, CDIRTY, CMERGED, CONTAINER, COPYEXPORT, CORESCHEMA, DELETED, DELETING, DIRTY, FDIRTY, IMPORTING, MERGED, MUTATING, NDIRTY, NEW, NMERGED, NODIRTY, PINNED, RAW, RDIRTY, RMERGED, SAVEMASK, SCHEMA, STALE, VDIRTY, VMERGED, VRDIRTY

Instance Method Details

getLocation(self)

Return the base url of the account

Class Method Details

findMatchingAccount(cls, view, url)

Find a WebDAV account which corresponds to a URL.

The url being passed in is for a collection -- it will include the collection name in the url. We need to find a webdav account who has been set up to operate on the parent directory of this collection. For example, if the url is http://pilikia.osafoundation.org/dev1/foo/ we need to find an account whose schema+host+port match and whose path starts with /dev1

Note: this logic assumes only one account will match; you aren't currently allowed to have to multiple webdav accounts pointing to the same scheme+host+port+path combination.
Parameters:
view - The repository view object
           (type=repository.persistence.RepositoryView)
url - The url which points to a collection
           (type=String)
Returns:
An account item, or None if no WebDAV account could be found.

Instance Variable Details

accountType

Account Type -- One(None)
Value:
<Role accountType of <class 'osaf.sharing.Sharing.WebDAVAccount'>>     

body

attribute descriptor
Value:
<chandlerdb.schema.c.CDescriptor object at 0xb6d09c6c>                 

collections

attribute descriptor
Value:
<chandlerdb.schema.c.CDescriptor object at 0xb6d09c4c>                 

conduits

Sequence(WebDAVConduit)
Value:
<Role conduits of <class 'osaf.sharing.Sharing.WebDAVAccount'>>        

contentsOwner

attribute descriptor
Value:
<chandlerdb.schema.c.CDescriptor object at 0xb6d09c8c>                 

createdOn

attribute descriptor
Value:
<chandlerdb.schema.c.CDescriptor object at 0xb6d09dcc>                 

creator

attribute descriptor
Value:
<chandlerdb.schema.c.CDescriptor object at 0xb6d09aec>                 

description

attribute descriptor
Value:
<chandlerdb.schema.c.CDescriptor object at 0xb6d09cac>                 

displayName

attribute descriptor
Value:
<chandlerdb.schema.c.CDescriptor object at 0xb6d09d8c>                 

host

Host -- One(Text)

The hostname of the account
Value:
<Role host of <class 'osaf.sharing.Sharing.WebDAVAccount'>>            

importance

attribute descriptor
Value:
<chandlerdb.schema.c.CDescriptor object at 0xb6d09cec>                 

kindExtent

attribute descriptor
Value:
<chandlerdb.schema.c.CDescriptor object at 0xb6d09d4c>                 

lastModified

attribute descriptor
Value:
<chandlerdb.schema.c.CDescriptor object at 0xb6d09dac>                 

lastModifiedBy

attribute descriptor
Value:
<chandlerdb.schema.c.CDescriptor object at 0xb6d09c0c>                 

mine

attribute descriptor
Value:
<chandlerdb.schema.c.CDescriptor object at 0xb6d09b0c>                 

modifiedOn

attribute descriptor
Value:
<chandlerdb.schema.c.CDescriptor object at 0xb6d09acc>                 

monitors

attribute descriptor
Value:
<chandlerdb.schema.c.CDescriptor object at 0xb6d09b8c>                 

password

Password -- One(Text)

Issues: This should not be a simple string. We need some solution for encrypting it.
Value:
<Role password of <class 'osaf.sharing.Sharing.WebDAVAccount'>>        

path

Path -- One(Text)

Base path on the host to use for publishing
Value:
<Role path of <class 'osaf.sharing.Sharing.WebDAVAccount'>>            

port

Port -- One(Integer)

The non-SSL port number to use
Value:
<Role port of <class 'osaf.sharing.Sharing.WebDAVAccount'>>            

previousStamps

attribute descriptor
Value:
<chandlerdb.schema.c.CDescriptor object at 0xb6d09bcc>                 

private

attribute descriptor
Value:
<chandlerdb.schema.c.CDescriptor object at 0xb6d09d2c>                 

read

attribute descriptor
Value:
<chandlerdb.schema.c.CDescriptor object at 0xb6d09c2c>                 

references

attribute descriptor
Value:
<chandlerdb.schema.c.CDescriptor object at 0xb6d09b6c>                 

sharedIn

attribute descriptor
Value:
<chandlerdb.schema.c.CDescriptor object at 0xb6d09dec>                 

shares

attribute descriptor
Value:
<chandlerdb.schema.c.CDescriptor object at 0xb6d09bec>                 

TPBDetailItemOwner

attribute descriptor
Value:
<chandlerdb.schema.c.CDescriptor object at 0xb6d09b4c>                 

TPBSelectedItemOwner

attribute descriptor
Value:
<chandlerdb.schema.c.CDescriptor object at 0xb6d09d0c>                 

username

Username -- One(Text)
Value:
<Role username of <class 'osaf.sharing.Sharing.WebDAVAccount'>>        

useSSL

Use secure connection (SSL/TLS) -- One(Boolean)

Whether or not to use SSL/TLS
Value:
<Role useSSL of <class 'osaf.sharing.Sharing.WebDAVAccount'>>          

viewContainer

attribute descriptor
Value:
<chandlerdb.schema.c.CDescriptor object at 0xb6d09ccc>                 

watcherDispatch

attribute descriptor
Value:
<chandlerdb.schema.c.CDescriptor object at 0xb6d09bac>                 

watchers

attribute descriptor
Value:
<chandlerdb.schema.c.CDescriptor object at 0xb6d09d6c>                 

watches

attribute descriptor
Value:
<chandlerdb.schema.c.CDescriptor object at 0xb6d09b2c>                 

Class Variable Details

__kind_info__

Type:
dict
Value:
{'description': "A WebDAV 'Account'\n\nIssues:\n   Long term we're pro\
bably not going to treat WebDAV as an account, but rather how a web br\
owser maintains URL-to-ACL mappings.\n",
 'displayName': u'WebDAV Account Account'}                             

Generated by Epydoc 2.1 on Mon Dec 19 13:33:36 2005 http://epydoc.sf.net