diff options
Diffstat (limited to 'parsers/drawings.py')
-rw-r--r-- | parsers/drawings.py | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/parsers/drawings.py b/parsers/drawings.py index a6c16be..88a6ca3 100644 --- a/parsers/drawings.py +++ b/parsers/drawings.py @@ -21,18 +21,6 @@ for tunnel and therion files todo=''' ''' -def get_or_create_placeholder(year): - """ All surveys must be related to a logbookentry. We don't have a way to - automatically figure out which survey went with which logbookentry, - so we create a survey placeholder logbook entry for each year. This - function always returns such a placeholder, and creates it if it doesn't - exist yet. - """ - lookupAttribs={'date__year':int(year), 'title':"placeholder for surveys",} - nonLookupAttribs={'text':"surveys temporarily attached to this should be re-attached to their actual trips", 'date':datetime.date(int(year),1,1)} - placeholder_logbook_entry, newly_created = save_carefully(LogbookEntry, lookupAttribs, nonLookupAttribs) - return placeholder_logbook_entry - def find_dwg_file(dwgfile, path): '''Is given a line of text 'path' which may or may not contain a recognisable name of a scanned file which we have already seen when we imported all the files we could find in the surveyscans direstories |