summaryrefslogtreecommitdiffstats
path: root/src/lib/Server/Plugins/TCheetah.py
Commit message (Collapse)AuthorAgeFilesLines
* TCheetah: Fix local variable bug reported by trehn on IRCSol Jerome2011-05-061-3/+3
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* Plugins: Add full PY3K compatibilitySol Jerome2011-04-261-2/+6
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* TGenshi/TCheetah: Add base64 encoding support for files handled by non-Cfg ↵Sol Jerome2010-08-051-1/+6
| | | | | | | | | | | | | | plugins Reported by Chris Brinker in IRC. We should now have the ability to use encoding=base64 in info/info.xml files for paths that are handled by the TGenshi and TCheetah plugins. I think this common code for the three plugins can be merged once we implement Kisielk's idea for having a single Cfg/TGenshi/TCheetah tree. Signed-off-by: Sol Jerome <sol.jerome@gmail.com> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@6002 ce84e21b-d406-0410-9b95-82705330c041
* Updated files to match PEP 257 Fabian Affolter2010-06-091-4/+4
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5904 ce84e21b-d406-0410-9b95-82705330c041
* TGenshi/TCheetah: Set type to 'file' for Path entriesSol Jerome2009-10-271-0/+2
| | | | | | | | | Similar to r5475, we need to set the entry type of templated ConfigFiles so that they are mapped properly by the POSIXCompat plugin. Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5509 ce84e21b-d406-0410-9b95-82705330c041
* Pylint/PEP 8 Code cleanupsSol Jerome2009-10-071-4/+6
| | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5477 ce84e21b-d406-0410-9b95-82705330c041
* TCheetah: handle imports in a way that pylint likesNarayan Desai2009-07-161-8/+6
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5339 ce84e21b-d406-0410-9b95-82705330c041
* TCheetah: Remove RPM python-cheetah requirementSol Jerome2009-07-131-2/+11
| | | | | | | | | | Cheetah is not considered a requirement on the server. A check has been added to see if it is installed when trying to instantiate the TCheetah plugin. Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5324 ce84e21b-d406-0410-9b95-82705330c041
* Fix unicode error messagesNarayan Desai2009-02-021-2/+3
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5057 ce84e21b-d406-0410-9b95-82705330c041
* Remove old properties implementation and hardwiringNarayan Desai2009-01-211-7/+3
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5036 ce84e21b-d406-0410-9b95-82705330c041
* This patch is stage 1 of the plugin capabilities reworkNarayan Desai2009-01-051-1/+1
| | | | | | | | - define new plugin base classes - switch Plugin.__name__ => Plugin.name git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5004 ce84e21b-d406-0410-9b95-82705330c041
* Fix TCheetah properties (resolves Ticket #613) (confirmed by Gordon Messmer)Narayan Desai2008-12-011-1/+1
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4989 ce84e21b-d406-0410-9b95-82705330c041
* Fix properties in cheetah templatesNarayan Desai2008-11-221-1/+1
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4983 ce84e21b-d406-0410-9b95-82705330c041
* TCheetah: Use an explicit searchlist for variable resolution, which gets ↵Narayan Desai2008-11-041-3/+8
| | | | | | propagated to #included templates git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4960 ce84e21b-d406-0410-9b95-82705330c041
* Add source_path field for cheetah templatesNarayan Desai2008-08-201-0/+1
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4883 ce84e21b-d406-0410-9b95-82705330c041
* Unicode support (from stousignant) (Resolves Ticket #549)Narayan Desai2008-06-301-2/+7
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4731 ce84e21b-d406-0410-9b95-82705330c041
* Fix TCheetah when psyco is used (Completely resolve Ticket #559)Narayan Desai2008-05-161-1/+3
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4611 ce84e21b-d406-0410-9b95-82705330c041
* Enable use of properties store (from ritcey)Narayan Desai2008-03-221-0/+1
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4439 ce84e21b-d406-0410-9b95-82705330c041
* New EntrySet-based TCheetah from ritceyNarayan Desai2008-03-211-127/+21
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4433 ce84e21b-d406-0410-9b95-82705330c041
* Add repo to metadata for TCheetah templates (Resolves #501)Narayan Desai2007-12-281-0/+1
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4123 ce84e21b-d406-0410-9b95-82705330c041
* Second stage of the root->0 backout (from GP)Narayan Desai2007-11-021-1/+1
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@3906 ce84e21b-d406-0410-9b95-82705330c041
* Implement better error reporting for TCheetahNarayan Desai2007-08-261-1/+6
| | | | | | | | | | | Cheetah template errors now display: NotFound: cannot find 'hostn' while searching for 'self.metadata.hostn' Failed to template /bcfg2.conf git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@3645 ce84e21b-d406-0410-9b95-82705330c041
* Implement infoxml support for TCheetahNarayan Desai2007-08-261-2/+14
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@3644 ce84e21b-d406-0410-9b95-82705330c041
* merge realname into path for altsrc templatesNarayan Desai2007-07-231-2/+1
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@3549 ce84e21b-d406-0410-9b95-82705330c041
* Add a realname attribute in altsrc bound entries and add TCheetah supportNarayan Desai2007-07-231-0/+1
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@3543 ce84e21b-d406-0410-9b95-82705330c041
* Power about to die can't find adapter may work or not...Daniel Joseph Barnhart Clark2007-07-021-1/+1
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@3409 ce84e21b-d406-0410-9b95-82705330c041
* Change TCheetah to set self.path for config file pathNarayan Desai2007-06-141-1/+1
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@3302 ce84e21b-d406-0410-9b95-82705330c041
* Add support to pull config file entry info out (for path) (requested by jcollie)Narayan Desai2007-06-141-0/+1
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@3301 ce84e21b-d406-0410-9b95-82705330c041
* Tighten up error handling in TCheetah (Resolves Ticket #336)Narayan Desai2007-01-181-1/+1
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@2694 ce84e21b-d406-0410-9b95-82705330c041
* Fix TCheetah when properties file doesn't exist (Resolves Ticket #335)Narayan Desai2006-12-131-1/+11
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@2592 ce84e21b-d406-0410-9b95-82705330c041
* Fix initialization to use a complete path for template namesNarayan Desai2006-09-281-1/+2
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@2337 ce84e21b-d406-0410-9b95-82705330c041
* Handle templates properly, regardless of event order (resolves ticket #158)Narayan Desai2006-09-281-3/+4
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@2336 ce84e21b-d406-0410-9b95-82705330c041
* Implement useful error handling for template parse failuresNarayan Desai2006-09-151-3/+7
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@2254 ce84e21b-d406-0410-9b95-82705330c041
* Implement template target ownership and permissions controlNarayan Desai2006-09-141-9/+20
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@2251 ce84e21b-d406-0410-9b95-82705330c041
* Switch TCheetah over to new /path/to/file/template schemeNarayan Desai2006-09-141-27/+31
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@2250 ce84e21b-d406-0410-9b95-82705330c041
* Fix properties handlingNarayan Desai2006-09-111-1/+2
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@2236 ce84e21b-d406-0410-9b95-82705330c041
* Fix metadata interpolation in TCheetahNarayan Desai2006-09-101-1/+1
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@2235 ce84e21b-d406-0410-9b95-82705330c041
* * Make bcfg2-info not produce a stack trace for PluginExecutionErrorNarayan Desai2006-09-101-2/+2
| | | | | | | * Fix some minor typos in TCheetah git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@2234 ce84e21b-d406-0410-9b95-82705330c041
* Introduce the new logging infrastructure and convert the server (and ↵Narayan Desai2006-01-251-4/+6
| | | | | | bcfg2-info) over to using it git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@1717 ce84e21b-d406-0410-9b95-82705330c041
* Re-add daemonize support to the serverNarayan Desai2005-12-061-6/+1
| | | | | | | | | Fix some pylint errors Add better error handling for function calls Add mesh-mode support for sshbase git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@1612 ce84e21b-d406-0410-9b95-82705330c041
* switch to etree errorsNarayan Desai2005-11-281-3/+2
| | | | | | | (Logical change 1.368) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@1552 ce84e21b-d406-0410-9b95-82705330c041
* pedantic fixNarayan Desai2005-11-281-2/+2
| | | | | | | | | | 2005/11/28 14:14:00-06:00 anl.gov!desai work around lxml bug (Logical change 1.367) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@1544 ce84e21b-d406-0410-9b95-82705330c041
* switch to lxmlNarayan Desai2005-11-121-1/+1
| | | | | | | (Logical change 1.357) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@1488 ce84e21b-d406-0410-9b95-82705330c041
* update to new plugin APINarayan Desai2005-09-071-0/+110
| | | | | | | | | | 2005/09/06 22:31:57-05:00 anl.gov!desai Rename: src/lib/Server/Generators/TCheetah.py -> src/lib/Server/Plugins/TCheetah.py (Logical change 1.300) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@1224 ce84e21b-d406-0410-9b95-82705330c041
* Initial revisionNarayan Desai2005-09-071-0/+0
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@1198 ce84e21b-d406-0410-9b95-82705330c041