git://git.onelab.eu
/
plcapi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
ba0d6a2
)
force import of AuthorizeHelpers
author
Thierry Parmentelat
<thierry.parmentelat@sophia.inria.fr>
Mon, 29 Nov 2010 10:02:37 +0000
(11:02 +0100)
committer
Thierry Parmentelat
<thierry.parmentelat@sophia.inria.fr>
Mon, 29 Nov 2010 10:02:37 +0000
(11:02 +0100)
15 files changed:
PLC/Accessors/Factory.py
patch
|
blob
|
history
PLC/Methods/AddInterfaceTag.py
patch
|
blob
|
history
PLC/Methods/AddNodeTag.py
patch
|
blob
|
history
PLC/Methods/AddPersonTag.py
patch
|
blob
|
history
PLC/Methods/AddSiteTag.py
patch
|
blob
|
history
PLC/Methods/AddSliceTag.py
patch
|
blob
|
history
PLC/Methods/DeleteInterfaceTag.py
patch
|
blob
|
history
PLC/Methods/DeletePersonTag.py
patch
|
blob
|
history
PLC/Methods/DeleteSiteTag.py
patch
|
blob
|
history
PLC/Methods/DeleteSliceTag.py
patch
|
blob
|
history
PLC/Methods/UpdateInterfaceTag.py
patch
|
blob
|
history
PLC/Methods/UpdateNodeTag.py
patch
|
blob
|
history
PLC/Methods/UpdatePersonTag.py
patch
|
blob
|
history
PLC/Methods/UpdateSiteTag.py
patch
|
blob
|
history
PLC/Methods/UpdateSliceTag.py
patch
|
blob
|
history
diff --git
a/PLC/Accessors/Factory.py
b/PLC/Accessors/Factory.py
index
b1ef299
..
539dbbb
100644
(file)
--- 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
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,
# 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
(file)
--- 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
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
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
(file)
--- 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
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
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
(file)
--- 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
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):
"""
class AddPersonTag(Method):
"""
diff --git
a/PLC/Methods/AddSiteTag.py
b/PLC/Methods/AddSiteTag.py
index
8d6489a
..
bb5cfae
100644
(file)
--- 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
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
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
(file)
--- 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
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.
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
(file)
--- 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
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
class DeleteInterfaceTag(Method):
"""
Deletes the specified interface setting
diff --git
a/PLC/Methods/DeletePersonTag.py
b/PLC/Methods/DeletePersonTag.py
index
6767aff
..
9d49861
100644
(file)
--- 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
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
class DeletePersonTag(Method):
"""
Deletes the specified person setting
diff --git
a/PLC/Methods/DeleteSiteTag.py
b/PLC/Methods/DeleteSiteTag.py
index
b63acf4
..
28eb768
100644
(file)
--- 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
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):
from PLC.AuthorizeHelpers import AuthorizeHelpers
class DeleteSiteTag(Method):
diff --git
a/PLC/Methods/DeleteSliceTag.py
b/PLC/Methods/DeleteSliceTag.py
index
e9cb134
..
35ad927
100644
(file)
--- 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
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.
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
(file)
--- 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
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
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
(file)
--- 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
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
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
(file)
--- 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
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
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
(file)
--- 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
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
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
(file)
--- 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
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.
class UpdateSliceTag(Method):
"""
Updates the value of an existing slice or sliver attribute.