; releases, like creating an egg for each
release? Assuming the code is closed-source and should be kept secure.
Just wondering how you people deal with that.
Thanks
Ksenia
--
http://mail.python.org/mailman/listinfo/python-list
Sorry for the late reply... better too late than never :)
Thanks to all for the tips. Stripogram is the winner, since it is the
most configurable and accept line-length parameter, which is handy for
email...
Ksenia.
On 7/19/06, Laurent Rahuel <[EMAIL PROTECTED]> wrote:
> Hi,
&g
?
Thanks!
Ksenia.
--
http://mail.python.org/mailman/listinfo/python-list
a new (2.4) version, without upgrading?
Or am I missing something and the things are much easier? I am not a
FreeBSD guru and it's my first python upgrade... thanks!
--
Ksenia
--
http://mail.python.org/mailman/listinfo/python-list
be a useful addition for more complex
situations that may come.
--
Ksenia
--
http://mail.python.org/mailman/listinfo/python-list
18 Sep 2005 09:11:51 -0700, Alex <[EMAIL PROTECTED]>:
> Rossum's tutorial on Python states:
it's "Van Rossum's" :)
"van" in a part of the last name, you can't just cut it away in Dutch :)
--
Ksenia
--
http://mail.python.org/mailman/listinfo/python-list
y. It sounds like I have the whole Python
available in Postgres. That means big parts of application logic can
be moved to stored procedures, and dummy SQL layer becomes something
else... sounds scary. Any opinions on this?
Thanks.
--
Ksenia
--
http://mail.python.org/mailman/listinfo/python-list
2005/9/9, Peter Otten <[EMAIL PROTECTED]>:
> Ksenia Marasanova wrote:
>
> > class BasemethodMeta(type):
> > def__new__(cls,class_name,bases,new_attrs):
> > cls=type.__new__(cls,class_name,bases,new_attrs)
> > new_attrs['__me
2005/9/9, Ksenia Marasanova <[EMAIL PROTECTED]>:
> class BasemethodMeta(type):
> def __new__(cls, class_name, bases, new_attrs):
> cls = type.__new__(cls, class_name, bases, new_attrs)
> new_attrs['__metaclass__'].cls = cls
> return
class... Creating dictionary and putting
all classes in it doesn't make much sense either, because
BasemethodMeta still doesn't know what is the current class that is
being called... (right?)
Now I am stuck. Can anybody show me the light?
Appreciate any help,
--
Ksenia
--
http://mail.python.org/mailman/listinfo/python-list
omething that does it
partially and was created by another person with different views and
philosophy.
--
Ksenia
--
http://mail.python.org/mailman/listinfo/python-list
> return [(node.id, node.ord_number) for node in self.get_path()]
I meant:
> return [(node.ord_number, node.id) for node in self.get_path()]
--
Ksenia
--
http://mail.python.org/mailman/listinfo/python-list
ame* *sort*.
Rrr.. of course, you're right! Thanks.
Your code works great, I only made one slightly change:
def get_key(self):
return [(node.id, node.ord_number) for node in self.get_path()]
Because of errors in my tree some siblings has the same ord_number.
--
Ksenia
--
spam','/test/', order=1, pid=1000, id=400)
]
print "++++++ BEFORE SORTING +"
for item in list:
print item
list.sort(mycmp)
print "++ AFTER SORTING +"
for item in list:
print item
~
--
Ksenia
--
http://mail.python.org/mailman/listinfo/python-list
h.
Thank you for help :)
It doesn't work yet. The id's are not sequentional, so it fails when
id of the child is lower than id of the parent.
If I change the last line in mycmp from
return cmp(x.pid,y.pid)
to
return cmp(x.url,y.url) # almost the same cmp function I use
than
uot;. But there seems to be no
native string function in Postgres to do it easily, so I desided to
sort it in Python.
So I've come up with this:
def cmp_tree(x, y):
if x['parent_id'] == y['parent_id']:
return cmp(x['ord_number'], y['ord_num
12 Jun 2005 08:12:14 -0700, Michele Simionato <[EMAIL PROTECTED]>:
> What about doing it yourself?
>
> >>> import inspect, os
> >>> print "%s" % inspect.getsource(os.makedirs)
That's easy, thanks! I guess I'll submit a patch for Epyd
Epydoc and Pydoc.. but maybe other tools?
Thanks!
--
Ksenia
--
http://mail.python.org/mailman/listinfo/python-list
> Ksenia - I recently came across this python web-based FM:
>
> http://snakelets.sourceforge.net/filemgr/index.html
>
> It is by Irmen De Jong, the author of Snakelets.
>
Looks good! Thank you very much :)
--
Ksenia
--
http://mail.python.org/mailman/listinfo/python-list
s (well, except for Zope) :)
I know, it's not hard to write your own... I am just trying not
re-inventing the wheel this time :)
Any hints?
Thanks!
--
Ksenia
--
http://mail.python.org/mailman/listinfo/python-list
des that, I find it hard to read... it is kind of extra mental
step to translate "repeat="record records" into "for record in
records" :) But it is matter of taste of course.
--
Ksenia
--
http://mail.python.org/mailman/listinfo/python-list
hat it is, please tell me!)
No huge demands, just simple templating for a database-driven website.
I'll give EmPy a try, thank you.
--
Ksenia
--
http://mail.python.org/mailman/listinfo/python-list
> >
> http://www.reportlab.org/preppy.html
Looks very close to what I was looking for :)
Thanks!
--
Ksenia
--
http://mail.python.org/mailman/listinfo/python-list
d hence speed of processing was not the
primary consideration in its design.
"""
Have you noticed any speed problems with EmPy?
--
Ksenia
--
http://mail.python.org/mailman/listinfo/python-list
record.title%>
<%end for%>
>From what I saw Cheetah seems to be the only one that can do it. I was
hoping there might be alternatives that I've missed :)
Thanks!
--
Ksenia
--
http://mail.python.org/mailman/listinfo/python-list
uot;Dog"
>
> How can I create a instance of Dog from classname?
If class Dog is in the same namespace:
dog_class = globals()[classname]
dog = dog_class()
dog.bark()
If class is declared in another file, e.g. "animals.py":
import animals
dog_class = getattr(animals, classname)
re is nothing wrong with my data, or XML parser.
I will resume in a few days with pyExcelWriter and will post the
results here, but anyway, many thanks for your time and explanation!
--
Ksenia
--
http://mail.python.org/mailman/listinfo/python-list
Create email message
# Create the container (outer) email message.
msg = MIMEMultipart()
# Attach Excel sheet
xls = MIMEBase('application', 'vnd.ms-excel')
xls.set_payload(f.getvalue())
Encoders.encode_base64(xls)
xls.add_header('Content-Disposition', 'attachment', filename='some
file name %s-%s-%s.xls' % (today.day, today.month, today.year))
msg.attach(xls)
msg['Subject'] = subject
msg['From'] = fromaddr
msg['To'] = toaddr
# Guarantees the message ends in a newline
msg.epilogue = ''
# Send message
s = smtplib.SMTP(smtp_host)
s.sendmail(fromaddr, to_list, msg.as_string())
--
Ksenia
--
http://mail.python.org/mailman/listinfo/python-list
27;t really understand
it... any dummy-proof pointers are also appreciated :)
Thanks...
--
Ksenia
--
http://mail.python.org/mailman/listinfo/python-list
You can also do:
settings = {}
execfile('/path/to/file/myconfig.conf', settings)
myconfig.conf is a Python file. After this all variables from
myconfig.conf are stored in settings dictionary.
--
Ksenia
--
http://mail.python.org/mailman/listinfo/python-list
This is close to what you want:
http://freespace.virgin.net/hamish.sanderson/htmlcalendar.html
You'll also need HTMLTemplate
http://freespace.virgin.net/hamish.sanderson/htmltemplate.html
--
http://mail.python.org/mailman/listinfo/python-list
Beautiful Soup, but maybe there is a more easy way...
Thanks!
--
Ksenia
--
http://mail.python.org/mailman/listinfo/python-list
;> command = "echo '%s'"
> >>> print command % evil.encode('string-escape')
> echo '\'; rm -rf /;'
Cool, thanks! Next time I'll study stdlib better before asking the question :)
--
Ksenia
--
http://mail.python.org/mailman/listinfo/python-list
mand line? Will it
always be safe, even when binary data is submitted through POST?
Or maybe some stable Python interface for ImageMagick that takes care of it :)
Thanks in advance,
--
Ksenia
--
http://mail.python.org/mailman/listinfo/python-list
34 matches
Mail list logo