plcapi.git
13 years agooops - wrong identation
Thierry Parmentelat [Fri, 26 Nov 2010 06:57:18 +0000 (07:57 +0100)]
oops - wrong identation

13 years agoall tag types use permission helpers in AuthorizeHelpers
Thierry Parmentelat [Thu, 25 Nov 2010 17:41:04 +0000 (18:41 +0100)]
all tag types use permission helpers in AuthorizeHelpers
accessors properly checked as well

13 years agopermission checking on node tags factorized in Node.caller_may_write_tag
Thierry Parmentelat [Thu, 25 Nov 2010 15:06:28 +0000 (16:06 +0100)]
permission checking on node tags factorized in Node.caller_may_write_tag

13 years agolocate_or_create_tag returns tag_type, and not tag_type_id anymore
Thierry Parmentelat [Thu, 25 Nov 2010 15:05:34 +0000 (16:05 +0100)]
locate_or_create_tag returns tag_type, and not tag_type_id anymore
accessors are now fully type-checked
accessors to use the caller_may_write_tag method if exists

13 years agoauthentication exception a bit more verbose
Thierry Parmentelat [Thu, 25 Nov 2010 15:02:58 +0000 (16:02 +0100)]
authentication exception a bit more verbose

13 years agotweak Accessors_site template to mentino person_roles
Thierry Parmentelat [Thu, 25 Nov 2010 14:59:17 +0000 (15:59 +0100)]
tweak Accessors_site template to mentino person_roles

13 years agocosmetic
Thierry Parmentelat [Thu, 25 Nov 2010 14:58:41 +0000 (15:58 +0100)]
cosmetic

13 years agodon't sync remote site local accessors
Thierry Parmentelat [Wed, 24 Nov 2010 19:45:13 +0000 (20:45 +0100)]
don't sync remote site local accessors

13 years agoreview (and fix) the way we retrieve the subject object
Thierry Parmentelat [Wed, 24 Nov 2010 19:01:23 +0000 (20:01 +0100)]
review (and fix) the way we retrieve the subject object

13 years agoprotect GetPersonTags to avoid disclosing person emails
Thierry Parmentelat [Wed, 24 Nov 2010 09:55:54 +0000 (10:55 +0100)]
protect GetPersonTags to avoid disclosing person emails

13 years agocomment in GetPersons
Thierry Parmentelat [Tue, 23 Nov 2010 21:35:36 +0000 (22:35 +0100)]
comment in GetPersons

13 years agocomment on define_accessors
Thierry Parmentelat [Tue, 23 Nov 2010 21:24:23 +0000 (22:24 +0100)]
comment on define_accessors

13 years agoadd a note in GetPersons about a possible privacy leak
Thierry Parmentelat [Tue, 23 Nov 2010 18:20:30 +0000 (19:20 +0100)]
add a note in GetPersons about a possible privacy leak

13 years agoget the down migration right
Thierry Parmentelat [Tue, 23 Nov 2010 15:04:43 +0000 (16:04 +0100)]
get the down migration right

13 years agofix duplicate arg in helpers
Thierry Parmentelat [Tue, 23 Nov 2010 08:47:45 +0000 (09:47 +0100)]
fix duplicate arg in helpers

13 years agobugfix
Thierry Parmentelat [Tue, 23 Nov 2010 06:43:33 +0000 (07:43 +0100)]
bugfix

13 years agocommitted un unsaved file
Thierry Parmentelat [Mon, 22 Nov 2010 23:56:22 +0000 (00:56 +0100)]
committed un unsaved file

13 years agoadded doc on migration
Thierry Parmentelat [Mon, 22 Nov 2010 23:52:26 +0000 (00:52 +0100)]
added doc on migration

13 years agodefault for get_roles in the accessors factory is all_roles
Thierry Parmentelat [Mon, 22 Nov 2010 22:25:01 +0000 (23:25 +0100)]
default for get_roles in the accessors factory is all_roles

13 years agoadd/update/delete slice tags should be fine
Thierry Parmentelat [Mon, 22 Nov 2010 22:17:57 +0000 (23:17 +0100)]
add/update/delete slice tags should be fine

13 years agogive more details on permission denied
Thierry Parmentelat [Sun, 21 Nov 2010 21:24:17 +0000 (22:24 +0100)]
give more details on permission denied

