summaryrefslogtreecommitdiffstats
path: root/provisioning-model.lua
Commit message (Collapse)AuthorAgeFilesLines
* Change file actions filesize to size, size and mtime not user-friendly, use ↵Ted Trask2016-01-181-3/+3
| | | | posix.stat over fs.stat, use new format functions
* Revert changes inadvertently included in "Bump version to 0.8.7"Ted Trask2016-01-181-3/+3
| | | | This reverts commit 9ce48686e81f7ace3028a630c91795a8e76ea6a5.
* Fix filter by device_id in listdevicesTed Trask2016-01-181-1/+9
|
* Bump version to 0.8.7v0.8.7Ted Trask2016-01-181-3/+3
|
* Allow parameter failure when creating device (or could never create devices)Ted Trask2016-01-021-1/+8
|
* Better error reporting for editgroup/param when succeeded but setting device ↵Ted Trask2015-12-281-2/+12
| | | | params failed
* Need to pass error text into handlesqlexceptionTed Trask2015-12-281-42/+42
|
* Use cfe:print_errtxt in more places for better error reportingTed Trask2015-12-281-29/+5
|
* Modify update_device to also validate device params (this causes ↵Ted Trask2015-12-281-3/+9
| | | | update_device_params.lua to be called before update_device.lua)
* Get/set device params after updating group/param so validation runs in ↵Ted Trask2015-12-281-16/+12
| | | | addition to notify
* Fix dump_database to properly output null valuesTed Trask2015-12-281-7/+13
|
* Minor cleanup for efficiencyTed Trask2015-12-281-20/+20
|
* Clean up group defaults so you can specify whether or not to override the ↵Ted Trask2015-12-281-7/+10
| | | | | | parameter default In general, device and reg groups do not override anything and service groups override all parameters
* Fix checkgroupdefaultoverride bug in sql returning false positiveTed Trask2015-12-251-2/+2
|
* Fix database exception handling if occurs during connection attemptTed Trask2015-12-241-1/+4
|
* Use database LOCK rather than SERIALIZABLE transaction to prevent ↵Ted Trask2015-12-241-25/+31
| | | | serialization errors
* Allow bulkcreatedevices to use exact match to label for select optionTed Trask2015-12-071-3/+6
|
* Cleanup database access to always use transactions and properly ↵Ted Trask2015-12-071-186/+237
| | | | | | close/rollback on exceptions Note: Scripts are now called within transactions, so they cannot contain transactions themselves
* Fix bulkcreate/dumpdevices to handle escaping ',' and '"' in csv filesTed Trask2015-11-251-6/+55
|
* Replace convertsize function with orig_sizeTed Trask2015-11-201-2/+3
| | | | Also changes listtemplates to return all details and fixes HTML view bug when template file is missing
* Allow uploading a file for bulkcreatedevicesTed Trask2015-11-131-0/+5
|
* Fix processing of boolean values in bulk(create/dump)devicesTed Trask2015-11-121-1/+3
| | | | bulkcreatedevices will accept 'true' or 'TRUE' as true
* Fix bulkcreatedevice when option value is a blank stringTed Trask2015-11-121-1/+1
|
* Allow blank value or label in editoptions actionTed Trask2015-11-121-3/+3
|
* Add bulkdumpdevices action to export devices to CSV fileTed Trask2015-11-121-0/+71
|
* Modify bulkcreatedevices to accept substrings of label for device values ↵Ted Trask2015-11-111-2/+23
| | | | | | that have options Fix bulkcreatedevices class values to escape magic characters in value
* Create bulkcreatedevices actionTed Trask2015-11-061-6/+115
|
* Add server-side pagination/sorting/filtering to listrequests action using ↵Ted Trask2015-07-061-16/+63
| | | | tablesorter
* Add server-side pagination, sorting, and filtering for listdevices actionTed Trask2015-07-051-13/+76
|
* Use cfe.print_errtxt to display the full errtxt if fail to set params when ↵Ted Trask2015-06-051-1/+1
| | | | creating device from request
* Provide SQL escape function to scriptsTed Trask2015-06-011-0/+1
|
* Remove setfenv call for Lua 5.2 compatibilityTed Trask2015-01-121-17/+34
|
* Changes to use new htmlviewfunctions functionsTed Trask2014-04-231-9/+9
|
* 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
|