Commits

Luke Plant  committed 9e9b710

Modified PresentationClass to include 'category' field

  • Participants
  • Parent commits a2422cf

Comments (0)

Files changed (2)

File semanticeditor/definitions.py

     """
     A PresentationInfo representing a CSS class applied to a section.
     """
-    def __init__(self, name, verbose_name="", description="", allowed_elements=None, column_equiv=None):
+    def __init__(self, name, verbose_name="", description="",
+                 allowed_elements=None, column_equiv=None,
+                 category=None):
         super(PresentationClass, self).__init__(prestype="class",
                                                 name=name,
                                                 verbose_name=verbose_name,
                                                 description=description,
                                                 allowed_elements=allowed_elements,
                                                 column_equiv=column_equiv)
+        self.category = category
+
 
 class PresentationCommand(PresentationInfo):
     """

File semanticeditor/views.py

                              verbose_name=c.verbose_name,
                              description=c.description,
                              allowed_elements=c.allowed_elements.lower().split(' '),
-                             column_equiv=c.column_equiv)
+                             column_equiv=c.column_equiv,
+                             category=c.category)
 
 
 @json_view