13 years agobugfix, don't use methods...
Thierry Parmentelat [Sun, 21 Nov 2010 21:21:57 +0000 (22:21 +0100)]
bugfix, don't use methods...

13 years agoMerge branch 'master' of ssh://git.onelab.eu/git/plcapi
Thierry Parmentelat [Fri, 19 Nov 2010 16:05:29 +0000 (17:05 +0100)]
Merge branch 'master' of ssh://git.onelab.eu/git/plcapi

13 years agoaccessors and db-config.d tags roughly OK
Thierry Parmentelat [Fri, 19 Nov 2010 16:05:23 +0000 (17:05 +0100)]
accessors and db-config.d tags roughly OK

13 years agofix indent error
Barış Metin [Fri, 19 Nov 2010 15:33:00 +0000 (16:33 +0100)]
fix indent error

13 years agoMerge branch 'master' of ssh://git.onelab.eu/git/plcapi
Thierry Parmentelat [Fri, 19 Nov 2010 14:39:10 +0000 (15:39 +0100)]
Merge branch 'master' of ssh://git.onelab.eu/git/plcapi

13 years agofirst draft of slice tags authorization in AddSliceTag
Thierry Parmentelat [Fri, 19 Nov 2010 14:38:11 +0000 (15:38 +0100)]
first draft of slice tags authorization in AddSliceTag

13 years agoadd enable_hmac slice tag accessor
Barış Metin [Fri, 19 Nov 2010 14:37:20 +0000 (15:37 +0100)]
add enable_hmac slice tag accessor

13 years ago.gitignore
Thierry Parmentelat [Fri, 19 Nov 2010 13:27:54 +0000 (14:27 +0100)]
.gitignore

13 years agoshow tagname when permission is denied
Thierry Parmentelat [Fri, 19 Nov 2010 13:25:53 +0000 (14:25 +0100)]
show tagname when permission is denied

13 years agooops - missing file
Thierry Parmentelat [Fri, 19 Nov 2010 11:25:28 +0000 (12:25 +0100)]
oops - missing file

13 years agoreviewing the tags permission system
Thierry Parmentelat [Thu, 18 Nov 2010 19:16:19 +0000 (20:16 +0100)]
reviewing the tags permission system
tag_types don't have a min_role_id anymore but a set of roles
new methods AddRoleToTagType and DeleteRoleFromTagType to handle that
new file PLC/AuthorizeHelpers.py has helpers to implement authorizations
this is a checkpoint commit - remaining todo:
- slice tags methods are unchanged yet
- accessors and factory still use min_role_id

13 years agoMerge branch 'master' of ssh://git.onelab.eu/git/plcapi
Thierry Parmentelat [Thu, 18 Nov 2010 09:23:33 +0000 (10:23 +0100)]
Merge branch 'master' of ssh://git.onelab.eu/git/plcapi

13 years agocleanup more svn keywords
Thierry Parmentelat [Thu, 18 Nov 2010 09:23:14 +0000 (10:23 +0100)]
cleanup more svn keywords

13 years agoMerge commit 'origin/master'
root [Wed, 17 Nov 2010 21:52:56 +0000 (22:52 +0100)]
Merge commit 'origin/master'

13 years agoAuthMethod is a must so return if it's missing
S.Çağlar Onur [Wed, 17 Nov 2010 21:49:50 +0000 (16:49 -0500)]
AuthMethod is a must so return if it's missing

13 years agoMerge commit 'origin/master'
root [Wed, 17 Nov 2010 21:43:54 +0000 (22:43 +0100)]
Merge commit 'origin/master'

13 years agosupport other Auth types
S.Çağlar Onur [Wed, 17 Nov 2010 21:43:45 +0000 (16:43 -0500)]
support other Auth types

13 years agoMerge commit 'origin/master'
root [Wed, 17 Nov 2010 21:25:53 +0000 (22:25 +0100)]
Merge commit 'origin/master'

13 years agouse the same log file with spec
S.Çağlar Onur [Wed, 17 Nov 2010 21:23:03 +0000 (16:23 -0500)]
use the same log file with spec

