plcapi.git
5 years agocleanup - mostly (manual) pep8
parmentelat [Mon, 17 Dec 2018 13:48:01 +0000 (14:48 +0100)]
cleanup - mostly (manual) pep8

5 years agofor python3, GetBootMedium needs to open image file as binary
parmentelat [Mon, 17 Dec 2018 13:47:43 +0000 (14:47 +0100)]
for python3, GetBootMedium needs to open image file as binary

5 years agoa pass on some explicit encode calls that are obviously wrong in python3; some may...
parmentelat [Sun, 16 Dec 2018 16:42:31 +0000 (17:42 +0100)]
a pass on some explicit encode calls that are obviously wrong in python3; some may remain

5 years agobytes vs string in getbootmedium
parmentelat [Fri, 14 Dec 2018 13:41:49 +0000 (14:41 +0100)]
bytes vs string in getbootmedium

5 years agopython3 does not leak variable name outside an except as
parmentelat [Fri, 14 Dec 2018 13:41:25 +0000 (14:41 +0100)]
python3 does not leak variable name outside an except as

5 years agoupon make sync, restart slowly but safely
parmentelat [Fri, 14 Dec 2018 13:40:41 +0000 (14:40 +0100)]
upon make sync, restart slowly but safely

5 years agohttpd is not started through systemd
parmentelat [Fri, 14 Dec 2018 12:12:43 +0000 (13:12 +0100)]
httpd is not started through systemd

5 years agoadd troubleshooting info in plcapi.log when passwd auth fails
parmentelat [Fri, 14 Dec 2018 12:09:08 +0000 (13:09 +0100)]
add troubleshooting info in plcapi.log when passwd auth fails

5 years agomore tweaks for python3
parmentelat [Fri, 14 Dec 2018 12:08:22 +0000 (13:08 +0100)]
more tweaks for python3

5 years agofixed bug introduced when porting to py3
parmentelat [Fri, 14 Dec 2018 12:07:07 +0000 (13:07 +0100)]
fixed bug introduced when porting to py3

5 years agowsgi expects a bytes object, not a str anymore
parmentelat [Thu, 13 Dec 2018 20:00:39 +0000 (21:00 +0100)]
wsgi expects a bytes object, not a str anymore

5 years agoautopep8
parmentelat [Thu, 13 Dec 2018 15:17:28 +0000 (16:17 +0100)]
autopep8

5 years agoclean up unused SetRole() in 000-functions
parmentelat [Thu, 13 Dec 2018 15:17:14 +0000 (16:17 +0100)]
clean up unused SetRole() in 000-functions

5 years agoautopep8
parmentelat [Thu, 13 Dec 2018 15:14:27 +0000 (16:14 +0100)]
autopep8

5 years agoa little nicer plcsh
parmentelat [Thu, 13 Dec 2018 15:12:29 +0000 (16:12 +0100)]
a little nicer plcsh

5 years agofix 'make sync'
parmentelat [Thu, 13 Dec 2018 15:09:52 +0000 (16:09 +0100)]
fix 'make sync'

5 years agothat one was hard to pinpoint: we DON'T want to convert str to bytes, when normalizin...
parmentelat [Thu, 13 Dec 2018 15:08:14 +0000 (16:08 +0100)]
that one was hard to pinpoint: we DON'T want to convert str to bytes, when normalizing prior to talking to the db; quite the opposite !

5 years agomade db creation code simpler
parmentelat [Thu, 13 Dec 2018 11:50:21 +0000 (12:50 +0100)]
made db creation code simpler

5 years agodb-config scripts also need to go python3 - plus autopep8 in the mix
parmentelat [Thu, 13 Dec 2018 11:49:52 +0000 (12:49 +0100)]
db-config scripts also need to go python3 - plus autopep8 in the mix

5 years agocosmetic pep8
parmentelat [Wed, 12 Dec 2018 18:03:30 +0000 (19:03 +0100)]
cosmetic pep8

5 years agoremove use of very old file() function that is no longer available
parmentelat [Wed, 12 Dec 2018 18:01:31 +0000 (19:01 +0100)]
remove use of very old file() function that is no longer available

5 years agofix an odd way to import pycurl
parmentelat [Wed, 12 Dec 2018 12:51:12 +0000 (13:51 +0100)]
fix an odd way to import pycurl

5 years agoprune everything about aspects that is python2 and too tedious to port
parmentelat [Wed, 12 Dec 2018 12:50:41 +0000 (13:50 +0100)]
prune everything about aspects that is python2 and too tedious to port

