@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19



Comments:

<0> Can compiled Jython programs be run using the JavaVM?
<0> Nvm found the answer
<1> hi -- im trying to use cheetah, specifically something similar to: #for $author in $authors
<1> $author.person.fullName
<1> #end for
<1> can someone verify that $authors is a list
<1> and that for loop will ***ign each element of that list..
<1> to $author
<2> $authors can be anything iterable, like a list
<2> $author.person will try both to use . and ['person']
<1> is person a variable or a function?
<1> cause i have a list of a homemade cl*** with a variable person in it and when i run this i get an 'unable to find person when searching for authors.person'
<2> that sounds like you are using $authors.person somewhere.
<1> actually sorry the error is cannont find person when searching for author.person
<1> i have to run ill be back later thanks for the help
<3> hi



<3> im having a problem
<3> im writing a program
<4> Hi, has anyone gotten ipython to work as an external tool in Eclipse?
<4> I can bring up a standard interactive python shell just fine and it works but ipython doesn't.
<3> and i want that when i update a value on a table B, it udates the A.counter value, adding the new value of B.value and resting the old value of B.value
<3> i have read about pre_save and post_save
<5> whats a one-liner to create a union of two lists a, b?
<3> but i don't undestand how i make that the program read the old and the new values
<6> how can I prototype a function that accepts a variable amount of arguements?
<5> that would be a + b
<5> in case anybody cares
<6> as in def test(x1....xN) ... how can you represent that...many options as possbile
<7> brady: a = set((1,2,3));b = set((2,3,4,5)); a.union(b)
<7> (with 2.4)
<8> indigoblu: def test(*args)
<9> I have a system that says it cannot find datetime but I looked on another system where it works and there isn't a datetime.py there either where is it coming from?
<10> im working on an app that is similar to old dbase style apps, where the screens are stored within the db itself, anyone know of any prior python app that will allow me to call up those screen from within something like pygtk?
<10> i basically need some way to dynamically load the app from the db, since it is constantly updated and cant have it be a client side application
<6> luc***, thanks, although i just found my issue is more to deal with working in mod_python
<11> hey guys
<11> i'm getting a weird error with tuples
<11> i think i don't quite understand the syntax yet
<11> r=db.use_result()
<11> test = r.fetch_row()
<11> itemnumber, prodcat = test
<11> getting error: ValueError: need more than 1 value to unpack
<11> print test returns: (('RC-100', 'RRC'),)
<12> the tuple is inside a tuple
<12> you should use itemnumber, prodcat = test[0]
<11> ahhh
<11> i take it r.fetch_row()[0] would work too!?
<13> yep
<13> so
<13> itemnumber, prodcat = test[0]
<13> SimAtWork: okay?
<11> yes
<11> that's great
<11> thanks
<13> (;
<11> is there a document all about tuples?
<14> I have a question about Python in Xchat...
<14> I am trying to connect to a Newserver, which it does...
<11> i found a very verysmall snippet on the python website, but it's not enough.
<14> Then I want to connect to a channel.. BUT...
<15> you can use python in xchat?
<14> It is not waiting long enough to know the server is ready, what can I do?
<11> inhahe: xchat supporst python perl and something else.
<14> Of couse. Python 2.3.5 and 2.4.2 can be used in Xchat2
<15> hook the function that's called when it connects
<11> how doyou get the number of records in a tuple?
<15> if it has one
<15> len()
<14> what inahe... please elaborate more.
<7> my xchat says something about "Python scipting interface" :)
<11> inhahe: how do you check for 0 size? if iuse len(r) on an emptry recordset it fails.
<14> When can the script realize it is safe to issue commands to the server?
<15> well in my twisted bot i override connectionMade(self) and join channels in that routine
<15> oh wait, not that routine
<15> i override the signedOn(self) routine and join channels there
<15> if you cant do that, maybe there is some variable that isnt set until it connects that you can check for?
<15> SimAtWork: len() should return 0 for any list, tuple, set, etc that's 0 length