13 years agoMerge commit 'origin/master'
root [Wed, 17 Nov 2010 21:22:55 +0000 (22:22 +0100)]
Merge commit 'origin/master'

13 years agohandle KeyError exception for now
S.Çağlar Onur [Wed, 17 Nov 2010 21:21:01 +0000 (16:21 -0500)]
handle KeyError exception for now

13 years agoMerge commit 'origin/master'
root [Wed, 17 Nov 2010 20:58:52 +0000 (21:58 +0100)]
Merge commit 'origin/master'

13 years agofix typo
S.Çağlar Onur [Wed, 17 Nov 2010 20:57:41 +0000 (15:57 -0500)]
fix typo

13 years agoMerge commit 'origin/master'
root [Wed, 17 Nov 2010 20:55:55 +0000 (21:55 +0100)]
Merge commit 'origin/master'

13 years agouse Username while calculating the key
S.Çağlar Onur [Wed, 17 Nov 2010 20:55:14 +0000 (15:55 -0500)]
use Username while calculating the key

13 years agouse Username while calculating the key
S.Çağlar Onur [Wed, 17 Nov 2010 20:54:08 +0000 (15:54 -0500)]
use Username while calculating the key

13 years agoMerge commit 'origin/master'
root [Wed, 17 Nov 2010 18:32:09 +0000 (19:32 +0100)]
Merge commit 'origin/master'

13 years agopython-memcache responds to incr on non-existent keys raising a ValueError. Cmemcache...
S.Çağlar Onur [Wed, 17 Nov 2010 18:30:05 +0000 (13:30 -0500)]
python-memcache responds to incr on non-existent keys raising a ValueError. Cmemcache returns None. Handle both cases

13 years agoadd new file to the package
Barış Metin [Tue, 16 Nov 2010 23:30:34 +0000 (00:30 +0100)]
add new file to the package

13 years agoMerge commit 'origin/master'
root [Tue, 16 Nov 2010 21:44:00 +0000 (22:44 +0100)]
Merge commit 'origin/master'

13 years agoadd whitelist
S.Çağlar Onur [Tue, 16 Nov 2010 21:42:52 +0000 (16:42 -0500)]
add whitelist

13 years agoMerge commit 'origin/master'
root [Tue, 16 Nov 2010 20:01:55 +0000 (21:01 +0100)]
Merge commit 'origin/master'

13 years agomerge ratelimiting support from memcache branch
S.Çağlar Onur [Tue, 16 Nov 2010 19:59:16 +0000 (14:59 -0500)]
merge ratelimiting support from memcache branch

13 years agofix another typo
Barış Metin [Tue, 16 Nov 2010 10:15:24 +0000 (11:15 +0100)]
fix another typo

13 years agoThis function is needed to cache the results of API calls, which for a godforsaken...
Sapan Bhatia [Mon, 15 Nov 2010 23:15:34 +0000 (18:15 -0500)]
This function is needed to cache the results of API calls, which for a godforsaken reason cannot be pickled.

13 years agoMerge commit 'origin/master'
root [Mon, 15 Nov 2010 22:50:02 +0000 (23:50 +0100)]
Merge commit 'origin/master'

13 years agotrashed svn keywords
Thierry Parmentelat [Mon, 15 Nov 2010 09:20:01 +0000 (10:20 +0100)]
trashed svn keywords

13 years agoalso fix error message
Barış Metin [Thu, 11 Nov 2010 13:35:04 +0000 (14:35 +0100)]
also fix error message

13 years agoFix typo
Tony Mack [Wed, 10 Nov 2010 21:06:11 +0000 (16:06 -0500)]
Fix typo

13 years agoUse PLC.Person.can_update() to authorize. fix name error.
Tony Mack [Wed, 10 Nov 2010 20:42:22 +0000 (15:42 -0500)]
Use PLC.Person.can_update() to authorize. fix name error.

13 years agoEvidently, not all versions of DRAC are supported, such as the Modular Chassis
Stephen Soltesz [Tue, 9 Nov 2010 15:22:20 +0000 (10:22 -0500)]
Evidently, not all versions of DRAC are supported, such as the Modular Chassis
which expects strings to identify nodes rather than what our API supports
which is integers.

13 years agoDon't descend into php directory, there's nothing there.
Daniel Hokka Zakrisson [Sun, 17 Oct 2010 00:16:48 +0000 (20:16 -0400)]
Don't descend into php directory, there's nothing there.

13 years agoSkip generating static list of API calls, just send them to the API.
Daniel Hokka Zakrisson [Sun, 17 Oct 2010 00:10:27 +0000 (20:10 -0400)]
Skip generating static list of API calls, just send them to the API.

13 years agoFix version output when missing. extensible
Daniel Hokka Zakrisson [Sat, 16 Oct 2010 23:10:31 +0000 (19:10 -0400)]
Fix version output when missing.

13 years agoAlready scoped properly.
Daniel Hokka Zakrisson [Sat, 16 Oct 2010 23:10:05 +0000 (19:10 -0400)]
Already scoped properly.

13 years agoFix auth extensibility.
Daniel Hokka Zakrisson [Sat, 16 Oct 2010 22:39:31 +0000 (18:39 -0400)]
Fix auth extensibility.

13 years agoRemember to insert the version.
Daniel Hokka Zakrisson [Sat, 16 Oct 2010 22:30:54 +0000 (18:30 -0400)]
Remember to insert the version.

13 years agoCleanup old targets in Makefile.
Daniel Hokka Zakrisson [Sat, 16 Oct 2010 22:20:36 +0000 (18:20 -0400)]
Cleanup old targets in Makefile.

13 years agoCreate extensions directory.
Daniel Hokka Zakrisson [Sat, 16 Oct 2010 22:10:25 +0000 (18:10 -0400)]
Create extensions directory.

13 years agoAdd migration files for the extensions.
Daniel Hokka Zakrisson [Sat, 16 Oct 2010 21:46:50 +0000 (17:46 -0400)]
Add migration files for the extensions.

13 years agoApply extensions.
Daniel Hokka Zakrisson [Sat, 16 Oct 2010 21:39:30 +0000 (17:39 -0400)]
Apply extensions.

13 years agoBe consistent in the API.
Daniel Hokka Zakrisson [Fri, 15 Oct 2010 14:12:41 +0000 (10:12 -0400)]
Be consistent in the API.

13 years agoImprove filter.
Daniel Hokka Zakrisson [Fri, 15 Oct 2010 09:34:17 +0000 (05:34 -0400)]
Improve filter.

13 years agoDon't generate __init__ files.
Daniel Hokka Zakrisson [Fri, 15 Oct 2010 08:54:58 +0000 (04:54 -0400)]
Don't generate __init__ files.

13 years agoMake the authentication system extensible.
Daniel Hokka Zakrisson [Fri, 15 Oct 2010 08:23:30 +0000 (04:23 -0400)]
Make the authentication system extensible.

13 years agoAdd a more instructive Event message to reconstruct what actually occurred as
Stephen Soltesz [Thu, 7 Oct 2010 16:56:39 +0000 (12:56 -0400)]
Add a more instructive Event message to reconstruct what actually occurred as
well as the return value from the reboot attempt.

13 years agofix NameError.
Barış Metin [Thu, 23 Sep 2010 10:00:09 +0000 (12:00 +0200)]
fix NameError.

13 years agodon't apply all aspects blindly (although there is only one for the moment...)
Barış Metin [Thu, 23 Sep 2010 09:35:05 +0000 (11:35 +0200)]
don't apply all aspects blindly (although there is only one for the moment...)

13 years agoImplement ignore_exception decorator and use it for omfaspect
Barış Metin [Wed, 22 Sep 2010 15:47:31 +0000 (17:47 +0200)]
Implement ignore_exception decorator and use it for omfaspect
methods. This should prevent the omfaspect fail plcapi calls.

13 years agoSetting tag plcapi-5.0-18 plcapi-5.0-18
Thierry Parmentelat [Thu, 16 Sep 2010 11:10:19 +0000 (13:10 +0200)]
Setting tag plcapi-5.0-18
fix RefreshPeer that was not working in 5.0-17

13 years agoMerge branch 'master' of ssh://git.onelab.eu/git/plcapi
Thierry Parmentelat [Thu, 16 Sep 2010 11:09:15 +0000 (13:09 +0200)]
Merge branch 'master' of ssh://git.onelab.eu/git/plcapi

