Changeset 12 for plone4bio.base/trunk

Show
Ignore:
Timestamp:
02/16/08 10:58:27 (4 years ago)
Author:
mauro
Message:
 
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • plone4bio.base/trunk/plone4bio/base/README.txt

    r8 r12  
    2121interface defined in the *plone4bio.base* package. 
    2222 
     23Creating a sequence 
     24------------------- 
     25 
     26Let us create some sequences. 
     27 
     28        >>> self.setRoles(('Manager',)) 
     29        >>> self.portal.invokeFactory('Sequence','ferritin') 
     30        'ferritin' 
     31        >>> ferritin = getattr(self.portal,'ferritin') 
     32         
     33The Sequence objects are simple Zope 3-like persistent content items.. so we  
     34will configure the project using theirs properties. 
     35 
     36        >>> ferritin.title = u"Ferritin" 
     37        >>> ferritin.descritpion = u"Ferritin sequence" 
     38        >>> ferritin.sequence = u"CMSPDQWDKEAAQYDAHAQEFEKKSHRNNGTPEADQYRHMASQYQAMAQKLKAIANQLKKGSETCR" 
     39         
     40Now we can read some sequence properties: 
     41 
     42        >>> ferritin.getSeqObj() 
     43        .... 
     44        >>> ferritin.getPredictions() 
     45        [] 
     46        >>> ferritin.havePrediction("predictor") 
     47        False 
     48         
    2349Developer Notes 
    2450--------------- 
     
    2652The plone4bio* plone products are mainly developed on Debian Stable, so 
    2753they are mainly tested in that environment. Usually there should be no 
    28 problem in installing the products in GNU/Linux Zope/Plone environments. 
     54problem in installing the products in other Zope/Plone environments. 
    2955 
    3056Maintainer