Changeset 6454
- Timestamp:
- 08/21/08 14:45:27 (5 months ago)
- Location:
- Trunk/association/services/pluginLibrary
- Files:
-
- 5 modified
-
dirScraper.py (modified) (3 diffs)
-
test/bar/adipisicing.js.meta (modified) (1 diff)
-
test/bar/consectetur.js.meta (modified) (1 diff)
-
test/foo/dolor.js.meta (modified) (1 diff)
-
test/foo/ipsum.js.meta (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
Trunk/association/services/pluginLibrary/dirScraper.py
r6449 r6454 60 60 if self.whitelist in uris: 61 61 whitelisted = self._get(self.host + dir + self.whitelist).split("\n") 62 uris = [uri.strip() for uri in whitelisted] # XXX: do not strip whitespace!? 62 meta = [uri.strip() for uri in uris if uri.endswith(".meta")] 63 uris = [uri.strip() for uri in whitelisted] 64 uris.extend(meta) 63 65 elif self.blacklist in uris: 64 66 blacklisted = self._get(self.host + dir + self.blacklist).split("\n") 65 67 blacklisted.append(self.blacklist) 66 uris = [uri.strip() for uri in uris if uri not in blacklisted] # XXX: do not strip whitespace!?68 uris = [uri.strip() for uri in uris if uri not in blacklisted] 67 69 for uri in uris: 68 70 if uri == "../": … … 71 73 plugin = Tiddler() 72 74 plugin.title = posixpath.basename(uri[:-3]) 73 plugin.tags = "systemConfig" # XXX: should be list; cf. aggregator.getPlugins()75 plugin.tags = ["systemConfig"] 74 76 plugin.text = self._get(self.host + dir + uri) 75 77 if uri + ".meta" in uris: # retrieve metadata … … 103 105 for tag in v.split(" "): # TODO: resolve bracketed list 104 106 if tag not in plugin.tags: 105 plugin.tags. push(tag)107 plugin.tags.append(tag) 106 108 else: 107 109 #plugin.fields[k] = v # DEBUG'd -- TODO: not yet implemented in Tiddler class -
Trunk/association/services/pluginLibrary/test/bar/adipisicing.js.meta
r6447 r6454 3 3 created: 200808211445 4 4 modified: 200808211445 5 tags: systemConfig 5 tags: systemConfig tmp -
Trunk/association/services/pluginLibrary/test/bar/consectetur.js.meta
r6447 r6454 3 3 created: 200808211445 4 4 modified: 200808211445 5 tags: systemConfig 5 tags: systemConfig tmp -
Trunk/association/services/pluginLibrary/test/foo/dolor.js.meta
r6447 r6454 3 3 created: 200808211445 4 4 modified: 200808211445 5 tags: systemConfig 5 tags: systemConfig tmp -
Trunk/association/services/pluginLibrary/test/foo/ipsum.js.meta
r6447 r6454 3 3 created: 200808211445 4 4 modified: 200808211445 5 tags: systemConfig 5 tags: systemConfig tmp