13 years agooops, refreshpeer in tag plcapi-5.0-17 is broken
Thierry Parmentelat [Thu, 16 Sep 2010 11:09:08 +0000 (13:09 +0200)]
oops, refreshpeer in tag plcapi-5.0-17 is broken

13 years agoSetting tag plcapi-5.0-17 plcapi-5.0-17
Thierry Parmentelat [Thu, 16 Sep 2010 07:35:02 +0000 (09:35 +0200)]
Setting tag plcapi-5.0-17
RefreshPeer is able to cope with 2 peers running different releases of the api
DeletePerson can be used on duplicates
first appearance of ModPythonJson.py

13 years agocompatibility mode, support for 2 ends running different api releases
Thierry Parmentelat [Wed, 15 Sep 2010 13:46:59 +0000 (15:46 +0200)]
compatibility mode, support for 2 ends running different api releases
tweaked verbose mode and focus for debugging specific entries

13 years agoreplace filter(lambda) with [ .. for .. if ..]
Thierry Parmentelat [Wed, 15 Sep 2010 13:45:28 +0000 (15:45 +0200)]
replace filter(lambda) with [ .. for .. if ..]

13 years agoavoid running validate on DeletePerson
Thierry Parmentelat [Wed, 15 Sep 2010 12:16:41 +0000 (14:16 +0200)]
avoid running validate on DeletePerson
this is for when the db accidentally has duplicates, as we found after
a big RefreshPeer hiccup
cleaning up manually through SQL in similar cases is discouraged

13 years agoMerge commit 'local_master/master'
root [Thu, 2 Sep 2010 14:23:02 +0000 (16:23 +0200)]
Merge commit 'local_master/master'

13 years agoSetting tag plcapi-5.0-16 plcapi-5.0-16
Thierry Parmentelat [Wed, 1 Sep 2010 08:40:30 +0000 (10:40 +0200)]
Setting tag plcapi-5.0-16
set accessors return the new value
tweaks in the pubsub groups management

13 years agoMerge branch 'master' of ssh://git.onelab.eu/git/plcapi
Thierry Parmentelat [Wed, 1 Sep 2010 08:21:33 +0000 (10:21 +0200)]
Merge branch 'master' of ssh://git.onelab.eu/git/plcapi

13 years agoonly comments
Thierry Parmentelat [Wed, 1 Sep 2010 08:21:26 +0000 (10:21 +0200)]
only comments

13 years agoSet accessors return the new value
Thierry Parmentelat [Tue, 31 Aug 2010 14:05:04 +0000 (16:05 +0200)]
Set accessors return the new value

13 years agouse jsonlib (if available) before using simplejson
Tony Mack [Tue, 10 Aug 2010 20:03:40 +0000 (16:03 -0400)]
use jsonlib (if available) before using simplejson

13 years agoadded handle_json() method
Tony Mack [Sat, 7 Aug 2010 14:58:06 +0000 (10:58 -0400)]
added handle_json() method

13 years agoInitial checkin of mod_python json interface
Tony Mack [Sat, 7 Aug 2010 14:55:15 +0000 (10:55 -0400)]
Initial checkin of mod_python json interface

13 years agoAdding python-simplejson requirement
Tony Mack [Sat, 7 Aug 2010 14:51:51 +0000 (10:51 -0400)]
Adding python-simplejson requirement

13 years agoMerge remote branch 'origin/master'
Barış Metin [Sat, 31 Jul 2010 10:56:34 +0000 (12:56 +0200)]
Merge remote branch 'origin/master'

13 years agouse hrn to re-create pubsub groups
Barış Metin [Sat, 31 Jul 2010 10:56:03 +0000 (12:56 +0200)]
use hrn to re-create pubsub groups

13 years agoSetting tag plcapi-5.0-15 plcapi-5.0-15
S.Çağlar Onur [Wed, 28 Jul 2010 21:00:27 +0000 (17:00 -0400)]
Setting tag plcapi-5.0-15
convert hostnames to lower case and use ILIKE instead of LIKE

13 years agouse ILIKE instead of LIKE for case-insensitive searches
S.Çağlar Onur [Thu, 22 Jul 2010 20:46:22 +0000 (16:46 -0400)]
use ILIKE instead of LIKE for case-insensitive searches