Am 30.06.2010 um 20:30 schrieb Gabriel Piassetta:
> Hello,
>
> My rum is not working very well
>
> I get some random errors
>
> TinyMCE editor sometimes appear,
Does sometimes refer to the same installation, and different browsers?
Otherwise, TinyMCE is an optional package not required
and must be installed explicitly
easy tw.tinymce
> sometimes no
> Javascript console sometimes shows Calendar is not defined
> sometimes shows Dojo is not defined
>
> sometimes the edit button appears, somtimes no
Please make sure, that you have the latest version of RUM and
tw.rum installed. Using an outdated version of tw.rum might cause such effects.
>
> And rum is incredibly slow
Does it appear to be slow overall or at specific requests.
I do not know of any bottlenecks in the recent versions.
So either you might be using an outdated version or
you are experiencing some very specific bottleneck, I do not know of.
In this case I would like to have more information.
> Javascript error
> Calendar is not defined
> Calendar.setup=function(params){funct...ition[1]);return
> false;};return cal;};
We base our Calendar widget on one of tw.forms.
Can you see if all js-files are loaded in particular these:
from tw.rum import widgets
widgets.RumCalendarDatePicker.javascript
Out[6]:
[JSLink(None, children=[], **{'modname': 'tw.forms', 'filename': 'static/calendar/calendar.js'}),
JSLink(None, children=[], **{'modname': 'tw.forms', 'javascript': [JSLink(None, children=[], **{'modname': 'tw.forms', 'filename': 'static/calendar/calendar.js'})], 'filename': 'static/calendar/calendar-setup.js'})]
If there is something wrong with these js-files, then it might be appropriate to report it in
http://groups.google.com/group/toscawidgets-discuss
Since there are so many problems, I recommend
to use a new clean virtualenv
and begin with
easy_install rum tw.rum RumAlchemy tw.tinymce
Then check your versions against:
http://pypi.python.org/pypi/rum/
http://pypi.python.org/pypi/tw.rum/
http://pypi.python.org/pypi/RumAlchemy
http://pypi.python.org/pypi/tw.forms
Cheers,
Michael
> calendar-setup.js (line 21)
> Calendar is not defined
> Calendar._DN = new Array
> calendar-en.js (line 13)
> Calendar is not defined
> Calendar.setup({"ifFormat": "%Y-%m-%d"...alse, "inputField":
> "rum18_created"})
>
> Apache errors
> [Wed Jun 30 15:03:20 2010] [error] /usr/local/lib/python2.6/dist-
> packages/WebOb-0.9.8-py2.6.egg/webob/request.py:55:
> DeprecationWarning: The class attribute charset is deprecated; use
> default_charset instead
> [Wed Jun 30 15:03:20 2010] [error] DeprecationWarning)
> [Wed Jun 30 15:03:22 2010] [error] No handlers could be found for
> logger "egg_translations"
> [Wed Jun 30 15:03:40 2010] [error] Exception KeyError:
> KeyError(-1218808064,) in <module 'threading' from '/usr/lib/python2.6/
> threading.pyc'> ignored
>
>
> I realy like RUM interface, but i cant use it in a production
> environment
>
> :(
>
> --
> You received this message because you are subscribed to the Google Groups "rum-discuss" group.
> To post to this group, send email to rum-d...@googlegroups.com.
> To unsubscribe from this group, send email to rum-discuss...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/rum-discuss?hl=en.
-------------------------------------------
Michael Brickenstein
Mathematisches Forschungsinstitut Oberwolfach gGmbH
Schwarzwaldstr. 9 - 11
77709 Oberwolfach
Tel.: 07834/979-31
Fax: 07834/979-38
python app.py --dburl mysql://pathEverthing works very well and rum works very fast!
Thanks for your email. Finally I understand, that it is some sort of deployment problem.
Am 01.07.2010 um 16:31 schrieb Gabriel Piassetta:
> All the packages are the last version
>
> When i say sometimes is Calendar does not appear, F5, now is appear, F5 again, dont, yes, no yes... its very strange
>
F5, does reloading? Maybe you can use firebug, to investigate, what JS files are actually loaded.
Somehow, I suspect, it has to do with the mentioned performance problems.
> tw.tinymce is installed, but equal, sometimes appear sometimes dont.
>
>
>
> With the server
> python app.py --dburl mysql://path
> Everthing works very well and rum works very fast!
>
> but in apache its very slow in any request.
>
How, did you deploy RUM in apache?
Usually, I do some proxy set up (personally I use nginx).
I recommend very strongly to you making
sure, to serve all these js, css and img resources statically by apache directly
(there are good examples in the Pylons
documentation).
Could you try that out please? Personally I have underestimated for a long
time, how much speed can be eaten by those many small requests (in particular, as the
toscawidgets middleware prevents caching, at least by default).
Cheers,
Michael