o name the class exactly after the name of the category
so that when the user selects a category that name is used to initialise
the instance of that class.
So is it possible to initialise an instance of a class given its name
from a variable?
thanks and
Happy hacking.
Krishnakant.
--
http://mail.
>
Can you explain the difference between getattr and var()?
> Cheers,
> Chris
>
happy hacking.
Krishnakant.
--
http://mail.python.org/mailman/listinfo/python-list
Tue, 2009-01-13 at 23:55 -0800, Chris Rebert wrote:
> On Tue, Jan 13, 2009 at 11:49 PM, Krishnakant wrote:
> > On Tue, 2009-01-13 at 21:51 -0800, Chris Rebert wrote:
> >> Assuming all the classes are in the same module as the main program:
> >>
> >> instance
ses mapped with the name?
happy hacking.
Krishnakant.
On Wed, 2009-01-14 at 07:50 +, Steven D'Aprano wrote:
> On Wed, 14 Jan 2009 11:16:58 +0530, Krishnakant wrote:
>
> > hello all,
> > I have a strange situation where I have to load initiate an instance of
> > a c
odules I would need at the top of the
main module.
then would use getattr(module,class_name) will that work?
or do I need to import in some other way?
happy hacking.
Krishnakant.
--
http://mail.python.org/mailman/listinfo/python-list
s from some global
variable which can be accessed and then looped through.
happy hacking.
Krishnakant.
> regards
> Steve
--
http://mail.python.org/mailman/listinfo/python-list
On Wed, 2009-01-14 at 00:39 -0800, Chris Rebert wrote:
> On Wed, Jan 14, 2009 at 12:36 AM, Krishnakant wrote:
> > On Wed, 2009-01-14 at 00:20 -0800, Chris Rebert wrote:
> >> Aside from Steven's excellent idea, to use the getattr() technique
> >> with your module sc
example I have classes to get and set vendor, product, bills etc.
now all this has to be accessed through the xml rpc service.
Can some one tell me how to manage the entire twisted package as a
service.
happy hacking.
Krishnakant.
--
http://mail.python.org/mailman/listinfo/python-list
hello all,
Has any one used python-ooolib to create open office spreadsheets?
I want to know the method of merging cells using the library's calc
class.
happy hacking.
Krishnakant.
--
http://mail.python.org/mailman/listinfo/python-list
hello
look at python-ooolib
it can do what ever is needed and more.
happy hacking.
Krishnakant.
On Sun, 2009-02-15 at 21:10 +0100, Tino Wildenhain wrote:
> Hi,
>
> Dotan Cohen wrote:
> > Is there a Python interface to ODF documents? I'm thinking of
> > something tha
ne know what is the way out of this?
how do you let the ' go as a part of the string?
I have used %s as placeholder as in
queryString = "insert into venders values ('%s,%s,%s" %
(field1,field2,field3 ) ...
This is not working for the ' values.
can any one sugge
l can get a lot
of utility out of the function.
This only becomes a problem when an ' comes in the value.
So I need help to fix the problem with the given context.
happy hacking.
Krishnakant.
On Mon, 2008-12-15 at 07:21 -0600, Lamonte Harris wrote:
> sorry about that
>
> queryString = &
nd yes one had an ' in it.
thanks again for all the help.
happy hacking.
Krishnakant.
On Mon, 2008-12-15 at 12:35 -0500, Steve Holden wrote:
> Lamonte Harris wrote:
> > I had this problem too. If you've upgraded to python 2.6 you need to
> > use the new sytnax "fo
that is one example.
So conclusion is is how you enhance your program by utilising the best
aspects of python.
happy hacking.
Krishnakant.
On Sun, 2008-12-21 at 16:33 +, MRAB wrote:
> Marc 'BlackJack' Rintsch wrote:
> > On Sat, 20 Dec 2008 14:18:40 -0800, cm_gui wrote:
> >
given
frameworks like twisted.
happy hacking.
Krishnakant.
On Mon, 2008-12-22 at 12:59 -0500, Tommy Grav wrote:
> On Dec 22, 2008, at 12:48 PM, walterbyrd wrote:
> >> Now since Python *is not* the only language on it's block, we have to
> >> compete with our main nemesis(Ruby) fo
looked at ooolib but did not find a method for merging cells.
any ideas?
happy hacking.
Krishnakant.
--
http://mail.python.org/mailman/listinfo/python-list
on this topic but seems there is no
such library in python.
Pritty strange that python can't do this much.
So please tell me if any one knows of a good solution for my problem
else I am forced to give up python for my task.
happy hacking/
Krishnakant.
--
http://mail.python.org/ma
l try and dig
that out ).
happy hacking.
Krishnakant.
--
http://mail.python.org/mailman/listinfo/python-list
I tryed searching for py2odf but did ont find any results.
>
> Whoops. odfpy at
> http://opendocumentfellowship.com/development/projects/odfpy
>
> but I strongly suspect you can do what you want with python-ooolib.
>
No buddy, I tryed with ooolib but now given up unless some one points
out what I am missing.
happy hacking.
Krishnakant.
--
http://mail.python.org/mailman/listinfo/python-list
d the documentation of odfpy pritty complex
and does not have the kind of example which shows what you explained in
the above code.
And the problem is that I got a bit confused in the above code because
my merging happens only in the top row and spanns columns not rows.
I would be very happy if I
g for py2odf but did ont find any results.
> >
> > Do you want me to continue on the previous thread (I will try and dig
> > that out ).
>
> Nah, just hijack a third thread :-)
>
Thanks for that suggestion, I am not that multi threaded *smile*.
I have fixt my mail problem
old library and no development happens on it.
happy hacking.
Krishnakant.
On Tue, 2009-03-10 at 23:44 +1100, John Machin wrote:
> On 10/03/2009 10:35 PM, Krishnakant wrote:
> >>> any ways thanks for your reply,
> >>> Right now I am stuck very badly.
> >>>
.
the cell has a p (paragraph ) element with the style of centered text
applied.
cells are merged
but no centering happens.
Please let me know if any one wanted me to send the code off the list.
Even better, if some one has a code snippid which can just do that.
happy hacking.
Krishnakant
ced to
download some thing they are not concerned about.
> (c) contacting the author/maintainer of the odfpy package
Done and awaiting the reply for last 4 days.
It was then that I came to this thread.
happy hacking.
Krishnakant.
--
http://mail.python.org/mailman/listinfo/python-list
r)))
tr.addElement(tc)
ods.save("ods-test.ods")
m = makeods()
m.make_ods()
Still the text in the cell is not centered.
happy hacking.
Krishnakant.
--
http://mail.python.org/mailman/listinfo/python-list
f any one would ever need this, please do
write to me.
Thanks to all again, specially David and John.
happy hacking.
Krishnakant.
--
http://mail.python.org/mailman/listinfo/python-list
n-psycopg2 is the most commonly used DBAPI implementations for
postgresql.
happy hacking.
Krishnakant.
--
http://mail.python.org/mailman/listinfo/python-list
s the solution?
happy hacking.
Krishnakant.
--
http://mail.python.org/mailman/listinfo/python-list
; Srini
>
Isn't that pritty simple and streight?
test suite is used when you want to combine the different test cases.
you can find more insight into this at
http://www.eecho.info/Echo/python/test-driven-development-in-python/
happy hacking.
Krishnakant
--
http://mail.python.org/mailman/listinfo/python-list
canner and input pictures from it.
>
Internationalisation is there in almost every language these days and
python is no exception.
happy hacking.
Krishnakant.
--
http://mail.python.org/mailman/listinfo/python-list
he professional organisations
alive so may be I will get a solution to my problem soon.
happy hacking.
Krishnakant.
--
http://mail.python.org/mailman/listinfo/python-list
sorry, but I was not replying to another thread.
My mistake.
happy hacking.
Krishnakant.
--
http://mail.python.org/mailman/listinfo/python-list
read.
sorry again.
I hope this becomes a new thread now and I get some productive reply.
happy hacking.
Krishnakant.
--
http://mail.python.org/mailman/listinfo/python-list
heavy load on them and do a lot of number
crunching and complex calculations.
happy hacking.
Krishnakant.
On Sun, 2009-04-19 at 18:11 +0200, Ryniek90 wrote:
> Hi.
>
> Standard Python interpreter's implementation is written in C language. C
> code while compilation, is compilled
can still install the package on that machine.
So will it be a good idea to let distutils do every thing I had
described about putting files in the place and having the script copyed
to /usr/bin etc?
happy hacking.
Krishnakant.
--
http://mail.python.org/mailman/listinfo/python-list
taken as
generalisations.
happy hacking.
Krishnakant.
--
http://mail.python.org/mailman/listinfo/python-list
paths for many such
locations ).
Now my question is, which the perfect place? I would like to know if I
write a distutils based setup.py for my application, then which is the
place which I should choose?
happy hacking.
Krishnakant.
--
http://mail.python.org/mailman/listinfo/python-list
o that an
import statement can import the package no matter what distro of
gnu/linux we are running.
happy hacking.
Krishnakant.
--
http://mail.python.org/mailman/listinfo/python-list
I will later on think of fedora etc.
happy hacking.
Krishnakant.
--
http://mail.python.org/mailman/listinfo/python-list
cult for me and would take a while to
understand.
It is a kind of wrapper around the xml structure of an odf document.
happy hacking.
Krishnakant.
> --deostroll
> --
> http://mail.python.org/mailman/listinfo/python-list
--
http://mail.python.org/mailman/listinfo/python-list
the VAT is
5% and this 5% is stored in float datatype. So after using both these
values the resulting total 105Rs. should be in money type and not float.
I awaite some reply,
Thanks in advice.
happy hacking.
Krishnakant.
--
http://mail.python.org/mailman/listinfo/python-list
tal 105Rs. should be in money type and not float.
> > I awaite some reply,
> > Thanks in advice.
> > happy hacking.
> > Krishnakant.
> >
> > --
> > http://mail.python.org/mailman/listinfo/python-list
--
http://mail.python.org/mailman/listinfo/python-list
be pritty sure about any module I am using.
happy hacking.
Krishnakant.
--
http://mail.python.org/mailman/listinfo/python-list
nd me some tutorial off
the list.
happy hacking.
Krishnakant.
--
http://mail.python.org/mailman/listinfo/python-list
because I feel easy install won't work with
python2.6
happy hacking.
Krishnakant.
--
http://mail.python.org/mailman/listinfo/python-list
p a seperate python2.5 in some different
directory and have ve use it.
would just like to know how I can get ve to use that installation and
not the one on my system by default.
happy hacking.
Krishnakant.
--
http://mail.python.org/mailman/listinfo/python-list
etc.
happy hacking.
Krishnakant.
On Mon, 2009-05-18 at 16:31 +0530, Kalyan Chakravarthy wrote:
> Hi All,
> I have data in Spread Sheet ( First Name and Last Name),
> how can i see this data in Python code ( how can i use Spread Sheet
> as Data Store ) .
>
> --
Through the python code,
chmod 400
happy hacking.
Krishnakant.
On Tue, 2009-05-19 at 12:21 +0530, shruti surve wrote:
> hey,
> i am using odfpy and generating spreadsheet in open office..but
> nobody should modify the file..so can anybody tell me how can we give
> permissions (r
ntly developing a major application and it is currently using
the twisted library for xmlrpc and there is a thin client in pygtk.
Right now we are in the process of moving it to turbogears2 and so far
performance on both the ends have been good.
happy hacking.
Krishnakant.
--
http://mail.python.org/mailman/listinfo/python-list
p requests and
responses. let that be taken care by the best tool (apache ) and let
your application handle how to manage the logic and send out views.
> 3. What about performance as compared to equivalent PHP/MySQL apps?
>
Performance is very good if you use the right tool in t
topic, but, I would really recommend you
to use pygtk instead of wx.
For one thing, the developers at pygtk are very active (they have their
mailing list as well ) and it comes by default with python on almost all
linux distros. You can also easily install it on windows.
Most important, the api for pygtk is closely similar to wx.
Not to mention the quick responses you will get with pygtk related
problems.
Happy hacking.
Krishnakant.
--
http://mail.python.org/mailman/listinfo/python-list
he extreme experts
who need the power and performance nicely balanced.
Great work!
happy hfacking.
Krishnakant.
--
http://mail.python.org/mailman/listinfo/python-list
On Sun, 2009-09-27 at 00:13 -0700, Nash wrote:
> Hello everyone,
> Salam Valicum.
I am Krishnakant from Mumbai India and in our country case was exactly
the same but now pritty different in just a matter of few years.
I have answered your queries inline with your questions so read on.
>
r ask
them which programming language they know and never take them on the
basis of how good they are in comparison to that language for my
projects (in python for example ).
> It's widely acknowledged that hiring good people is a (the?) crucial
> factor in the success of programming endeavors. "Good" programmers,
> almost by definition, will be able to handle learning python without
> problems.
+ the easy and power of python.
Happy hacking.
Krishnakant.
--
http://mail.python.org/mailman/listinfo/python-list
te level.
another good book is dive into python.
>
Mail me off the list if you want the soft book in compressed format.
Happy hacking.
Krishnakant.
--
http://mail.python.org/mailman/listinfo/python-list
fault
>
>
> can anyone kindly help me out
Ankita,
Do you get same result on many machines?
If you can send the code to me off list I would check it for you.
happy hacking.
Krishnakant.
--
http://mail.python.org/mailman/listinfo/python-list
e general idea on how to work with Python &
> RDBMS, which is nicely abstracted away from the actual database.
Python-pgsql is a much better choice when it comes to big applications,
specially if you are going to deal with xml-rpc. I have found that
python-pgsql handles integers and othe
Odfpy is a good module and is easy too.
http://kk.hipatia.net/public/gnukhata/gnukhata-client/ has a deb package
I built for ubuntu 9.04.
I can even provide you the distutils tarball off the list (because I
can't recall the url from I downloaded it, may be sourceforge ).
Happy hacking.
Krishnakant
--
http://mail.python.org/mailman/listinfo/python-list
e.
seek till to the point where u want to start copying and loop till the
end with readline function.
then write it to the destination file.
To find the starting point, keep looping through the content and come
out of that loop when you find a match to the word you are looking for.
happy hacki
ch line against your expected phrase and the moment
you find one, do the actions you need such as writing to a file.
happy hacking.
Krishnakant.
--
http://mail.python.org/mailman/listinfo/python-list
;t
know how to tell the script to change user.
happy hacking.
Krishnakant.
--
http://mail.python.org/mailman/listinfo/python-list
.
> You have another problem then: your password must be supplied unless the
> NOPASSWD flag is set in the sudoers file.
>
That is clear, the only problem is that I want the script to run as
postgres user although it was started by the user kk.
happy hacking.
Krishnakant.
--
http://mail.python.org/mailman/listinfo/python-list
my concern is, will the connection object in the child process
(subprocess) be available to the parrent process?
happy hacking.
Krishnakant.
--
http://mail.python.org/mailman/listinfo/python-list
?
Most of the documentation for deb or rpm will talk about make files.
But even a distutil based python package (with a setup.py) can be made
into a deb package.
Then the your requirement will be satisfied at least for most gnu/linux
based distros.
happy hacking.
Krishnakant.
--
http://mail.python.org/mailman/listinfo/python-list
hello,
I am a new member to this list.
I am Krishnakant from India, Mumbai.
I have been coding in python for quite some time and now I am at the
intermediate level of programming as far as python is concerned.
I am going to develop a accounting software that can work on the
console and accessed
critical project. may be I
will also use zope.
so I will like to know how far I can trust python for security in its
absolute (platform independent ) sence?
I mean running unwanted code at run-time etc.
thanks.
Krishnakant.
--
http://mail.python.org/mailman/listinfo/python-list
python?
or is it that I will have to use the wxpython library asuming that
there is a print dialog which can open up the list of printers?
if wx python and gui is the only way then it is ok but I will like to
keep this application on the ncurses side.
thanks.
Krishnakant.
--
http://mail.python.org
python or any other gui library that is having support
for MSAA built in.
thanking all.
Krishnakant.
--
http://mail.python.org/mailman/listinfo/python-list
rs under windows?
so in future if I make this software in GUI, I can at list help the
user select the printer from the list.
thanks,
Krishnakant.
--
http://mail.python.org/mailman/listinfo/python-list
ed to download it.
I tried to search but did not find it.
what is the url for this module and does it also have documentation.
thanking you.
Krishnakant.
--
http://mail.python.org/mailman/listinfo/python-list
or.
5. if I am supposed to also distrubute qt with PYQT, how do I plan
the deployment of my ready software?
thanking all.
Krishnakant.
--
http://mail.python.org/mailman/listinfo/python-list
me right now. can you please give me any
links possible for having a binary qt installer that will also install
dlls required by PYQT?
and how will I be able to determine what dll files and what other
components I will need to ship with my installer?
thanks.
Krishnakant.
--
http://mail.python.org/mailman/listinfo/python-list
great but I don't want to use glade.
I will like a simple ide where I can do hand coding.
I am going to try python with eclipse.
thanks,
Krishnakant.
--
http://mail.python.org/mailman/listinfo/python-list
hope to at least get a "yes
" or "no " answer on whether py gtk is accessible with windows.
thanks.
Krishnakant.
--
http://mail.python.org/mailman/listinfo/python-list
urn
key as it always does?
Krishnakant.
--
http://mail.python.org/mailman/listinfo/python-list
an a good python
programmer, but I can't find the link between the two.
there are modules but no good documentation.
krishnakant.
--
http://mail.python.org/mailman/listinfo/python-list
s to 4 even when I
entered tom. that's why it always goes in the else claws.
but when I ran the same script from a command promt the length of name
returned 3 when tom was entered and the code worked fine.
I can't understand why is this happening? why is eclipse putting an
extra charac
hello,
I have been trying out urwid for creating ncurses based applications.
I will like to know if any one has ever tried to create menu bar with
drop down menus using urwid?
any suggestion?
Krishnakant.
--
http://mail.python.org/mailman/listinfo/python-list
st at that.
please give me some advice.
thanking all.
Krishnakant.
--
http://mail.python.org/mailman/listinfo/python-list
ncive api references for events and other methods, properties and
attributes.
can some one point me to a .zip or .tar.gz version of the api docs for wxpython?
thanking all.
Krishnakant.
--
http://mail.python.org/mailman/listinfo/python-list
ng such a beautiful
library as a wrapp around the c++ equivalent, it is rather unjustified
to look at the c++ version of documentation isn't it?
so if there is a api reference similar to the one available on-line,
please provide the url for the same.
thanking all.
Krishnakant.
--
http://mail.pyth
rence and all the docs for wx widgets. but what is
the point in first studying the c++ version and then translating the
same back to python when a library is already been translated and
there to be used?
Krishnakant.
--
http://mail.python.org/mailman/listinfo/python-list
hi pol,
thanks for your helpful suggestion.
I tried it but nothing seams to work.
I can't get the folder containing html files as you suggested.
can you kindly attach a .zip archive of your generated folder as a
privat email to me?
I will be really thankful.
Krishnakant.
--
http://mail.pytho
how want to
convert it back to actual date in the same dd/mm/ format and send
this as a value to my date time picker.
how can I achieve this?
thanking all.
Krishnakant.
--
http://mail.python.org/mailman/listinfo/python-list
m getting is "y! even java can do this and
java is much faster!"
I am really adicted to python due to its superiority and efficiency
and the amount of libraries.
but I need some strong official efidence.
Please help me, I don't want to leave python.
Krishnakant.
--
http://mail.pyth
ed
> by space, comma, -, :, or /
>
the format in the text field is dd/mm/ which is perfect for what I need.
but the problem as I said is to get this text into a value that can
fit into a date time picker.
can this be done?
Krishnakant.
--
http://mail.python.org/mailman/listinfo/python-list
is there a soft copy of wxpython in action available for free download?
I saw the book on my book store but since I am totally blind, I have
to depend on soft copies.
Krishnakant.
--
http://mail.python.org/mailman/listinfo/python-list
libraries as huge as wxpython etc.
thanking all.
Krishnakant.
--
http://mail.python.org/mailman/listinfo/python-list
use of outlook or any thing
to do my work.
I know the python libraries are there but I want to know what these
libraries will make use of on my windows machine.
Krishnakant.
--
http://mail.python.org/mailman/listinfo/python-list
ender, arrRecipients,
> mssg.as_string())
>
> if smtpresult:
> errstr = ""
> for recip in smtpresult.keys():
> errstr = """Could not delivery mail to: %s
>
> Server said: %s
> %s
>
> %s"""
me package I can't
figure how python figures it out?
I want every thing in a single package.
so that's my confusion.
thanks.
Krishnakant.
--
http://mail.python.org/mailman/listinfo/python-list
and
receave data through that socket to the thin client and put the actual
business logic on a seperate machine or on the database server what
ever.
thanking all.
Krishnakant.
--
http://mail.python.org/mailman/listinfo/python-list
mainwindow.
kindly help.
regards,
Krishnakant.
--
http://mail.python.org/mailman/listinfo/python-list
experiences with installing and running pygtk on windos?
any links for downloading proper packages will be highly appreciated.
regards,
Krishnakant.
--
http://mail.python.org/mailman/listinfo/python-list
there should be ways of storing a pickled
object other than file.
Please guide me on this issue.
regards.
Krishnakant.
--
http://mail.python.org/mailman/listinfo/python-list
can some one
suggest how to work around this problem?
regards,
Krishnakant.
--
http://mail.python.org/mailman/listinfo/python-list
uch reference to storing pickled objects in the API.
any Idea what could be done with the mysql python module I am using?
regards,
Krishnakant.
--
http://mail.python.org/mailman/listinfo/python-list
hello,
finally the errors for my sql query have changed so I have even
changed the thread subject because I feel now that this is not doable
in mysql and this seams to be a bug, ither in python or the MySQLdb
module or perhaps both.
my table is called testobj and the blob field is called obj.
now f
.
and seams that PyGreSql is non-free?
please suggest a suitable driver. by the way I will also be using
bynary large objects.
so that support must be included.
regards,
Krishnakant.
--
http://mail.python.org/mailman/listinfo/python-list
ich I can convert a given
string to a date object.
for example if I have a string "29/09/2005", I know it is a valid date
although it is in a string form.
now I want to convert the above string into a real date object.
how can I cast it this way?
regards,
Krishnakant.
--
http://mail.pyt
1 - 100 of 134 matches
Mail list logo