Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Legacy Pylons App Migration Questions ( 0.9.7 -> 0.1.0 / 1.x )
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Jonathan Vanasco  
View profile  
 More options Oct 13 2012, 4:40 pm
From: Jonathan Vanasco <jonat...@findmeon.com>
Date: Sat, 13 Oct 2012 13:40:41 -0700 (PDT)
Local: Sat, Oct 13 2012 4:40 pm
Subject: Legacy Pylons App Migration Questions ( 0.9.7 -> 0.1.0 / 1.x )

I'm migrating an old Pylons app to 1.0 ( eventually to Pyramid )

I've never migrated from .9.7 to 1.x before.  I've used 1.x, but this
migration is confusing me a bit.

I've run into a few issues I'm hoping someone before me found/solved :

1. I had a lot of misc functions access the pylons.config variable .  i've
migrated most to use the explicit pass-around, but I haven't been able to
do that to all of them.  are there any good ways to access it when:

    a - in a request
    b - not in a request ( ie, class definition )

2. Pages don't render on 0.1.0  TypeError: No object (name: buffet) has
been registered for this thread

 Module beaker.cache:65 in get         view

>>  return self._get_value(key, **kw).get_value()

Module beaker.container:263 in get_value         view
>>  v = self.createfunc()

Module myapp.controllers.splash:33 in _index         view
>>  return render('/splash.mako')

Module pylons.templating:662 in render         view
>>  return pylons.buffet.render(template_name=template, fragment=fragment,

Module paste.registry:137 in __getattr__         view
>>  return getattr(self._current_obj(), attr)

Module pylons.legacy:166 in _current_obj         view
>>  return StackedObjectProxy._current_obj(self, *args, **kwargs)

Module paste.registry:194 in _current_obj         view
>>  'thread' % self.____name__)

TypeError: No object (name: buffet) has been registered for this thread

3. before i tried to migrate things under 0.1.0, i ran it under 1.0 -- and
i got a bunch of errors about "from pylons import c" not being valid
anymore.  is this expected?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jonathan Vanasco  
View profile  
 More options Oct 13 2012, 7:20 pm
From: Jonathan Vanasco <jonat...@findmeon.com>
Date: Sat, 13 Oct 2012 16:20:51 -0700 (PDT)
Local: Sat, Oct 13 2012 7:20 pm
Subject: Re: Legacy Pylons App Migration Questions ( 0.9.7 -> 0.1.0 / 1.x )
well i solved the render issue...

in lib.base.py

bad:
    from pylons.templating import render

good:
    from pylons.templating import render_mako as render

which wasn't covered in the docs.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mike Orr  
View profile  
 More options Oct 14 2012, 1:38 pm
From: Mike Orr <sluggos...@gmail.com>
Date: Sun, 14 Oct 2012 10:38:01 -0700
Local: Sun, Oct 14 2012 1:38 pm
Subject: Re: Legacy Pylons App Migration Questions ( 0.9.7 -> 0.1.0 / 1.x )

from pylons import tmpl_context as c

The name 'c' was deprecated at some point, and removed in 1.0. It was
decided that self-explanatory names were better than sticking to the
Myghty one-letter names.

Glad you got your template issue solved. I thought that was documented
somewhere, but it's been so long since 1.0 came out that I've
forgotten where.

Also see the "Pylons application maintenance" message I'm about to write.

--
Mike Orr <sluggos...@gmail.com>


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jonathan Vanasco  
View profile  
 More options Oct 15 2012, 11:40 am
From: Jonathan Vanasco <jonat...@findmeon.com>
Date: Mon, 15 Oct 2012 08:40:17 -0700 (PDT)
Local: Mon, Oct 15 2012 11:40 am
Subject: Re: Legacy Pylons App Migration Questions ( 0.9.7 -> 0.1.0 / 1.x )
thanks mike!

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »