Nico Schottelius
|
1314567012
|
also begin to prefix type with cdist
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
|
2012-02-12 01:10:57 +01:00 |
|
Nico Schottelius
|
4be37f6e93
|
begin rename Object => CdistObject
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
|
2012-02-12 00:08:18 +01:00 |
|
Nico Schottelius
|
15fb097464
|
add function to sanitise object_id and verify no //
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
|
2012-02-12 00:05:21 +01:00 |
|
Steven Armstrong
|
252ae5ea56
|
new feature: dependency resolver
|
2012-01-19 07:51:02 +01:00 |
|
Steven Armstrong
|
1729516414
|
allow .cdist (OBJECT_MARKER) inside file names but not as _the_ file/folder name
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
|
2011-11-09 20:38:22 +01:00 |
|
Nico Schottelius
|
c7d0d581b1
|
we pass base_path, not object_path (clearification)
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
|
2011-11-09 18:41:46 +01:00 |
|
Steven Armstrong
|
792ddf0a5b
|
add utility method to join object name from type and object_id
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
|
2011-11-02 09:13:23 +01:00 |
|
Steven Armstrong
|
afba5e9280
|
add utilitly method to split an object name into its type name and object_id
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
|
2011-11-02 07:52:08 +01:00 |
|
Steven Armstrong
|
70ee0f1681
|
implement __lt__ to support sorting a list of objects
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
|
2011-11-01 22:46:46 +01:00 |
|
Steven Armstrong
|
ff2192f6de
|
remove legacy attributes: ran, prepared
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
|
2011-10-19 14:54:15 +02:00 |
|
Steven Armstrong
|
022b17d700
|
implement Object state
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
|
2011-10-19 14:53:31 +02:00 |
|
Nico Schottelius
|
4d4287c580
|
Merge remote-tracking branch 'steven/master'
|
2011-10-18 15:14:44 +02:00 |
|
Steven Armstrong
|
030d5919e6
|
raise exception if object_id contains .cdist
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
|
2011-10-18 15:07:58 +02:00 |
|
Nico Schottelius
|
7bb81e2f18
|
Whitespace does not not weigh anything - remove - sed -i 's/ *$//g' *py */*py
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
|
2011-10-18 13:32:36 +02:00 |
|
Steven Armstrong
|
fb705adc5d
|
simplify object_id error handling
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
|
2011-10-14 14:04:56 +02:00 |
|
Steven Armstrong
|
93db0b58d6
|
append type to error message
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
|
2011-10-14 12:05:30 +02:00 |
|
Steven Armstrong
|
f76a5abf6f
|
/./,/
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
|
2011-10-14 11:50:40 +02:00 |
|
Steven Armstrong
|
1c84e423d1
|
include type name in error message
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
|
2011-10-14 11:49:37 +02:00 |
|
Steven Armstrong
|
d346364544
|
better error message
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
|
2011-10-14 11:39:03 +02:00 |
|
Steven Armstrong
|
3e3919d15f
|
implement fail if object_id starts with /
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
|
2011-10-14 11:25:39 +02:00 |
|
Steven Armstrong
|
b122b53d73
|
implement Object object_from_name
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
|
2011-10-14 09:05:51 +02:00 |
|
Steven Armstrong
|
5edcc0537b
|
use api internally instead of constructing the same paths again
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
|
2011-10-13 14:37:50 +02:00 |
|
Steven Armstrong
|
939962b583
|
implement code_remote
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
|
2011-10-13 13:42:58 +02:00 |
|
Steven Armstrong
|
93ede2a3be
|
implement code_local
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
|
2011-10-13 13:40:50 +02:00 |
|
Steven Armstrong
|
2c6c9bcab5
|
Object handles its explorers itself
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
|
2011-10-11 15:44:31 +02:00 |
|
Steven Armstrong
|
753936b7c3
|
make object.source a list
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
|
2011-10-11 10:30:30 +02:00 |
|
Steven Armstrong
|
904396f6a5
|
new method to create object on the file system
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
|
2011-10-11 10:29:06 +02:00 |
|
Steven Armstrong
|
5a082058e5
|
new method which checks if object exists on the file system
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
|
2011-10-11 10:28:41 +02:00 |
|
Steven Armstrong
|
96c059983a
|
- legacy code, + docstrings
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
|
2011-10-11 10:28:10 +02:00 |
|
Steven Armstrong
|
67543146f0
|
add source property
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
|
2011-10-10 17:46:25 +02:00 |
|
Steven Armstrong
|
af8f006fc6
|
/type/cdist_type/
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
|
2011-10-10 16:50:56 +02:00 |
|
Steven Armstrong
|
bbcecc03ef
|
remove redundant code, use new fsproperty module instead
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
|
2011-10-10 16:39:48 +02:00 |
|
Steven Armstrong
|
86f976976e
|
bugfix: use absolute path when accessing file system
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
|
2011-10-10 10:01:28 +02:00 |
|
Steven Armstrong
|
96ca5b6988
|
bugfix: use absolute path to when accessing file sytem (unittest discoverd :-)
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
|
2011-10-10 09:48:19 +02:00 |
|
Steven Armstrong
|
e27cd9e809
|
when comparing objects, define equality as 'attributes are the same'
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
|
2011-10-10 09:23:27 +02:00 |
|
Steven Armstrong
|
b778c9ff15
|
absolute path is based on relative path -> does not need another .cdist
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
|
2011-10-07 16:59:52 +02:00 |
|
Steven Armstrong
|
5f4a85f6ad
|
also need .cdist in relative paths
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
|
2011-10-07 16:49:18 +02:00 |
|
Steven Armstrong
|
53737aad3a
|
append .cdist to absolute paths
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
|
2011-10-07 16:46:55 +02:00 |
|
Steven Armstrong
|
79d0a18bb2
|
use absolute path for accessing file system
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
|
2011-10-07 16:12:01 +02:00 |
|
Steven Armstrong
|
600e7fb5b5
|
--typo
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
|
2011-10-07 16:03:37 +02:00 |
|
Steven Armstrong
|
be8428e592
|
relative paths
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
|
2011-10-07 15:42:04 +02:00 |
|
Steven Armstrong
|
1992c9a175
|
--legacy code
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
|
2011-10-07 13:52:55 +02:00 |
|
Steven Armstrong
|
f39418a7b5
|
implement remote_code_remote :-(
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
|
2011-10-07 13:50:17 +02:00 |
|
Steven Armstrong
|
d9f86e26d9
|
consistent naming
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
|
2011-10-07 13:15:52 +02:00 |
|
Steven Armstrong
|
6e011dc289
|
implement explorer_out_dir
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
|
2011-10-07 13:15:11 +02:00 |
|
Steven Armstrong
|
3ef9798098
|
implement code, code_remote
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
|
2011-10-07 13:06:56 +02:00 |
|
Nico Schottelius
|
06f438f824
|
move stuff from path to object, remove if already existent
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
|
2011-10-07 09:46:06 +02:00 |
|
Nico Schottelius
|
1810462989
|
move stuff over from path to object to be fixed
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
|
2011-10-07 09:05:42 +02:00 |
|
Nico Schottelius
|
354e15015a
|
use full.path.to.cdist.core.Type(), Steven ;-)
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
|
2011-10-06 20:34:36 +02:00 |
|
Nico Schottelius
|
be1d4afd58
|
add log to object
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
|
2011-10-06 20:27:07 +02:00 |
|