i found this thread discussion(snippet atttached)

http://pylonshq.com/project/pylonshq/query?status=closed&group=resolution&component=Other&order=version&milestone=0.9.7&row=description

if I comment out the webhelper.rails.asset_tag line, subsequuent line
fails as it references the javascript.

Please help !!!!!!!!!!!!!!!!!!!!!!!!!!

class StaticJavascripts(object):
    """Middleware for intercepting requests for WebHelpers' included
    javascript files.

    Triggered when PATH_INFO begins with '/javascripts/'.

    """
    def __init__(self, **kwargs):
        from webhelpers.rails.asset_tag import javascript_path
        self.javascripts_app = \
            StaticURLParser(os.path.dirname(javascript_path),
**kwargs)
..........

*****************
Pylons imports the deprecated Rails helpers in several places, which
raises a DeprecationWarning? with WebHelpers 0.6.1. It also makes it
difficult for users to distinguish whether their own applications use
the rails helpers, since the warning appears only once at first
occurrance.
$ grep -r rails ~/hg/Pylons|grep import
/home/mso/hg/Pylons/pylons/decorators/secure.py:from webhelpers.rails
import secure_form_tag
/home/mso/hg/Pylons/pylons/middleware.py:from
webhelpers.rails.asset_tag import javascript_path
/home/mso/hg/Pylons/build/lib/pylons/decorators/secure.py:from
webhelpers.rails import secure_form_tag
/home/mso/hg/Pylons/build/lib/pylons/middleware.py:from
webhelpers.rails.asset_tag import javascript_path
/home/mso/hg/Pylons/build/lib/tests/test_units/
test_decorator_authenticate_form.py:from webhelpers.rails import
secure_form_tag
/home/mso/hg/Pylons/tests/test_units/
test_decorator_authenticate_form.py:from webhelpers.rails import
secure_form_tag
/home/mso/hg/Pylons/tests/test_webapps/filestotest/
helpers_sample.py:from webhelpers.rails import *
The Javascript cascade can be removed from the application template,
since that doesn't affect existing applications.
The tests can be disabled or disguised so that a standard 'nosetests'
won't run them. Although test code doesn't affect user applications,
so maybe it can stay as is for a while.
webhelpers.rails.secure_form_tag() has been replaced by
webhelpers.html.secure_form.secure_form(). The Pylons decorator could
be moved into that module or into webhelpers.pylons.

**************************

On Oct 3, 9:05 pm, kumar <[email protected]> wrote:
> Hi All,
>
> I am working on my pylons for last one year and suddenly today when I
> run the server I am getting this error.
>
> -bash-3.2$ paster serve --reload development.ini
> Starting subprocess with file monitor
> /home/myapp/myapp/config/middleware.py:71: DeprecationWarning: The
> 'error_template' errorware argument for customizing EvalException is
> deprecated, please remove it. To customize EvalException's HTML, setup
> your own EvalException and ErrorMiddlewares instead of using
> ErrorHandler.
>   **config['pylons.errorware'])
> /usr/lib/python2.5/site-packages/Pylons-0.9.7rc4-py2.5.egg/pylons/
> middleware.py:98: DeprecationWarning: The webhelpers.rails package is
> deprecated.
> - Please begin migrating to the new helpers in webhelpers.html,
>   webhelpers.text, webhelpers.number, etc.
> - Import url_for() directly from routes, and redirect_to() from
>   pylons.controllers.util (if using Pylons) or from routes.
> - All Javascript support has been deprecated.  You can write
> link_to_remote()
>   yourself or use one of the third-party Javascript libraries.
>   from webhelpers.rails.asset_tag import javascript_path
>
> I didn't do any upgrade of pylons by myself.
>
> Can anyone please help me how I can proceed.
>
> Thanks
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to