Thanks for the insights! I deleted the 'NG' from
/var/www/geonode/static/script/GeoExplorer.js and am able to export
.pdf-prints (after restarting tomcat+apache). Have a great weekend,
joe.

On Fri, Oct 14, 2011 at 12:47 PM, Ariel Nunez <[email protected]> wrote:
> Joe,
>
> All collect static does is take the media from the
> django.contrib.admin, your geonode installation and /etc/geonode/media
> and put it in /var/www/geonode/static
>
> There is a bug with the verbose output and Django 1.2 (it works with
> 1.3) that can be patched as Jeff suggests.
>
> Or you could just update the files at /var/www/geonode/static/geonode
> manually and not run collect static.
>
> Ariel.
>
> On Fri, Oct 14, 2011 at 3:37 PM, Jeffrey Johnson <[email protected]> wrote:
>> You have to use -v0 or modify the line specified in collectstatic.py
>> to use a print statement rather than self.stdout. There is one other
>> place too, but not sure where it is immediately. Fix that one and it
>> will tell you ... or just use -v0 to supress the output.
>>
>> Jeff
>>
>> On Fri, Oct 14, 2011 at 12:31 PM, Joe Larson <[email protected]> wrote:
>>> ran w/ -v2 after not getting results expected...here's the output
>>>
>>>
>>> ubuntu@ip-x-x-x-x:/var/lib/geonode/src/GeoNodePy/geonode/media/geonode$
>>> sudo geonode collectstatic -v2
>>>
>>> You have requested to collect static files at the destination
>>> location as specified in your settings.
>>>
>>> This will overwrite existing files!
>>> Are you sure you want to do this?
>>>
>>> Type 'yes' to continue, or 'no' to cancel: yes
>>> Traceback (most recent call last):
>>>  File "/var/lib/geonode/bin/django-admin.py", line 5, in <module>
>>>   management.execute_from_command_line()
>>>  File 
>>> "/var/lib/geonode/lib/python2.6/site-packages/django/core/management/__init__.py",
>>> line 429, in execute_from_command_line
>>>   utility.execute()
>>>  File 
>>> "/var/lib/geonode/lib/python2.6/site-packages/django/core/management/__init__.py",
>>> line 379, in execute
>>>   self.fetch_command(subcommand).run_from_argv(self.argv)
>>>  File 
>>> "/var/lib/geonode/lib/python2.6/site-packages/django/core/management/base.py",
>>> line 191, in run_from_argv
>>>   self.execute(*args, **options.__dict__)
>>>  File 
>>> "/var/lib/geonode/lib/python2.6/site-packages/django/core/management/base.py",
>>> line 218, in execute
>>>   output = self.handle(*args, **options)
>>>  File 
>>> "/var/lib/geonode/lib/python2.6/site-packages/django/core/management/base.py",
>>> line 347, in handle
>>>   return self.handle_noargs(**options)
>>>  File 
>>> "/var/lib/geonode/lib/python2.6/site-packages/staticfiles/management/commands/collectstatic.py",
>>> line 126, in handle_noargs
>>>   handler(path, prefixed_path, storage)
>>>  File 
>>> "/var/lib/geonode/lib/python2.6/site-packages/staticfiles/management/commands/collectstatic.py",
>>> line 255, in copy_file
>>>   if not self.delete_file(path, prefixed_path, source_storage):
>>>  File 
>>> "/var/lib/geonode/lib/python2.6/site-packages/staticfiles/management/commands/collectstatic.py",
>>> line 211, in delete_file
>>>   self.log(u"Skipping '%s' (not modified)" % path)
>>>  File 
>>> "/var/lib/geonode/lib/python2.6/site-packages/staticfiles/management/commands/collectstatic.py",
>>> line 163, in log
>>>   self.stdout.write(msg)
>>> AttributeError: 'Command' object has no attribute 'stdout'
>>>
>>>
>>> On Fri, Oct 14, 2011 at 12:07 PM, Ariel Nunez <[email protected]> 
>>> wrote:
>>>> Yeah, that looks right, sorry for the typo.
>>>>
>>>> Ariel
>>>>
>>>> On Fri, Oct 14, 2011 at 3:05 PM, Joe Larson <[email protected]> wrote:
>>>>> Ariel, my install shows:
>>>>>
>>>>> /var/lib/geonode/src/GeoNodePy/geonode/media/geonode/
>>>>>
>>>>> versus
>>>>>
>>>>> /var/lib/geonode/src/GeoNodePy/geonode/maps/media/geonode/
>>>>>
>>>>> like you pasted above. Just thought I'd mention..
>>>>>
>>>>> On Fri, Oct 14, 2011 at 11:17 AM, Ariel Nunez <[email protected]> 
>>>>> wrote:
>>>>>> Joe,
>>>>>>
>>>>>> In order to implement Andreas' fix (assuming it is in geonode-client)
>>>>>> you should follow the instructions in that README to compress and
>>>>>> minify the javascript and other static files and then deploy the
>>>>>> resulting media in:
>>>>>>
>>>>>> /var/lib/geonode/src/GeoNodePy/geonode/maps/media/geonode/
>>>>>>
>>>>>> And run:
>>>>>>
>>>>>> sudo geonode collectstatic -v0
>>>>>>
>>>>>> So the end up in /var/www/geonode/static
>>>>>>
>>>>>> Best,
>>>>>> Ariel.
>>>>>>
>>>>>> On Fri, Oct 14, 2011 at 2:14 PM, Andreas Hocevar <[email protected]> 
>>>>>> wrote:
>>>>>>> Found it already. Fix to come in 5min.
>>>>>>>
>>>>>>> Andreas.
>>>>>>>
>>>>>>> On Oct 14, 2011, at 20:13 , Joe Larson wrote:
>>>>>>>
>>>>>>>> I forgot to include that the Firebug error also mentioned:
>>>>>>>>
>>>>>>>> GeoExplorer.js (line 13)
>>>>>>>>
>>>>>>>> On Fri, Oct 14, 2011 at 11:09 AM, Andreas Hocevar 
>>>>>>>> <[email protected]> wrote:
>>>>>>>>> Hi,
>>>>>>>>>
>>>>>>>>> I'll give this a look shortly. Will keep you posted.
>>>>>>>>>
>>>>>>>>> Andreas.
>>>>>>>>>
>>>>>>>>> On Oct 14, 2011, at 20:07 , Joe Larson wrote:
>>>>>>>>>
>>>>>>>>>> I am getting this error (Firebug console output) when clicking the
>>>>>>>>>> Print button in GeoNode; occurs both when using 'no background' and
>>>>>>>>>> 'OpenStreetMap' Base Layers:
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> invalid 'instanceof' operand OpenLayers.Layer.GoogleNG
>>>>>>>>>> [Break On This Error]
>>>>>>>>>> setScale.call(this);this.mapPanel.map....tadataForm){this.initMetadataForm();}
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> I have no custom entries in my settings.py or local_settings.py for
>>>>>>>>>> other Base Layers.
>>>>>>>>>>
>>>>>>>>>> dwins and I (larso) chatted briefly about it on IRC, it was 
>>>>>>>>>> mentioned:
>>>>>>>>>> "GoogleNG is no longer a valid layer type" & "it's possible that a
>>>>>>>>>> lingering reference to it exists..."
>>>>>>>>>>
>>>>>>>>>> I have asked in #geoext without any leads - wondering if other
>>>>>>>>>> installs of 1.1+RC1-ariel6 experience this or if anyone on this list
>>>>>>>>>> can help us move forward to enable printing.
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> -JLarson
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>> Andreas Hocevar
>>>>>>>>> OpenGeo - http://opengeo.org/
>>>>>>>>> Expert service straight from the developers.
>>>>>>>>>
>>>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> Andreas Hocevar
>>>>>>> OpenGeo - http://opengeo.org/
>>>>>>> Expert service straight from the developers.
>>>>>>>
>>>>>>>
>>>>>>
>>>>>
>>>>
>>>
>>
>

Reply via email to