List Info

Thread: Re: kernel 2.6.20-9 doesn't boot with sata-hd




Re: kernel 2.6.20-9 doesn't boot with sata-hd
country flaguser name
United Kingdom
2007-03-09 13:40:25
I've just compiled the 2.6.19-7 kernel using the standard
Herd5 kernel
.config file. Booted without problems, I'll attach the dmesg
and lspci
output.

** Attachment added: "dmesg-2.6.19-7.log"
   http://librarian.launchpad.net/6720947/dmesg-2.6.19-7.l
og

-- 
kernel 2.6.20-9 doesn't boot with sata-hd
https://launchpad.ne
t/bugs/78288

-- 
ubuntu-bugs mailing list
ubuntu-bugslists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Re: Initializing a Tool with config variables?
country flaguser name
United States
2007-03-09 14:29:25
Bill Mill wrote:
> Hmmm... I guess I thought there was going to be a
better way to do
> this. This solution just strikes me as functional but
messy. Shouldn't
> instantiation code go inside the __init__?
> 
> In the interim, I've thrown together some code. Is
there any reason
> not to do this:
> 
> class Buffet(Tool):
>   def __init__(self, customizable_arg):
>     self.o = Create_Once(customizable_arg)
>     self._point = "before_finalize"
>     self.callable = do_something()
> 
>   def do_something(self): self.o.pull_trigger()
> 
> class Root(object):
>   def __init__(self):
>     cherrypy.tools.buffet = Buffet('cheetah')
>     cherrypy.config.update({'tools.buffet.on': True})
> 
> quickstart(Root(), ...)

No reason at all. My hope was that Tools would allow this
style, too. 

I would recommend two changes, though:

 1. "self.callable = do_something()" -- I assume
you mean
    "self.callable = self.do_something" ?

 2. I'd write the Root class this way:

    class Root(object):
    
      _cp_config = {'tools.buffet.on': True}
    
      def __init__(self):
        cherrypy.tools.buffet = Buffet('cheetah')

    ...which turns on the tool in the application scope
    instead of the site-wide global scope.


Robert Brewer
System Architect
Amor Ministries
fumanchuamor.org

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "cherrypy-users" group.
To post to this group, send email to cherrypy-usersgooglegroups.com
To unsubscribe from this group, send email to
cherrypy-users-unsubscribegooglegroups.com
For more options, visit this group at h
ttp://groups.google.com/group/cherrypy-users?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: Initializing a Tool with config variables?
country flaguser name
United States
2007-03-09 15:57:57
>
>  1. "self.callable = do_something()" -- I
assume you mean
>     "self.callable = self.do_something" ?

Yup, I was writing from memory, the actual code is self.

>
>  2. I'd write the Root class this way:
>
>     class Root(object):
>
>       _cp_config = {'tools.buffet.on': True}
>
>       def __init__(self):
>         cherrypy.tools.buffet = Buffet('cheetah')
>
>     ...which turns on the tool in the application
scope
>     instead of the site-wide global scope.

This seems to make sense. Is there any better documentation
of
_cp_config on the wiki than there is at http://cherrypy
.org/wiki/UpgradeTo30?

-Bill Mill
bill.mill at gmail.com


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "cherrypy-users" group.
To post to this group, send email to cherrypy-usersgooglegroups.com
To unsubscribe from this group, send email to
cherrypy-users-unsubscribegooglegroups.com
For more options, visit this group at h
ttp://groups.google.com/group/cherrypy-users?hl=en
-~----------~----~----~----~------~----~------~--~---


[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )