from sqlalchemy import desc, or_
from subprocess import Popen, PIPE
-import os
+import os.path
class ContentsWriter(object):
'''
Returns a formatted string for the filename argument.
'''
package_list = ','.join(package_list)
- return "%-60s%s\n" % (filename, package_list)
+ return "%-55s %s\n" % (filename, package_list)
def fetch(self):
'''
'''
Returns the header for the Contents files as a string.
'''
+ header_file = None
try:
- filename = os.join(Config()['Dir::Templates'], 'contents')
+ filename = os.path.join(Config()['Dir::Templates'], 'contents')
header_file = open(filename)
return header_file.read()
finally: