← Back to team overview

oship-dev team mailing list archive

[Branch ~oship-dev/oshippy/trunk] Rev 489: Working on Python 3 implementation of MLHIM 2.3.0 reference model.

 

------------------------------------------------------------
revno: 489
committer: Timothy W. Cook <timothywayne.cook@xxxxxxxxx>
branch nick: oshippy
timestamp: Wed 2011-12-07 08:28:30 -0600
message:
  Working on Python 3 implementation of MLHIM 2.3.0 reference model.
added:
  src/__init__.py
modified:
  src/datatypes/__init__.py


--
lp:oshippy
https://code.launchpad.net/~oship-dev/oshippy/trunk

Your team OSHIP Development Team is subscribed to branch lp:oshippy.
To unsubscribe from this branch go to https://code.launchpad.net/~oship-dev/oshippy/trunk/+edit-subscription
=== added file 'src/__init__.py'
--- src/__init__.py	1970-01-01 00:00:00 +0000
+++ src/__init__.py	2011-12-07 14:28:30 +0000
@@ -0,0 +1,11 @@
+#-*- coding: utf-8 -*-
+# Copyright,2009-2011 Timothy W. Cook & Contributors
+# See the accompanying LICENSE.txt for use and distribution guidelines.
+
+import ccd
+import common
+import content
+import datatypes
+import demographics
+import metadata
+import structures

=== modified file 'src/datatypes/__init__.py'
--- src/datatypes/__init__.py	2011-12-07 05:41:07 +0000
+++ src/datatypes/__init__.py	2011-12-07 14:28:30 +0000
@@ -226,5 +226,28 @@
         if max_length and isinstance(max_length, int) and max_length > 0: self.max_length = max_length 
     
 
-
-
+class DvParagraph(DvAny):
+    """
+    A logical composite text value consisting of a series (a list) of DvStrings, i.e. plain or coded text to form a larger 
+    tract of prose, which may be interpreted for display purposes as a paragraph. DvParagraph is the standard way 
+    for constructing longer text items in summaries, reports and so on.
+    """
+    def __init__(self, items):
+        if isinstance(items, list):
+            for i in items:
+                if not isinstance(i, DvString):
+                    raise ValueError('A non-DvString was found in the DvPAragraph.items attribute.')
+            
+        self.items = items        
+                    
+class DvEncapsulated(metaclass=ABCMeta, DvAny): 
+    """
+    Abstract class defining the common meta-data of all types of encapsulated data.
+    """                   
+                        
+        
+        
+        
+        
+        
+