5 years agoget rid of ldap
parmentelat [Wed, 12 Dec 2018 10:49:11 +0000 (11:49 +0100)]
get rid of ldap

5 years agoDocBook.py for python3
parmentelat [Wed, 12 Dec 2018 09:10:09 +0000 (10:10 +0100)]
DocBook.py for python3

5 years agooops, syntax error
parmentelat [Tue, 11 Dec 2018 15:45:21 +0000 (16:45 +0100)]
oops, syntax error

5 years agoimports email* in py3
parmentelat [Tue, 11 Dec 2018 15:41:33 +0000 (16:41 +0100)]
imports email* in py3

5 years agomore ironing in the corner of that 'types' modules
parmentelat [Tue, 11 Dec 2018 14:15:29 +0000 (15:15 +0100)]
more ironing in the corner of that 'types' modules

5 years agoStringTypes has gone
parmentelat [Tue, 11 Dec 2018 08:39:23 +0000 (09:39 +0100)]
StringTypes has gone

5 years agomore tweaks for python3
parmentelat [Mon, 10 Dec 2018 20:36:32 +0000 (21:36 +0100)]
more tweaks for python3

5 years agomore python3, esp. in shebangs and doc
parmentelat [Mon, 10 Dec 2018 17:34:05 +0000 (18:34 +0100)]
more python3, esp. in shebangs and doc

5 years agotrash wsdl altogether
parmentelat [Mon, 10 Dec 2018 16:50:29 +0000 (17:50 +0100)]
trash wsdl altogether

5 years agomore python3 business
parmentelat [Mon, 10 Dec 2018 16:31:05 +0000 (17:31 +0100)]
more python3 business

5 years agouse python3 in build
parmentelat [Mon, 10 Dec 2018 10:26:57 +0000 (11:26 +0100)]
use python3 in build

5 years agoplcsh is a python source file too
parmentelat [Fri, 7 Dec 2018 19:48:58 +0000 (20:48 +0100)]
plcsh is a python source file too
rpm requirements need to point at python3-*

5 years agoblind 2to3
parmentelat [Fri, 7 Dec 2018 19:32:28 +0000 (20:32 +0100)]
blind 2to3

5 years agostartup scripts : assume initscripts is not installed, only use systemctl
parmentelat [Fri, 7 Dec 2018 15:52:15 +0000 (16:52 +0100)]
startup scripts : assume initscripts is not installed, only use systemctl

5 years agoremove requirements that are no longer available in f29 - use pip when appropriate
parmentelat [Tue, 4 Dec 2018 12:49:16 +0000 (13:49 +0100)]
remove requirements that are no longer available in f29 - use pip when appropriate

5 years agojust reordering in Logger.py
parmentelat [Wed, 23 May 2018 21:41:13 +0000 (23:41 +0200)]
just reordering in Logger.py

5 years agomore pep8-friendly, and log calls to GetNodes() as well for troubleshooting database...
parmentelat [Wed, 23 May 2018 11:04:23 +0000 (13:04 +0200)]
more pep8-friendly, and log calls to GetNodes() as well for troubleshooting database errors

5 years agono change, just more pep8-friendly, and use dict comprehension
parmentelat [Wed, 23 May 2018 11:01:17 +0000 (13:01 +0200)]
no change, just more pep8-friendly, and use dict comprehension

5 years agobugfix, scanning native_methods needs to start in installed dir, not '.'
parmentelat [Wed, 23 May 2018 08:29:11 +0000 (10:29 +0200)]
bugfix, scanning native_methods needs to start in installed dir, not '.'

5 years agoother minor tweaks - doc generation should still be broken
parmentelat [Sun, 20 May 2018 12:40:59 +0000 (14:40 +0200)]
other minor tweaks - doc generation should still be broken

5 years agowhitespaces and pep8 and similar lifting
parmentelat [Sun, 20 May 2018 12:01:11 +0000 (14:01 +0200)]
whitespaces and pep8 and similar lifting

6 years agonew strategy for scanning PLC/Methods : when running 'make sync' from an unclean...
parmentelat [Wed, 16 May 2018 12:30:32 +0000 (14:30 +0200)]
new strategy for scanning PLC/Methods : when running 'make sync' from an unclean environment, we need to be more picky so as to avoid loading broken code

6 years agoSetting tag plcapi-5.4-1 plcapi-5.4-1
parmentelat [Wed, 16 May 2018 12:07:05 +0000 (14:07 +0200)]
Setting tag plcapi-5.4-1
define accessor for site tag disabled_registration (used in plewww-5.2-9)
set disable_existing_loggers = False in logging config, that otherwise voids sfa logs

