Skip to content
Snippets Groups Projects
Commit 82bdbbad authored by anonymous's avatar anonymous
Browse files

Remove debugging code

parent 8e978caa
No related branches found
No related tags found
No related merge requests found
...@@ -88,8 +88,6 @@ def validate_extra_date_new(key, field, data, optional, errors): ...@@ -88,8 +88,6 @@ def validate_extra_date_new(key, field, data, optional, errors):
else: else:
if re.match(r'\d\d\d\d-\d\d-\d\d', value): if re.match(r'\d\d\d\d-\d\d-\d\d', value):
try: try:
print('parse')
print(value)
dt=parse(value) dt=parse(value)
_set_value(data, field, dt.isoformat()) _set_value(data, field, dt.isoformat())
return return
...@@ -122,7 +120,6 @@ def validate_extra_date_factory(field, optional=False): ...@@ -122,7 +120,6 @@ def validate_extra_date_factory(field, optional=False):
return lambda key, data, errors, context: validate_extra_date(key, field, data, optional) return lambda key, data, errors, context: validate_extra_date(key, field, data, optional)
def validate_licenseAttributionByText(key, data, errors,context): def validate_licenseAttributionByText(key, data, errors,context):
log.error("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ")
register = model.Package.get_license_register() register = model.Package.get_license_register()
isByLicense=False isByLicense=False
for k in data: for k in data:
...@@ -133,7 +130,6 @@ def validate_licenseAttributionByText(key, data, errors,context): ...@@ -133,7 +130,6 @@ def validate_licenseAttributionByText(key, data, errors,context):
hasAttribution=False hasAttribution=False
for k in data: for k in data:
if data[k] == 'licenseAttributionByText': if data[k] == 'licenseAttributionByText':
print(data[k])
if isinstance(data[(k[0], k[1], 'value')], Missing) or (k[0], k[1], 'value') not in data: if isinstance(data[(k[0], k[1], 'value')], Missing) or (k[0], k[1], 'value') not in data:
del data[(k[0], k[1], 'value')] del data[(k[0], k[1], 'value')]
del data[(k[0], k[1], 'key')] del data[(k[0], k[1], 'key')]
...@@ -226,10 +222,6 @@ def tag_string_convert(key, data, errors, context): ...@@ -226,10 +222,6 @@ def tag_string_convert(key, data, errors, context):
current_index = max([int(k[1]) for k in data.keys() current_index = max([int(k[1]) for k in data.keys()
if len(k) == 3 and k[0] == 'tags'] + [-1]) if len(k) == 3 and k[0] == 'tags'] + [-1])
print('TAGS')
print(current_index)
for num, tag in zip(count(current_index+1), tags): for num, tag in zip(count(current_index+1), tags):
data[('tags', num, 'name')] = tag data[('tags', num, 'name')] = tag
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment