This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export CLASSPATH=$CLASSPATH:$VIRTUAL_ENV/jars/sqlitejdbc-v056.jar | |
export CLASSPATH=$CLASSPATH:$VIRTUAL_ENV/jars/libreadline-java.jar | |
#export CLASSPATH=$CLASSPATH:$VIRTUAL_ENV/jars/postgresql-8.4-701.jdbc4.jar | |
export CLASSPATH=$CLASSPATH:$VIRTUAL_ENV/jars/postgresql-8.4-701.jdbc3.jar | |
cd $VIRTUAL_ENV |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
try: | |
from paver.virtual import bootstrap | |
except : | |
# minilib does not support bootstrap | |
pass | |
import os | |
from paver.easy import * | |
from paver.tasks import help, needs | |
options(virtualenv=Bunch(script_name="doc_env", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class _metadata_property(object): | |
def __init__(self, key): | |
# key name/abstract | |
self.key = key | |
self.__doc__ = "Accesses %s from metadata dict" %key | |
def __get__(self, obj, type=None): | |
return obj.metadata[self.key] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@task | |
def check_for_ant(options): | |
try: | |
output = subprocess.Popen(["ant", "-v"], stdout=subprocess.PIPE).communicate()[0] | |
except : | |
raise |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[server:main] | |
use = egg:Spawning | |
#use = egg:Paste#http | |
# Change to 0.0.0.0 to make public: | |
host = 127.0.0.1 | |
port = 8888 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
------------------------------------------------------------------------------- | |
Test set: org.geonode.rest.ProcessRestletTest | |
------------------------------------------------------------------------------- | |
Tests run: 14, Failures: 0, Errors: 14, Skipped: 0, Time elapsed: 0.903 sec <<< FAILURE! | |
testHTTPMethod(org.geonode.rest.ProcessRestletTest) Time elapsed: 0.093 sec <<< ERROR! | |
java.lang.NoSuchMethodError: org.geotools.coverage.grid.io.GridFormatFinder.findFormat(Ljava/lang/Object;)Lorg/opengis/coverage/grid/Format; | |
at org.geoserver.data.test.MockData.coverageInfo(MockData.java:666) | |
at org.geoserver.data.test.MockData.addCoverage(MockData.java:536) | |
at org.geoserver.data.test.MockData.addWellKnownCoverageTypes(MockData.java:439) | |
at org.geonode.rest.ProcessRestletTest.populateDataDirectory(ProcessRestletTest.java:54) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function coordToLonlat(coords, from, to, transform){ | |
// transform is the default, change to make more reusable | |
if(from == null){ | |
to = OpenLayers.Projection("EPSG:900913"); | |
from = OpenLayers.Projection("EPSG:4326"); | |
} | |
var lonlat = new OpenLayers.LonLat(coords.longitude, coords.latitude); | |
console.log('here!!'); | |
lonlat.transform(from, to); | |
return lonlat; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def configureTranslations(config): | |
from zope.component import provideUtility | |
from zope.i18n.translationdomain import TranslationDomain | |
from zope.i18n.interfaces import ITranslationDomain | |
from zope.i18n.gettextmessagecatalog import GettextMessageCatalog | |
import tostyle4you | |
import formencode | |
import s4u.engine | |
import sys |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import tempfile, sys, os | |
def what_editor(): | |
editor = os.getenv('VISUAL') or os.getenv('EDITOR') | |
if not editor: | |
editor = 'vi' | |
return editor | |
def get_edited_text(starting_text=''): |