6 years agoactually the default for disable_existing_loggers is True (can't believe it), so...
parmentelat [Wed, 16 May 2018 10:52:57 +0000 (12:52 +0200)]
actually the default for disable_existing_loggers is True (can't believe it), so set to False instead of commenting out

6 years agotweak logging config : *do not* disable other loggers
parmentelat [Wed, 16 May 2018 08:11:12 +0000 (10:11 +0200)]
tweak logging config : *do not* disable other loggers

6 years agocreate the disabled_registration site tag that allows to remove a specific site from...
parmentelat [Thu, 22 Mar 2018 13:32:56 +0000 (14:32 +0100)]
create the disabled_registration site tag that allows to remove a specific site from the drop-down in the person registration form

6 years agochangelogs had gone awash
Thierry Parmentelat [Sun, 16 Jul 2017 10:57:05 +0000 (12:57 +0200)]
changelogs had gone awash

6 years agoSetting tag plcapi-5.4-0 plcapi-5.4-0
Thierry Parmentelat [Sun, 16 Jul 2017 10:48:59 +0000 (12:48 +0200)]
Setting tag plcapi-5.4-0

6 years agorequires php-xml exp
Thierry Parmentelat [Sat, 8 Jul 2017 11:45:29 +0000 (13:45 +0200)]
requires php-xml

6 years agopackage the whole contents of the phpxmlrpc git repo
Thierry Parmentelat [Thu, 6 Jul 2017 13:29:47 +0000 (15:29 +0200)]
package the whole contents of the phpxmlrpc git repo
under /usr/share/plc_api/php/phpxmlrpc/

6 years agoAdd 'php/phpxmlrpc/' from commit 'cd5dbb4a511e7a616a61187a5de1a611a9748cbd'
Thierry Parmentelat [Thu, 6 Jul 2017 13:08:07 +0000 (15:08 +0200)]
Add 'php/phpxmlrpc/' from commit 'cd5dbb4a511e7a616a61187a5de1a611a9748cbd'

git-subtree-dir: php/phpxmlrpc
git-subtree-mainline: 9bd41316bc9541bbedfe45377089d4e4927129b1
git-subtree-split: cd5dbb4a511e7a616a61187a5de1a611a9748cbd

6 years agoChange platforms tested on Travis
gggeek [Sun, 2 Jul 2017 09:15:23 +0000 (10:15 +0100)]
Change platforms tested on Travis

6 years agoTag release 4.2.0 4.2.0
gggeek [Fri, 30 Jun 2017 22:22:59 +0000 (23:22 +0100)]
Tag release 4.2.0

6 years agofix broken packaging because of uninstalled /var/log/plcapi.log
Thierry Parmentelat [Thu, 29 Jun 2017 09:57:48 +0000 (11:57 +0200)]
fix broken packaging because of uninstalled /var/log/plcapi.log

6 years ago====
Thierry Parmentelat [Sun, 18 Jun 2017 21:44:14 +0000 (23:44 +0200)]
====
RefreshPeer reviewed
. disabled remote persons don't get created locally
. remote nodes referenced in slices but not exposed
  are sanitized (ignored) from GetPeerData

it remains to check if slices that span several myplc's get
created as expected
====
new method DeleteALlPeerEntries() for cleaning up

6 years agojust autopep8'ed refreshpeer
Thierry Parmentelat [Sat, 17 Jun 2017 16:20:24 +0000 (18:20 +0200)]
just autopep8'ed refreshpeer

6 years agocreate logfile plcapi.log in /var/log and chown it to apache
Thierry Parmentelat [Sat, 17 Jun 2017 14:57:03 +0000 (16:57 +0200)]
create logfile plcapi.log in /var/log and chown it to apache

6 years agoMerge pull request #53 from HMAZonderland/master
Gaetano Giunta [Wed, 14 Jun 2017 11:06:08 +0000 (12:06 +0100)]
Merge pull request #53 from HMAZonderland/master

Limit phpunit version

6 years agoLimited the phpunit version to max 5.7.20 to fix Travis
Hugo Zonderland [Wed, 14 Jun 2017 10:33:07 +0000 (12:33 +0200)]
Limited the phpunit version to max 5.7.20 to fix Travis

6 years agoOutput what version of phpunit we got going, for debugging
Hugo Zonderland [Wed, 14 Jun 2017 10:28:00 +0000 (12:28 +0200)]
Output what version of phpunit we got going, for debugging

6 years agoThe >=4.0.0 syntax installs any version which is able to run depending on the require...
Hugo Zonderland [Wed, 14 Jun 2017 10:24:17 +0000 (12:24 +0200)]
The >=4.0.0 syntax installs any version which is able to run depending on the requirements of the environment. Which means it will install phpunit 6 on php 7, which breaks the current test suite. Therefor the version must be limited to 5.7.20.

6 years agoMerge pull request #51 from FinesseRus/patch-1
Gaetano Giunta [Wed, 14 Jun 2017 08:55:37 +0000 (09:55 +0100)]
Merge pull request #51 from FinesseRus/patch-1

Less specific date type detection

6 years agoLess specific date type detection
Surgie [Wed, 14 Jun 2017 08:46:52 +0000 (18:46 +1000)]
Less specific date type detection

6 years agonow parses correctly some args (empty array and empty string)
Ciro Scognamiglio [Mon, 29 May 2017 10:25:04 +0000 (12:25 +0200)]
now parses correctly some args (empty array and empty string)

6 years agofixed: encodes boolean and double type values for the requests
Ciro Scognamiglio [Wed, 24 May 2017 11:09:20 +0000 (13:09 +0200)]
fixed: encodes boolean and double type values for the requests

6 years agouses phpXmlRpc class if available, solves compatibility problems with newest php...
Ciro Scognamiglio [Fri, 19 May 2017 11:43:37 +0000 (13:43 +0200)]
uses phpXmlRpc class if available, solves compatibility problems with newest php XML-RPC module

6 years agotrash our own brew of xmlrpc, that was all about supporting <nil/>
Thierry Parmentelat [Mon, 29 May 2017 13:13:30 +0000 (15:13 +0200)]
trash our own brew of xmlrpc, that was all about supporting <nil/>
i.e. marshalling None

plan is to use http://gggeek.github.io/phpxmlrpc/ as a replacement

7 years agoremove PLC.Debug.log, use PLC.Logger.logger instead newlogs
Thierry Parmentelat [Wed, 15 Feb 2017 11:05:51 +0000 (12:05 +0100)]
remove PLC.Debug.log, use PLC.Logger.logger instead
no more old-fashioned print >> log construction
stuff goes into /var/log/plcapi.log
(requires a change in plc.d/httpd for initialization)

7 years agoour own xmlrpc build is about supporting <nil/> - aka allow_none=True
Thierry Parmentelat [Mon, 13 Feb 2017 13:50:28 +0000 (14:50 +0100)]
our own xmlrpc build is about supporting <nil/> - aka allow_none=True
http://gggeek.github.io/phpxmlrpc/ states that the <nil/> extension
is supported by mainstream - and probably has been for a while
- this change is about dropping our own stuff
and using mainstream xmlrpc instead
pretext is fedora25 b/c this won’t build anymore
but again it’s probably OK w/ f24 and way before

7 years agoSetting tag plcapi-5.3-11 plcapi-5.3-11
Thierry Parmentelat [Wed, 8 Feb 2017 20:17:12 +0000 (21:17 +0100)]
Setting tag plcapi-5.3-11
mostly issued for the R2lab deployment
*** major
* dots allowed in login_base and slice name
* new lease filter 'day'
*** minor
* more explicit message in case of overlapping resas
* bugfix: escaping unicode in xml
* GetLeases allowed to anonymous callers
*** miscell
* use plain json library

7 years agoprettified r2lab
Thierry Parmentelat [Tue, 13 Dec 2016 16:09:49 +0000 (17:09 +0100)]
prettified

7 years agoleasefilter has the new ‘day’ key
Thierry Parmentelat [Tue, 13 Dec 2016 11:28:17 +0000 (12:28 +0100)]
leasefilter has the new ‘day’ key
for selecting a number of days from today

7 years agoleasefilter pep8’ed
Thierry Parmentelat [Tue, 13 Dec 2016 08:51:51 +0000 (09:51 +0100)]
leasefilter pep8’ed

7 years agomake GetLeases reachable with anon auth
Thierry Parmentelat [Tue, 13 Dec 2016 08:51:20 +0000 (09:51 +0100)]
make GetLeases reachable with anon auth

7 years agor2lab is migrating from a previous depl. based on omf_sfa
Thierry Parmentelat [Mon, 12 Dec 2016 10:18:45 +0000 (11:18 +0100)]
r2lab is migrating from a previous depl. based on omf_sfa
and so it comes with rather long dot-separated names
allow ‘.’ on both sides of the _ in slice names,
and so also allow ‘.’ in site login_base

7 years agoFix error in server class: undefined function php_xmlrpc_encode 4.1.1
gggeek [Sat, 1 Oct 2016 12:29:37 +0000 (13:29 +0100)]
Fix error in server class: undefined function php_xmlrpc_encode

7 years agoupdate hint link
Thierry Parmentelat [Thu, 25 Aug 2016 13:55:13 +0000 (15:55 +0200)]
update hint link

7 years agofix issue with escaping unicode strings for xmlrpc
Thierry Parmentelat [Thu, 25 Aug 2016 12:22:40 +0000 (14:22 +0200)]
fix issue with escaping unicode strings for xmlrpc

7 years agoremove simplejson dependency
Thierry Parmentelat [Thu, 25 Aug 2016 12:22:14 +0000 (14:22 +0200)]
remove simplejson dependency

7 years agouse standard json module
Thierry Parmentelat [Thu, 25 Aug 2016 12:20:43 +0000 (14:20 +0200)]
use standard json module

7 years agoSetting tag plcapi-5.3-10 plcapi-5.3-10
Thierry Parmentelat [Sun, 10 Jul 2016 14:13:08 +0000 (16:13 +0200)]
Setting tag plcapi-5.3-10
GetBootMedium with systemd-debug option : add kernel arg systemd.log_target=console

7 years agodefine systemd.log_target=console when used with systemd-debug
Thierry Parmentelat [Thu, 7 Jul 2016 12:59:37 +0000 (14:59 +0200)]
define systemd.log_target=console when used with systemd-debug

7 years agoFix test for i8 4.1.0
gggeek [Sun, 26 Jun 2016 20:01:01 +0000 (21:01 +0100)]
Fix test for i8

7 years agoFix: lib version number had not been bumped up
gggeek [Sun, 26 Jun 2016 19:51:48 +0000 (20:51 +0100)]
Fix: lib version number had not been bumped up

7 years agoAdd support for i8
gggeek [Sun, 26 Jun 2016 19:50:45 +0000 (20:50 +0100)]
Add support for i8

7 years agoMerge branch 'master' of github.com:gggeek/phpxmlrpc
gggeek [Sun, 26 Jun 2016 18:54:53 +0000 (19:54 +0100)]
Merge branch 'master' of github.com:gggeek/phpxmlrpc

7 years agoMerge pull request #38 from Tuxity/i8-support
Gaetano Giunta [Sun, 26 Jun 2016 18:54:23 +0000 (19:54 +0100)]
Merge pull request #38 from Tuxity/i8-support

Support i8 type

7 years agoMinor improvement to the docs
gggeek [Thu, 16 Jun 2016 15:27:53 +0000 (16:27 +0100)]
Minor improvement to the docs

7 years agoSupport i8 type
Tuxity [Tue, 14 Jun 2016 17:57:45 +0000 (12:57 -0500)]
Support i8 type

8 years ago2nd try to make composer happy with downloading stuff from sourceforge
gggeek [Sun, 27 Mar 2016 11:59:22 +0000 (12:59 +0100)]
2nd try to make composer happy with downloading stuff from sourceforge

8 years agofix travis tests: use https for downloading sources
gggeek [Sun, 27 Mar 2016 00:25:39 +0000 (00:25 +0000)]
fix travis tests: use https for downloading sources

8 years agoFix for issue #33: excessive usage of numeric charset entities when converting utf8... 4.0.1
gggeek [Sun, 27 Mar 2016 00:17:45 +0000 (00:17 +0000)]
Fix for issue #33: excessive usage of numeric charset entities when converting utf8 to latin-1

8 years agoAdd link to api docs in manual
gggeek [Sun, 24 Jan 2016 23:56:00 +0000 (23:56 +0000)]
Add link to api docs in manual

8 years agoMove to using Sami for API doc generation instead of PhpDocumentor
gggeek [Sun, 24 Jan 2016 23:17:46 +0000 (23:17 +0000)]
Move to using Sami for API doc generation instead of PhpDocumentor

8 years agoFix pakefile to build from master branch; add a description for every class for bette...
gggeek [Sun, 24 Jan 2016 21:18:22 +0000 (21:18 +0000)]
Fix pakefile to build from master branch; add a description for every class for better phpdoc output

8 years agoMove api docs to phpdoc (wip); fix wrong property name in Response class
gggeek [Sun, 24 Jan 2016 19:42:03 +0000 (19:42 +0000)]
Move api docs to phpdoc (wip); fix wrong property name in Response class

8 years agosmall manual fixes
gggeek [Sat, 23 Jan 2016 00:27:50 +0000 (00:27 +0000)]
small manual fixes