force import of AuthorizeHelpers
authorThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Mon, 29 Nov 2010 10:02:37 +0000 (11:02 +0100)
committerThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Mon, 29 Nov 2010 10:02:37 +0000 (11:02 +0100)
15 files changed:
PLC/Accessors/Factory.py
PLC/Methods/AddInterfaceTag.py
PLC/Methods/AddNodeTag.py
PLC/Methods/AddPersonTag.py
PLC/Methods/AddSiteTag.py
PLC/Methods/AddSliceTag.py
PLC/Methods/DeleteInterfaceTag.py
PLC/Methods/DeletePersonTag.py
PLC/Methods/DeleteSiteTag.py
PLC/Methods/DeleteSliceTag.py
PLC/Methods/UpdateInterfaceTag.py
PLC/Methods/UpdateNodeTag.py
PLC/Methods/UpdatePersonTag.py
PLC/Methods/UpdateSiteTag.py
PLC/Methods/UpdateSliceTag.py

index b1ef299..539dbbb 100644 (file)
@@ -21,6 +21,9 @@ from PLC.SiteTags import SiteTags, SiteTag
 from PLC.Persons import Persons, Person
 from PLC.PersonTags import PersonTags, PersonTag
 
+# need to import so the core classes get decorated with caller_may_write_tag
+from PLC.AuthorizeHelpers import AuthorizeHelpers
+
 # known classes : { class -> details }
 taggable_classes = { Node : {'table_class' : Nodes,
                              'joins_class' : NodeTags, 'join_class' : NodeTag,
index 56d232b..b02b484 100644 (file)
@@ -12,6 +12,9 @@ from PLC.Interfaces import Interface, Interfaces
 from PLC.TagTypes import TagType, TagTypes
 from PLC.InterfaceTags import InterfaceTag, InterfaceTags
 
+# need to import so the core classes get decorated with caller_may_write_tag
+from PLC.AuthorizeHelpers import AuthorizeHelpers
+
 class AddInterfaceTag(Method):
     """
     Sets the specified setting for the specified interface
index d885cac..5080131 100644 (file)
@@ -11,6 +11,9 @@ from PLC.Nodes import Node, Nodes
 from PLC.TagTypes import TagType, TagTypes
 from PLC.NodeTags import NodeTag, NodeTags
 
+# need to import so the core classes get decorated with caller_may_write_tag
+from PLC.AuthorizeHelpers import AuthorizeHelpers
+
 class AddNodeTag(Method):
     """
     Sets the specified tag for the specified node
index 819d4e4..244b546 100644 (file)
@@ -10,6 +10,8 @@ from PLC.Persons import Person, Persons
 from PLC.TagTypes import TagType, TagTypes
 from PLC.PersonTags import PersonTag, PersonTags
 
+# need to import so the core classes get decorated with caller_may_write_tag
+from PLC.AuthorizeHelpers import AuthorizeHelpers
 
 class AddPersonTag(Method):
     """
index 8d6489a..bb5cfae 100644 (file)
@@ -11,6 +11,9 @@ from PLC.Nodes import Nodes
 from PLC.TagTypes import TagType, TagTypes
 from PLC.SiteTags import SiteTag, SiteTags
 
+# need to import so the core classes get decorated with caller_may_write_tag
+from PLC.AuthorizeHelpers import AuthorizeHelpers
+
 class AddSiteTag(Method):
     """
     Sets the specified setting for the specified site
index 3deebe1..ef78fa6 100644 (file)
@@ -13,6 +13,9 @@ from PLC.SliceTags import SliceTag, SliceTags
 from PLC.NodeGroups import NodeGroup, NodeGroups
 from PLC.InitScripts import InitScript, InitScripts
 
+# need to import so the core classes get decorated with caller_may_write_tag
+from PLC.AuthorizeHelpers import AuthorizeHelpers
+
 class AddSliceTag(Method):
     """
     Sets the specified tag of the slice to the specified value.
index 9d333a4..5ef9635 100644 (file)
@@ -12,6 +12,9 @@ from PLC.Interfaces import Interface, Interfaces
 from PLC.TagTypes import TagType, TagTypes
 from PLC.InterfaceTags import InterfaceTag, InterfaceTags
 
+# need to import so the core classes get decorated with caller_may_write_tag
+from PLC.AuthorizeHelpers import AuthorizeHelpers
+
 class DeleteInterfaceTag(Method):
     """
     Deletes the specified interface setting
index 6767aff..9d49861 100644 (file)
@@ -9,6 +9,9 @@ from PLC.Auth import Auth
 from PLC.PersonTags import PersonTag, PersonTags
 from PLC.Persons import Person, Persons
 
+# need to import so the core classes get decorated with caller_may_write_tag
+from PLC.AuthorizeHelpers import AuthorizeHelpers
+
 class DeletePersonTag(Method):
     """
     Deletes the specified person setting
index b63acf4..28eb768 100644 (file)
@@ -11,6 +11,7 @@ from PLC.Nodes import Nodes
 from PLC.TagTypes import TagType, TagTypes
 from PLC.SiteTags import SiteTag, SiteTags
 
+# need to import so the core classes get decorated with caller_may_write_tag
 from PLC.AuthorizeHelpers import AuthorizeHelpers
 
 class DeleteSiteTag(Method):
index e9cb134..35ad927 100644 (file)
@@ -10,6 +10,9 @@ from PLC.SliceTags import SliceTag, SliceTags
 from PLC.Slices import Slice, Slices
 from PLC.Nodes import Node, Nodes
 
+# need to import so the core classes get decorated with caller_may_write_tag
+from PLC.AuthorizeHelpers import AuthorizeHelpers
+
 class DeleteSliceTag(Method):
     """
     Deletes the specified slice or sliver attribute.
index 93a645c..bcd6fc0 100644 (file)
@@ -12,6 +12,9 @@ from PLC.Interfaces import Interface, Interfaces
 from PLC.TagTypes import TagType, TagTypes
 from PLC.InterfaceTags import InterfaceTag, InterfaceTags
 
+# need to import so the core classes get decorated with caller_may_write_tag
+from PLC.AuthorizeHelpers import AuthorizeHelpers
+
 class UpdateInterfaceTag(Method):
     """
     Updates the value of an existing interface setting
index 8fd0c88..d0b3d8e 100644 (file)
@@ -12,6 +12,9 @@ from PLC.Nodes import Node, Nodes
 from PLC.TagTypes import TagType, TagTypes
 from PLC.NodeTags import NodeTag, NodeTags
 
+# need to import so the core classes get decorated with caller_may_write_tag
+from PLC.AuthorizeHelpers import AuthorizeHelpers
+
 class UpdateNodeTag(Method):
     """
     Updates the value of an existing node tag
index 67fae08..da443ee 100644 (file)
@@ -9,6 +9,9 @@ from PLC.Auth import Auth
 from PLC.PersonTags import PersonTag, PersonTags
 from PLC.Persons import Person, Persons
 
+# need to import so the core classes get decorated with caller_may_write_tag
+from PLC.AuthorizeHelpers import AuthorizeHelpers
+
 class UpdatePersonTag(Method):
     """
     Updates the value of an existing person setting
index 5dc1a8c..77d22a5 100644 (file)
@@ -11,6 +11,9 @@ from PLC.Nodes import Nodes
 from PLC.TagTypes import TagType, TagTypes
 from PLC.SiteTags import SiteTag, SiteTags
 
+# need to import so the core classes get decorated with caller_may_write_tag
+from PLC.AuthorizeHelpers import AuthorizeHelpers
+
 class UpdateSiteTag(Method):
     """
     Updates the value of an existing site setting
index a8de812..dbf8d3d 100644 (file)
@@ -13,6 +13,9 @@ from PLC.InitScripts import InitScript, InitScripts
 
 from PLC.AuthorizeHelpers import AuthorizeHelpers
 
+# need to import so the core classes get decorated with caller_may_write_tag
+from PLC.AuthorizeHelpers import AuthorizeHelpers
+
 class UpdateSliceTag(Method):
     """
     Updates the value of an existing slice or sliver attribute.