Discussion:
m.localhost is unthemed
fulv
2011-06-22 02:43:47 UTC
Permalink
I successfully installed Go Mobile and Go Mobile Default Theme on a plain
Plone 3.3.4 site.
However, when I go to m.localhost:8080/site, I get what looks like a
plain-text version of the site, i.e. no styling at all (see attached
screenshot). There are no errors in the log.

I'm not sure if I'm misunderstanding how this is supposed to work. Am I
supposed to create a mobile skin from scratch?
This tutorial<http://blog.mfabrik.com/2011/04/11/tutorial-create-and-theme-mobile-plone-site-with-web-and-mobile/>and this
picture<Loading Image...>seems to suggest that a basic mobile skin should already be installed and
enabled.

What am I missing?

Here is my environment (I had to fight with buildout for a while to get a
version set that would succeffully build):
Plone 3.3.4
Python 2.4.6
Zope-2.10.11-final
mfabrik.webandmobile = 1.0.3
five.localsitemanager = 1.1
grokcore.formlib = 1.4
grokcore.view = 1.12.2
grokcore.viewlet = 1.3
python-dateutil = 1.5
collective.fastview = 0.2.2
five.grok = 1.0
grokcore.annotation = 1.1
grokcore.component = 1.9
grokcore.security = 1.2
grokcore.site = 1.1
martian = 0.11.2
plone.rfc822 = 1.0
httplib2 = 0.7.1
plone.behavior = 1.0.1
plone.postpublicationhook = 1.1
python-Levenshtein = 0.10.2
vobject = 0.8.1c

Also, I found that at first I was not able to quickinstall Go Mobile, as I
would get this error:
Traceback (innermost last):
Module ZPublisherEventsBackport.patch, line 77, in publish
Module ZPublisher.mapply, line 88, in mapply
Module Products.PDBDebugMode.runcall, line 70, in pdb_runcall
Module ZPublisher.Publish, line 42, in call_object
Module Products.CMFPlone.factory, line 88, in addPloneSite
Module Products.GenericSetup.tool, line 390, in
runAllImportStepsFromProfile
- __traceback_info__: profile-gomobile.mobile:default
Module Products.GenericSetup.tool, line 1179, in
_runImportStepsFromContext
Module Products.GenericSetup.tool, line 1090, in _doRunImportStep
- __traceback_info__: gomobile.mobile-setup
Module gomobile.mobile.setuphandlers, line 36, in importFinalSteps
AttributeError: mobile_properties
/Users/fulvio/.buildout/eggs/gomobile.mobile-1.0.1-py2.4.egg/gomobile/mobile/setuphandlers.py(36)importFinalSteps()
-> site.portal_properties.mobile_properties.image_resizer_secret =
str(random.randint(0, 999999999))

I got around this by first running the portal_properties import step for Go
Mobile in portal_setup. Not sure if this has anything to do with my issue.


Thanks for any insights!
Fulvio Casali
Web Collective
--
You received this message because you are subscribed to the Google Groups "gomobile-dev" group.
To view this discussion on the web visit https://groups.google.com/d/msg/gomobile-dev/-/ir_YN_-5DksJ.
To post to this group, send email to gomobile-dev-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
To unsubscribe from this group, send email to gomobile-dev+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit this group at http://groups.google.com/group/gomobile-dev?hl=en.
fulv
2011-06-25 00:04:28 UTC
Permalink
Figured out a couple of things:

1. What I posted earlier (screenshot attached to my first message) is
actually the mobile theme, except that none of the resources (images,
css, etc) could be loaded.
2. I managed to get a nice mobile skin, with all the theme elements,
by adding the following ZCML directives:

In gomobiletheme.basic.configure.zcml:

<browser:resourceDirectory
name="gomobiletheme.basic"
directory="static" />

In gomobile.mobile.configure.zcml:

<browser:resourceDirectory
name="gomobile.mobile"
directory="static" />

