Lines 186-192
class WebappDB(AppHierarchy):
Link Here
|
186 |
>>> sb = [i[1] for i in b.list_locations().items()] |
186 |
>>> sb = [i[1] for i in b.list_locations().items()] |
187 |
>>> sb.sort(lambda x,y: cmp(x[0]+x[1],y[0]+y[1])) |
187 |
>>> sb.sort(lambda x,y: cmp(x[0]+x[1],y[0]+y[1])) |
188 |
>>> sb |
188 |
>>> sb |
189 |
[['gallery', '1.4.4_p6'], ['gallery', '2.0_rc2'], ['horde', '3.0.5'], ['phpldapadmin', '0.9.7_alpha4']] |
189 |
[[u'gallery', u'1.4.4_p6'], [u'gallery', u'2.0_rc2'], [u'horde', u'3.0.5'], [u'phpldapadmin', u'0.9.7_alpha4']] |
190 |
|
190 |
|
191 |
>>> c = WebappDB(here + '/tests/testfiles/webapps', |
191 |
>>> c = WebappDB(here + '/tests/testfiles/webapps', |
192 |
... package = 'horde', version = '3.0.5') |
192 |
... package = 'horde', version = '3.0.5') |
Lines 572-578
class WebappSource(AppHierarchy):
Link Here
|
572 |
... 'horde', '3.0.5') |
572 |
... 'horde', '3.0.5') |
573 |
>>> d = a.get_source_directories('htdocs') |
573 |
>>> d = a.get_source_directories('htdocs') |
574 |
>>> [i for i in d if i != '.svn'] |
574 |
>>> [i for i in d if i != '.svn'] |
575 |
['dir1', 'dir2'] |
575 |
[u'dir1', u'dir2'] |
576 |
''' |
576 |
''' |
577 |
dirs = [] |
577 |
dirs = [] |
578 |
|
578 |
|
Lines 604-610
class WebappSource(AppHierarchy):
Link Here
|
604 |
>>> a = WebappSource(here + '/tests/testfiles/share-webapps', |
604 |
>>> a = WebappSource(here + '/tests/testfiles/share-webapps', |
605 |
... 'horde', '3.0.5') |
605 |
... 'horde', '3.0.5') |
606 |
>>> a.get_source_files('htdocs') |
606 |
>>> a.get_source_files('htdocs') |
607 |
['test1', 'test2'] |
607 |
[u'test1', u'test2'] |
608 |
''' |
608 |
''' |
609 |
|
609 |
|
610 |
files = [] |
610 |
files = [] |