[ "Litecoin" ],
[ ]),
+ 'dogecoin' : FieldType("Dogecoin address",
+ r'^D[a-zA-Z0-9]{33}$', None,
+ [ "Dogecoin" ],
+ [ ]),
+
'Bool' : FieldType("Boolean",
['Yes', 'No'], None,
[ "Requires Root" ],
thisinfo['FlattrID'] = None
thisinfo['Bitcoin'] = None
thisinfo['Litecoin'] = None
+ thisinfo['Dogecoin'] = None
thisinfo['Disabled'] = None
thisinfo['AntiFeatures'] = None
thisinfo['Archive Policy'] = None
writefield('Bitcoin')
if app['Litecoin']:
writefield('Litecoin')
+ if app['Dogecoin']:
+ writefield('Dogecoin')
mf.write('\n')
if app['Name']:
writefield('Name')
if app['AntiFeatures']:
for af in app['AntiFeatures'].split(','):
wikidata += '{{AntiFeature|' + af + '}}\n'
- wikidata += '{{App|id=%s|name=%s|added=%s|lastupdated=%s|source=%s|tracker=%s|web=%s|donate=%s|flattr=%s|bitcoin=%s|litecoin=%s|license=%s|root=%s}}\n'%(
+ wikidata += '{{App|id=%s|name=%s|added=%s|lastupdated=%s|source=%s|tracker=%s|web=%s|donate=%s|flattr=%s|bitcoin=%s|litecoin=%s|dogecoin=%s|license=%s|root=%s}}\n'%(
app['id'],
app['Name'],
time.strftime('%Y-%m-%d', app['added']) if 'added' in app else '',
app['FlattrID'],
app['Bitcoin'],
app['Litecoin'],
+ app['Dogecoin'],
app['License'],
app.get('Requires Root', 'No'))
addElement('description', config['repo_description'], doc, repoel)
repoel.setAttribute("timestamp", str(int(time.time())))
- if config['repo_keyalias'] is not None:
+ if config['repo_keyalias']:
# Generate a certificate fingerprint the same way keytool does it
# (but with slightly different formatting)
addElement('lastupdated', time.strftime('%Y-%m-%d', app['lastupdated']), doc, apel)
addElement('name', app['Name'], doc, apel)
addElement('summary', app['Summary'], doc, apel)
- if app['icon'] is not None:
+ if app['icon']:
addElement('icon', app['icon'], doc, apel)
def linkres(link):
for app in apps:
addElement('web', app['Web Site'], doc, apel)
addElement('source', app['Source Code'], doc, apel)
addElement('tracker', app['Issue Tracker'], doc, apel)
- if app['Donate'] is not None:
+ if app['Donate']:
addElement('donate', app['Donate'], doc, apel)
- if app['Bitcoin'] is not None:
+ if app['Bitcoin']:
addElement('bitcoin', app['Bitcoin'], doc, apel)
- if app['Litecoin'] is not None:
+ if app['Litecoin']:
addElement('litecoin', app['Litecoin'], doc, apel)
- if app['FlattrID'] is not None:
+ if app['Dogecoin']:
+ addElement('dogecoin', app['Dogecoin'], doc, apel)
+ if app['FlattrID']:
addElement('flattr', app['FlattrID'], doc, apel)
# These elements actually refer to the current version (i.e. which