Not sure why these were missing.
f
Mikko Ohtamaa
2011-06-30 08:26:27 UTC
Permalink
  <browser:resourceDirectory
     name="gomobiletheme.basic"
     directory="static" />
   <browser:resourceDirectory
      name="gomobile.mobile"
      directory="static" />
This sounds like five.grok is not loading. five.grok should
automatically map those directories and they are not needed to put
into ZCML.
--
You received this message because you are subscribed to the Google Groups "gomobile-dev" group.
To post to this group, send email to gomobile-dev-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
To unsubscribe from this group, send email to gomobile-dev+***@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/gomobile-dev?hl=en.
perlion
2011-10-23 20:49:06 UTC
Permalink
Don't mean to hijack this thread but this closely resembles my problem. I
built a Plone 4.1 dev site , install webandmobile 1.06 along with creating a
custom theme according to the tutorial.
<http://webandmobile.mfabrik.com/docs/web-and-mobile/developer-manual/theming>The
problem I'm having is that my logo.png located in the newly created
'myproduct/static' folder is not rendering on a m.myurl.com site.

I intended to try this remedy but I don't understand this part of the
conversation and how to edit the configure.zcml. Can someone instruct me as
to how to proceed?

*2. I managed to get a nice mobile skin, with all the theme elements,
by adding the following ZCML directives:

In gomobiletheme.basic.configure.*
*zcml:

*I can get around in plone 3 fine but plone 4.1 is a little different and my
skills as a programmer aren't super.
--
You received this message because you are subscribed to the Google Groups "gomobile-dev" group.
To view this discussion on the web visit https://groups.google.com/d/msg/gomobile-dev/-/P19j_sz9F_4J.
To post to this group, send email to gomobile-dev-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
To unsubscribe from this group, send email to gomobile-dev+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit this group at http://groups.google.com/group/gomobile-dev?hl=en.
Mikko Ohtamaa
2011-10-23 22:27:47 UTC
Permalink
Post by perlion
rendering on a m.myurl.com site.
Can you be more specific how logo fails to render?

Can you go to error_log in Zope Management Interface, enable logging
for all exception types and check what kind of exception might be
related to the logo?
Post by perlion
I intended to try this remedy but I don't understand this part of the
conversation and how to edit the configure.zcml. Can someone instruct me as
to how to proceed?
I think if Web and Mobile works as indended you don't need to do this.
--
Mikko Ohtamaa
http://opensourcehacker.com
http://twitter.com/moo9000
perlion
2011-10-24 02:03:11 UTC
Permalink
The failure to display my logo was the problem when viewing the site
with the m. prefix.
I discovered that my logo.png was too tall. I rebuilt the image to
make it 800px x 100px and it renders fine.

I also had to change the configure.zcml file to read
directory="profiles/static" to point to the static file in my created
product "gomobiletheme.advair"

<!-- Register add-on installer entry in the control panel -->
<genericsetup:registerProfile
name="default"
title="gomobiletheme.advair"
directory="profiles/static"
description='advmob'
provides="Products.GenericSetup.interfaces.EXTENSION"
/>

Thanks Mikko for the quick response.

One other ? Is there a problem with collage in plone 4.1 ? Mine will
not display images in a page created in a collage.
Post by Mikko Ohtamaa
Post by perlion
rendering on a m.myurl.com site.
Can you be more specific how logo fails to render?
Can you go to error_log in Zope Management Interface, enable logging
for all exception types and check what kind of exception might be
related to the logo?
Post by perlion
I intended to try this remedy but I don't understand this part of the
conversation and how to edit the configure.zcml. Can someone instruct me as
to how to proceed?
I think if Web and Mobile works as indended you don't need to do this.
--
Mikko Ohtamaahttp://opensourcehacker.comhttp://twitter.com/moo9000
--
You received this message because you are subscribed to the Google Groups "gomobile-dev" group.
To post to this group, send email to gomobile-dev-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
To unsubscribe from this group, send email to gomobile-dev+***@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/gomobile-dev?hl=en.
Loading...