Changeset 4601 for exist


Ignore:
Timestamp:
11/12/08 14:50:32 (11 years ago)
Author:
cbyrom
Message:

Allow author to be specified from inputs dict in Atom - by setting the
passed in value to be author.name on a new Author object.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • exist/trunk/python/ndgUtils/models/Atom.py

    r4595 r4601  
    317317            if inputs.has_key('Content'): 
    318318                self.Content = inputs.get('Content') 
     319            if inputs.has_key('author'): 
     320                name = inputs.get('author') 
     321                author = Person() 
     322                author.fromString(name) 
     323                self.author = author 
    319324             
    320325            # also pass any moles data up to the moles entity object 
Note: See TracChangeset for help on using the changeset viewer.