managing releases of web applications: is svn checkout the best way?

2008-10-07 Thread Ksenia
; 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

Re: text representation of HTML

2006-09-21 Thread Ksenia Marasanova
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

text representation of HTML

2006-07-19 Thread Ksenia Marasanova
? Thanks! Ksenia. -- http://mail.python.org/mailman/listinfo/python-list

install python2.4 on FreeBSD and keep using python2.3

2005-11-17 Thread Ksenia Marasanova
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

Re: Postgres PL/Python

2005-09-18 Thread Ksenia Marasanova
be a useful addition for more complex situations that may come. -- Ksenia -- http://mail.python.org/mailman/listinfo/python-list

Re: How does f=open('mytext.txt', 'w+') work?

2005-09-18 Thread Ksenia Marasanova
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

Postgres PL/Python

2005-09-15 Thread Ksenia Marasanova
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

Re: using metaclass __call__ to replace class instance

2005-09-09 Thread Ksenia Marasanova
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

Re: using metaclass __call__ to replace class instance

2005-09-09 Thread Ksenia Marasanova
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

using metaclass __call__ to replace class instance

2005-09-09 Thread Ksenia Marasanova
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

Re: Django and SQLObject. Why not working together?

2005-09-08 Thread Ksenia Marasanova
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

Re: sorting question

2005-08-10 Thread Ksenia Marasanova
> 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

Re: sorting question

2005-08-10 Thread Ksenia Marasanova
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 --

Re: sorting question

2005-08-10 Thread Ksenia Marasanova
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

Re: sorting question

2005-08-10 Thread Ksenia Marasanova
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

sorting question

2005-08-10 Thread Ksenia Marasanova
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

Re: Code documentation tool similar to what Ruby (on Rails?) uses

2005-06-12 Thread Ksenia Marasanova
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

Code documentation tool similar to what Ruby (on Rails?) uses

2005-06-12 Thread Ksenia Marasanova
Epydoc and Pydoc.. but maybe other tools? Thanks! -- Ksenia -- http://mail.python.org/mailman/listinfo/python-list

Re: web based file manager in python

2005-04-25 Thread Ksenia Marasanova
> 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

web based file manager in python

2005-04-25 Thread Ksenia Marasanova
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

Re: templating system

2005-04-13 Thread Ksenia Marasanova
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

Re: templating system

2005-04-13 Thread Ksenia Marasanova
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

Re: templating system

2005-04-11 Thread Ksenia Marasanova
> > > 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

Re: templating system

2005-04-11 Thread Ksenia Marasanova
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

templating system

2005-04-10 Thread Ksenia Marasanova
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

Re: How to create an object instance from a string??

2005-03-19 Thread Ksenia Marasanova
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: getting data with proper encoding to the finish

2005-03-16 Thread Ksenia Marasanova
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

Re: getting data with proper encoding to the finish

2005-03-14 Thread Ksenia Marasanova
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

getting data with proper encoding to the finish

2005-03-14 Thread Ksenia Marasanova
27;t really understand it... any dummy-proof pointers are also appreciated :) Thanks... -- Ksenia -- http://mail.python.org/mailman/listinfo/python-list

Re: modifiable config files in compiled code?

2005-03-10 Thread Ksenia Marasanova
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

Re: Making a calendar

2005-02-26 Thread Ksenia Marasanova
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

extracting HTML fragments and counting words

2005-02-18 Thread Ksenia Marasanova
Beautiful Soup, but maybe there is a more easy way... Thanks! -- Ksenia -- http://mail.python.org/mailman/listinfo/python-list

Re: escape string for command line

2005-01-08 Thread Ksenia Marasanova
;> 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

escape string for command line

2005-01-07 Thread Ksenia Marasanova
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