summaryrefslogtreecommitdiff
path: root/lib/Pb/Landscape/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Pb/Landscape/__init__.py')
-rwxr-xr-xlib/Pb/Landscape/__init__.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/Pb/Landscape/__init__.py b/lib/Pb/Landscape/__init__.py
index 33eedd6..cc1bcb0 100755
--- a/lib/Pb/Landscape/__init__.py
+++ b/lib/Pb/Landscape/__init__.py
@@ -6,13 +6,13 @@ import urlparse, re
class PbLandscape(Pb):
example_params = {
- 'imgdata' : open('Pb/Landscape/_base64img', 'rb').read(),
+ 'imgdata' : open('lib/Pb/Landscape/_base64img', 'rb').read(),
'texture' : 'http://someurl.biz/someimg.jpg',
'heightmap' : 'http://someurl.biz/someimg.jpg',
'name' : 'donkey'
}
def __init__(self, **kwargs):
- super(PbLandscape,self).__init__();
+ super(PbLandscape,self).__init__(**kwargs);
_definitions = {
'heightmap': {'type': 'string'} ,
'imgdata': {'type': 'raw' } ,
@@ -22,6 +22,8 @@ class PbLandscape(Pb):
self.params.definitions_import(_definitions, kwargs, classname=self.__class__.__name__);
_namepart = re.sub(r'https?:?/?/?', '', str(self.params.texture))
self.filename, self.filepath = self._filename_filepath_create(url=_namepart, extension="png")
+
+ self._db_url_param = str(self.params.texture)
def _saveImgData(self):
try: