summaryrefslogtreecommitdiff
path: root/app/cron
diff options
context:
space:
mode:
Diffstat (limited to 'app/cron')
-rw-r--r--app/cron/create_country_sidebar.py19
-rw-r--r--app/cron/create_region_sidebar.py18
-rw-r--r--app/cron/full_build.py33
-rwxr-xr-xapp/cron/full_build.sh2
-rw-r--r--app/cron/sync_links.py13
-rw-r--r--app/cron/sync_photo_sets.py13
-rw-r--r--app/cron/sync_photos.py12
7 files changed, 0 insertions, 110 deletions
diff --git a/app/cron/create_country_sidebar.py b/app/cron/create_country_sidebar.py
deleted file mode 100644
index f660c73..0000000
--- a/app/cron/create_country_sidebar.py
+++ /dev/null
@@ -1,19 +0,0 @@
-import sys, os
-
-sys.path.append('/home/luxagraf/webapps/django1_1')
-sys.path.append('/home/luxagraf/webapps/django1_1/luxagraf')
-sys.path.append('/home/luxagraf/webapps/django1_1/luxagraf/apps')
-sys.path.append('/home/luxagraf/webapps/django1_1/luxagraf/lib')
-sys.path.append('/home/luxagraf/webapps/django1_1/lib/python2.5/')
-os.environ['DJANGO_SETTINGS_MODULE'] = 'settings'
-
-from django.template import Context
-from django.template import loader
-from django.conf import settings
-from locations.models import Country,Region
-c = Context({'country_list': Country.objects.filter(visited=True),})
-t = loader.render_to_string('includes/country_sidebar_template.html',c)
-fpath = '%s%s' %(settings.PROJ_ROOT,'templates/includes/country_sidebar.html')
-file = open(fpath, 'w')
-file.write(t)
-file.close() \ No newline at end of file
diff --git a/app/cron/create_region_sidebar.py b/app/cron/create_region_sidebar.py
deleted file mode 100644
index 77f2628..0000000
--- a/app/cron/create_region_sidebar.py
+++ /dev/null
@@ -1,18 +0,0 @@
-import sys, os
-
-sys.path.append('/home/luxagraf/webapps/django1_1')
-sys.path.append('/home/luxagraf/webapps/django1_1/luxagraf')
-sys.path.append('/home/luxagraf/webapps/django1_1/luxagraf/apps')
-sys.path.append('/home/luxagraf/webapps/django1_1/luxagraf/lib')
-sys.path.append('/home/luxagraf/webapps/django1_1/lib/python2.5/')
-os.environ['DJANGO_SETTINGS_MODULE'] = 'settings'
-
-from django.template import Context,loader
-from django.conf import settings
-from locations.models import Region
-c = Context({'region_list': Region.objects.all(),})
-t = loader.render_to_string('includes/regions_sidebar_template.html',c)
-fpath = '%s%s' %(settings.PROJ_ROOT,'templates/includes/regions_sidebar.html')
-file = open(fpath, 'w')
-file.write(t)
-file.close() \ No newline at end of file
diff --git a/app/cron/full_build.py b/app/cron/full_build.py
deleted file mode 100644
index e52d005..0000000
--- a/app/cron/full_build.py
+++ /dev/null
@@ -1,33 +0,0 @@
-import sys, os
-from os.path import dirname, abspath
-
-PROJECT_ROOT = abspath(dirname(dirname(__file__)))
-
-sys.path.append(PROJECT_ROOT)
-sys.path.append(PROJECT_ROOT+'/apps')
-sys.path.append(PROJECT_ROOT+'/lib')
-sys.path.append('/home/luxagraf/webapps/django1_3/lib/python2.7/')
-os.environ['DJANGO_SETTINGS_MODULE'] = 'settings'
-
-from build.base import BuildWriting,BuildMap,BuildPhotos,BuildAbout,BuildProjects,BuildSitemap,BuildContact
-
-b = BuildWriting()
-b.build()
-
-b = BuildPhotos()
-b.build()
-
-b = BuildMap()
-b.build()
-
-b = BuildAbout()
-b.build()
-
-b = BuildProjects()
-b.build()
-
-b = BuildSitemap()
-b.build()
-
-b = BuildContact()
-b.build() \ No newline at end of file
diff --git a/app/cron/full_build.sh b/app/cron/full_build.sh
deleted file mode 100755
index c065d48..0000000
--- a/app/cron/full_build.sh
+++ /dev/null
@@ -1,2 +0,0 @@
-#!/bin/sh
-python2.7 /home/luxagraf/webapps/django/luxagraf/cron/full_build.py \ No newline at end of file
diff --git a/app/cron/sync_links.py b/app/cron/sync_links.py
deleted file mode 100644
index cd1373d..0000000
--- a/app/cron/sync_links.py
+++ /dev/null
@@ -1,13 +0,0 @@
-import sys, os
-from os.path import dirname, abspath
-PROJECT_ROOT = abspath(dirname(dirname(dirname(__file__))))+'/'
-#PROJECT_ROOT = abspath(dirname(dirname(__file__)))
-print PROJECT_ROOT
-sys.path.append(PROJECT_ROOT)
-sys.path.append(PROJECT_ROOT+'/app')
-sys.path.append(PROJECT_ROOT+'/app/lib')
-sys.path.append(PROJECT_ROOT+'/config')
-sys.path.append('/home/luxagraf/apps/venv/bin/python2.7/')
-os.environ['DJANGO_SETTINGS_MODULE'] = 'settings.settings'
-from links import retriever
-retriever.sync_pinboard_links()
diff --git a/app/cron/sync_photo_sets.py b/app/cron/sync_photo_sets.py
deleted file mode 100644
index beac435..0000000
--- a/app/cron/sync_photo_sets.py
+++ /dev/null
@@ -1,13 +0,0 @@
-import sys, os
-from os.path import dirname, abspath
-PROJECT_ROOT = abspath(dirname(dirname(dirname(__file__))))+'/'
-#PROJECT_ROOT = abspath(dirname(dirname(__file__)))
-print PROJECT_ROOT
-sys.path.append(PROJECT_ROOT)
-sys.path.append(PROJECT_ROOT+'/app')
-sys.path.append(PROJECT_ROOT+'/app/lib')
-sys.path.append(PROJECT_ROOT+'/config')
-sys.path.append('/home/luxagraf/apps/venv/bin/python2.7/')
-os.environ['DJANGO_SETTINGS_MODULE'] = 'settings.settings'
-from photos import retriever
-retriever.sync_sets()
diff --git a/app/cron/sync_photos.py b/app/cron/sync_photos.py
deleted file mode 100644
index 634a2fc..0000000
--- a/app/cron/sync_photos.py
+++ /dev/null
@@ -1,12 +0,0 @@
-import sys, os
-from os.path import dirname, abspath
-PROJECT_ROOT = abspath(dirname(dirname(dirname(__file__))))+'/'
-#PROJECT_ROOT = abspath(dirname(dirname(__file__)))
-sys.path.append(PROJECT_ROOT)
-sys.path.append(PROJECT_ROOT+'/app')
-sys.path.append(PROJECT_ROOT+'/app/lib')
-sys.path.append(PROJECT_ROOT+'/config')
-sys.path.append('/home/luxagraf/apps/venv/bin/python2.7/')
-os.environ['DJANGO_SETTINGS_MODULE'] = 'settings.settings'
-from photos import retriever
-retriever.sync_flickr_photos()