<16> hi all, how i get the current date in this format: (2006, 02,16)?
<11> inhahe, hrm, this is what i'm getting. TypeError: len() of unsized object
<11> r=db.store_result()
<11> print len(r)
<11> that's what's causing the error. the query i am running is definately returning no data.
<15> i dont know that kind of interface, in the python db api 2 specification it should be more like r = cursor.fetchall()
<15> well i dont konw what store_result() is actually ;p
<15> maybe you want cursor.rowcount.. except youre not doing it with the cursor.. so i dont know
<11> store_result takes the contents of the entire query.
<15> it's supposed to retrieve the results of a 'select' query?
<11> yup
<11> mysql specific
<11> maybe this db specification is whati need
<15> yeah
<11> where can i find this
<15> http://www.python.org/peps/pep-0249.html
<11> i wanted to use sqlobject, buti have to work with an existing database that has primary keys that are not just auto_incrementing so it is very unhappy
<15> oh, i dont know sqlobject
<11> inhahe: thanks!
<11> aparanlty the documentation i was reading was really awful :)
<11> http://sourceforge.net/docman/display_doc.php?docid=26238&group_id=22307#mysqldb
<6> i think im in love with mod_python.servlets :-) :-) :-)
<17> hi. how do get the value out of a 0-dimensional array (e.g. array(255, 'b')
<17> )
<18> do you mean 1-dimensional, nomeata?
<17> benji: no, zero-dimensional. only one value, no "real" arrays
<18> ahh!
<18> no idea :)
<17> benji: print x.shape gives ()
<15> that documentation says there are no cursors in mysql, but i could swear i used them in mysql before
<15> i did
<11> i think the documentation i found was the result of bad karma caused by burning fossil fuels to get to work today
<19> hi all. I dont get metacl***es. not just the python ones, but the concept in general. Does anyone know of a good introduction to them, preferrably using python, with nice simple contrived use examples? (i know its a tall order, but i figured someone might know one off the top of thier head)
<3> hi
<3> i have a little problem
<3> i using this if sentence
<3> if (boletas.get_object(id__exact=self.id)):
<3> to determine is boletas.get_object(id__exact=self.id) exist or don't
<3> but if it doesn't exist, my program crashes
<20> i'm looking for a python program to layout a set of static webpages - are there a few toolkits/packages that are more often used than others?
<21> boletas.get_object(id__exact=self.id) is going to return a value. Are you expecting it to be true/false?
<19> secureboot, i like kid: http://kid.lesscode.org it has tools to generate static pages from templates.
<22> Can anyone test out my PyCon map app, let me know any issues you encounter, etc: http://72.36.191.190:8000/maps/
<23> bretth, semms to work in Opera
<22> Loevborg: Thanks ;)
<22> Loevborg: Try adding a profile (fake email or whatever) if you can.
<22> Loevborg: With some tags and all that
<23> bretth, the tags stuff didn't really work
<22> Loevborg: In what sense?
<23> bretth, but ajax autocompletion usually doesn't in opera
<24> hello
<24> --> http://deadbeefbabe.org/paste/2920/0
<24> it returns "manquant" even if the file is present
<24> (manquant = missing)
<24> why ?
<23> adii, dude
<23> adii, the % operator should point to the string, not the open() method
<3> CardinalFang: yes, im expecting it to be true/false
<24> you mean, line 5 ?
<24> (actually i don't get you at all :/ )
<24> (url is usually "/home/someone" )
<3> but if it doesn't exist, my program crashes
<3> to determine is boletas.get_object(id__exact=self.id) exist or don't
<23> adii," a = open("%s/%s","r") % (url,i)" -- ca n'a pas de sense
<24> pourquoi pas ?
<24> c'est dans la structure de open que a n'a pas de sens ?
<25> please use English in this channel.
<23> adii, you don't understand how the "%" operator works
<24> this is advanced english :p
<24> Loevborg, i'll get a lesson , and come back next
<25> nxvl: well, 'boletas.get_object(id__exact=self.id)' is a functioncall. How can it 'not exist'? Perhaps you want to check whether boletas.get_object exists?
<25> nxvl: you can do that using 'if hasattr(boletas, "get_object")'
<23> adii, just use: open("%s/%s" % (url,i),"r")


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #python
or
Go to some related logs:

#oe
#suse
benjv.free.fr
python socket select.select tutorial
stuck in 640x800 resolution ubuntu
export outlook settings to evolution
suse kotd difference
cant next outside a loop block perl
NatureTM irc
#bash



Home  |  disclaimer  |  contact  |  submit quotes