comparison document_it.py @ 8:f7fa35f972f4

more stubbing
author Jeff Hammel <jhammel@mozilla.com>
date Mon, 01 Aug 2011 22:56:25 -0700
parents 6bf82220a04c
children 62bd66061329
comparison
equal deleted inserted replaced
7:6bf82220a04c 8:f7fa35f972f4
109 if item not in files: 109 if item not in files:
110 files.append(item) 110 files.append(item)
111 if options.list: 111 if options.list:
112 for item in files: 112 for item in files:
113 print '%s -> %s/%s' % (item[0], baseurl.rstrip('/'), item[1].lstrip('/')) 113 print '%s -> %s/%s' % (item[0], baseurl.rstrip('/'), item[1].lstrip('/'))
114
115 114
116 # render and upload READMEs 115 # render and upload READMEs
117 if options.directory: 116 if options.directory:
118 pass 117
118 # create a directory if needed
119 if os.path.exists(options.directory):
120 assert os.path.isdir(options.directory), "'%s' - not a directory" % options.directory
121 else:
122 os.makedirs(options.directory)
123
124 # TODO render to directory
125
119 else: 126 else:
120 # TODO check credentials 127 # TODO check credentials
121 raise NotImplementedError 128 raise NotImplementedError
122 129
123 if __name__ == '__main__': 130 if __name__ == '__main__':