summaryrefslogtreecommitdiffstats
path: root/provisioning-model.lua
Commit message (Collapse)AuthorAgeFilesLines
* Reorganize code slightly so runsqlcommand is defined before useTed Trask2013-10-311-12/+13
|
* Reorganized model to put all local functions at the beginningTed Trask2013-10-271-236/+237
|
* Pass logevent function to scriptsTed Trask2013-10-271-0/+2
|
* Revert "Change function prototypes to pass self and use self.model instead ↵Ted Trask2013-10-271-172/+184
| | | | | | | | | | of functions table" This reverts commit fb00ff8f05dae3c110beceb929ea036e4cd14ae1. Conflicts: provisioning-model.lua Conflict was resolved by removing "mymodule." from function calls that are once again made local
* Remove all calls to 'module' in preparation for move to Lua 5.2Ted Trask2013-10-201-233/+230
| | | | | Use mymodule parameter for module definition. This was also helpful in revealing places where the code relied on the global environment.
* Change use of require to work with Lua 5.2Ted Trask2013-10-091-3/+3
|
* Notify devices when default may have changed in param or param_groupTed Trask2013-10-091-0/+36
|
* Move local functionTed Trask2013-10-071-9/+9
|
* Notify admin when a device has overridden group defaultsTed Trask2013-10-071-1/+15
|
* Remove unused require statementTed Trask2013-10-031-1/+0
|
* Use acf.db library from acf-lib-0.6.0Ted Trask2013-09-261-220/+150
|
* Change function prototypes to pass self and use self.model instead of ↵Ted Trask2013-09-231-50/+38
| | | | | | | | functions table Changed the order of the first two parameters passed to validate function in provisioning_params Replaced all APP references with self, now that self is available Still need to implement swapvalidateparams script
* Fix bug in providing blank config to unprovisioned phoneTed Trask2013-09-091-5/+32
| | | | Add some code to handle nil clientdata and pass self to get/put_file functions
* Fix creation of missing database.Mika Havela2013-08-261-1/+1
| | | | If database is missing, postgres will report 'database provisioning does not exits'. If that happens, we need to create the database.
* Fix exception when script has bad syntaxTed Trask2013-06-271-1/+4
|
* Fix creation of param, param group, class, and class groupTed Trask2013-05-251-11/+17
|
* Added some more SQL escape calls just to be safeTed Trask2013-05-251-8/+8
|
* Use luasql to escape, rather than doing it ourselves, because will account ↵Ted Trask2013-02-081-1/+1
| | | | for database settings
* Replace io.popen with modelfunctions.run_executableTed Trask2013-01-011-23/+21
|
* Added back script verification which was lost since 0.0.11Ted Trask2012-11-061-1/+1
|
* Removed unneeded views by updating CFE for autoviewTed Trask2012-10-271-7/+15
|
* Fix links to search and create, and fix createdevicefromrequestTed Trask2012-08-081-18/+26
|
* Fixes to some local functions in modelTed Trask2012-08-071-6/+18
|
* Removed calls to redirect_to_referrer and only call redirect if function existsTed Trask2012-08-071-50/+93
|
* Updated for handle_form now passing self to get and set functionsTed Trask2012-04-281-45/+62
|
* Changed require statements to reflect location of libraries in acf-lib-0.3 ↵Ted Trask2012-01-271-3/+3
| | | | and acf-core-0.14
* Fixed escape function to not escape \Ted Trask2012-01-031-11/+6
|
* Boolean default should be of type boolean, not stringTed Trask2011-12-291-2/+3
|
* Removed the default table from param_groups cfe and just use value != ↵Ted Trask2011-12-081-10/+2
| | | | default to determine whether or not to save
* Fixed validating / setting defaults for param groupsTed Trask2011-12-081-9/+12
|
* Fixed bug in deleting parameter with optionsTed Trask2011-12-081-2/+2
|
* Modify listdevices to also display the class values for each deviceTed Trask2011-10-141-2/+10
|
* Added new listrequests, deleterequest, and createdevicefromrequest actionsTed Trask2011-10-141-4/+110
|
* Implemented put_file for Polycom phonesTed Trask2011-10-111-12/+38
|
* Changes to implement PUTTed Trask2011-10-101-4/+16
|
* Change viewclassparams to getclassvaluesTed Trask2011-10-101-39/+32
|
* Added viewclassparams, getfile, and putfile actions plus determine_class.lua ↵Ted Trask2011-10-101-4/+120
| | | | | | | | | | script and provisioning_requests table. viewclassparams shows the parameters and default values for a class getfile is used to get the config file for a known device and a default config file for unconfigured devices putfile is unimplemented, but will be used for parsing files uploaded to the server determine_class.lua determines which device class best matches an unconfigured device (by agent) provisioning_requests table will track the last request (ip, agent, and timestamp) for each device
* Fixed dumpdatabase to give valid SQLTed Trask2011-07-051-9/+10
|
* Added new dumpdatabase action to dump database without ids - helps compare ↵Ted Trask2011-07-041-0/+69
| | | | databases
* Validate code should be in unix formatTed Trask2011-06-241-2/+2
|
* Added better error processing for loaded Lua codeTed Trask2011-06-091-3/+16
|
* Added lua validate code into provisioning_params table, added example for ↵Ted Trask2011-06-091-16/+61
| | | | mac address
* Fixed comparison typoTed Trask2011-03-311-1/+1
|
* Fixed param defaults issue that caused extra database entriesTed Trask2011-03-091-1/+1
|
* Fail to create / update device if no classes selectedTed Trask2011-03-041-0/+5
|
* Made nice error messages for device_id search, rather than SQL errorsTed Trask2011-03-041-0/+10
|
* Removed provisioning-devices and instead use provisioning-device-seq. So, ↵Ted Trask2011-03-041-43/+19
| | | | | | device label is no more. Also changed Standard Phone without Call Forwarding to Public Phone.
* Fixed delete_group by deleting in the right orderTed Trask2011-03-041-2/+2
|
* Modified getgroup/updategroup to add default - allowing creating groups with ↵Ted Trask2011-03-041-5/+24
| | | | null defaults
* Fixed delete_class by deleting in the right orderTed Trask2011-03-031-2/+2
|