From: Thierry Parmentelat Date: Mon, 29 Nov 2010 10:02:37 +0000 (+0100) Subject: force import of AuthorizeHelpers X-Git-Tag: plcapi-5.0-19~21 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=3cf628a5149714c966e7dc1a778a5df7afc581dc;p=plcapi.git force import of AuthorizeHelpers --- diff --git a/PLC/Accessors/Factory.py b/PLC/Accessors/Factory.py index b1ef299..539dbbb 100644 --- a/PLC/Accessors/Factory.py +++ b/PLC/Accessors/Factory.py @@ -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, diff --git a/PLC/Methods/AddInterfaceTag.py b/PLC/Methods/AddInterfaceTag.py index 56d232b..b02b484 100644 --- a/PLC/Methods/AddInterfaceTag.py +++ b/PLC/Methods/AddInterfaceTag.py @@ -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 diff --git a/PLC/Methods/AddNodeTag.py b/PLC/Methods/AddNodeTag.py index d885cac..5080131 100644 --- a/PLC/Methods/AddNodeTag.py +++ b/PLC/Methods/AddNodeTag.py @@ -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 diff --git a/PLC/Methods/AddPersonTag.py b/PLC/Methods/AddPersonTag.py index 819d4e4..244b546 100644 --- a/PLC/Methods/AddPersonTag.py +++ b/PLC/Methods/AddPersonTag.py @@ -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): """ diff --git a/PLC/Methods/AddSiteTag.py b/PLC/Methods/AddSiteTag.py index 8d6489a..bb5cfae 100644 --- a/PLC/Methods/AddSiteTag.py +++ b/PLC/Methods/AddSiteTag.py @@ -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 diff --git a/PLC/Methods/AddSliceTag.py b/PLC/Methods/AddSliceTag.py index 3deebe1..ef78fa6 100644 --- a/PLC/Methods/AddSliceTag.py +++ b/PLC/Methods/AddSliceTag.py @@ -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. diff --git a/PLC/Methods/DeleteInterfaceTag.py b/PLC/Methods/DeleteInterfaceTag.py index 9d333a4..5ef9635 100644 --- a/PLC/Methods/DeleteInterfaceTag.py +++ b/PLC/Methods/DeleteInterfaceTag.py @@ -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 diff --git a/PLC/Methods/DeletePersonTag.py b/PLC/Methods/DeletePersonTag.py index 6767aff..9d49861 100644 --- a/PLC/Methods/DeletePersonTag.py +++ b/PLC/Methods/DeletePersonTag.py @@ -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 diff --git a/PLC/Methods/DeleteSiteTag.py b/PLC/Methods/DeleteSiteTag.py index b63acf4..28eb768 100644 --- a/PLC/Methods/DeleteSiteTag.py +++ b/PLC/Methods/DeleteSiteTag.py @@ -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): diff --git a/PLC/Methods/DeleteSliceTag.py b/PLC/Methods/DeleteSliceTag.py index e9cb134..35ad927 100644 --- a/PLC/Methods/DeleteSliceTag.py +++ b/PLC/Methods/DeleteSliceTag.py @@ -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. diff --git a/PLC/Methods/UpdateInterfaceTag.py b/PLC/Methods/UpdateInterfaceTag.py index 93a645c..bcd6fc0 100644 --- a/PLC/Methods/UpdateInterfaceTag.py +++ b/PLC/Methods/UpdateInterfaceTag.py @@ -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 diff --git a/PLC/Methods/UpdateNodeTag.py b/PLC/Methods/UpdateNodeTag.py index 8fd0c88..d0b3d8e 100644 --- a/PLC/Methods/UpdateNodeTag.py +++ b/PLC/Methods/UpdateNodeTag.py @@ -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 diff --git a/PLC/Methods/UpdatePersonTag.py b/PLC/Methods/UpdatePersonTag.py index 67fae08..da443ee 100644 --- a/PLC/Methods/UpdatePersonTag.py +++ b/PLC/Methods/UpdatePersonTag.py @@ -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 diff --git a/PLC/Methods/UpdateSiteTag.py b/PLC/Methods/UpdateSiteTag.py index 5dc1a8c..77d22a5 100644 --- a/PLC/Methods/UpdateSiteTag.py +++ b/PLC/Methods/UpdateSiteTag.py @@ -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 diff --git a/PLC/Methods/UpdateSliceTag.py b/PLC/Methods/UpdateSliceTag.py index a8de812..dbf8d3d 100644 --- a/PLC/Methods/UpdateSliceTag.py +++ b/PLC/Methods/UpdateSliceTag.py @@ -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.