diff options
author | substantialnoninfringinguser <substantialnoninfringinguser@gmail.com> | 2009-07-04 19:26:51 +0100 |
---|---|---|
committer | substantialnoninfringinguser <substantialnoninfringinguser@gmail.com> | 2009-07-04 19:26:51 +0100 |
commit | ebebb2f4bc861d6900fbf95b6cc04b5b3bf65e9a (patch) | |
tree | 746b52ff3c6b0eba445160c87be0275fd0d7acba /core/views_caves.py | |
parent | 9d90506e1cadc17edc908dea4f68b6137ff96b9f (diff) | |
download | troggle-ebebb2f4bc861d6900fbf95b6cc04b5b3bf65e9a.tar.gz troggle-ebebb2f4bc861d6900fbf95b6cc04b5b3bf65e9a.tar.bz2 troggle-ebebb2f4bc861d6900fbf95b6cc04b5b3bf65e9a.zip |
[svn] Remove old subcave model, along with mptt and feincms. Also move OtherCaveNames admin representation to an inline in Cave.
Diffstat (limited to 'core/views_caves.py')
-rw-r--r-- | core/views_caves.py | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/core/views_caves.py b/core/views_caves.py index fde7bbb..3f01c2f 100644 --- a/core/views_caves.py +++ b/core/views_caves.py @@ -56,19 +56,6 @@ def survexblock(request, survexpath): ftext = survexblock.text
return render_with_context(request,'survexblock.html', {'survexblock':survexblock, 'ftext':ftext, })
-def subcave(request, cave_id, subcave):
- print subcave
- subcaveSeq=re.findall('(?:/)([^/]*)',subcave)
- print subcaveSeq
- cave=models.Cave.objects.get(kataster_number = cave_id)
- subcave=models.Subcave.objects.get(title=subcaveSeq[0], cave=cave)
- if len(subcaveSeq)>1:
- for subcaveUrlSegment in subcaveSeq[1:]:
- if subcaveUrlSegment:
- subcave=subcave.children.get(title=subcaveUrlSegment)
- print subcave
- return render_with_context(request,'subcave.html', {'subcave': subcave,'cave':cave})
-
def surveyindex(request):
surveys=Survey.objects.all()
expeditions=Expedition.objects.order_by("-year")
|