Forum: Python Oct 3rd, 2007 |
| Replies: 4 Views: 1,968 hi, i have used the method explaned in following link, and this helped me a lot, i am sure that this also ll help you..
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/52250 |
Forum: Python Sep 3rd, 2007 |
| Replies: 3 Views: 4,127 i think you are working with zope/plone environment, so my suggession is to use external method. |
Forum: Python Sep 3rd, 2007 |
| Replies: 9 Views: 3,329 the solution, i got from your problem as explained is to construct another class which inherit SubDevice. And this ll make you to call your function as your wish. |
Forum: Python Jul 3rd, 2007 |
| Replies: 1 Views: 1,090 Hi, i am a newbie in python, can any one tell me about synchrinization in python, i have googled about it, but could not get much clear idea..
Thanks in advance.....
:) |
Forum: Python Apr 11th, 2007 |
| Replies: 3 Views: 5,791 for better maching of word , go through re module of python, you must find some interesting thing there..
:) |
Forum: Python Apr 11th, 2007 |
| Replies: 1 Views: 2,904 hi,
as i got you , i think the better way you can use is :
qry = "select %s from %s where %s" %(name,table,filter)
and then you can create your own method to run sql
-VS |
Forum: Python Jan 17th, 2007 |
| Replies: 1 Views: 1,795 [code]
result=[]
list = int(raw_input("enter the length of list:"))
size_of_batch=int(raw_input("enter the size of batch:"))
def createBatch(lst):
lenLst = len(lst)
if lenLst >... |
Forum: Python Jan 17th, 2007 |
| Replies: 1 Views: 1,088 [code]
def WeekFinderFromYear(year):
""" will return all the week from selected year """
import datetime
WEEK =... |
Forum: Python Jan 17th, 2007 |
| Replies: 1 Views: 1,982 [code]
import wx
import os
from wxPython.wx import *
import wx.html
class MyHtmlFrame(wx.Frame):
def __init__(self, parent, title): |
Forum: Python Jan 17th, 2007 |
| Replies: 2 Views: 3,002 #Auther : vivek sharma
#date : 06-11-2006
#Description : This script is used to get the list of week in given year, user have to input the year ,
def WeekFinderFromYear(year):
"""... |
Forum: Python Jan 17th, 2007 |
| Replies: 2 Views: 3,059 code:
you can change this code as you like
import wx
import os
from wxPython.wx import *
import wx.html
class MyHtmlFrame(wx.Frame): |
Forum: Python Apr 21st, 2006 |
| Replies: 3 Views: 1,863 i think this will help you out, this is not the exact solution of your problem, but now you can find yourself.please indent it yourself, i am unable to indent in message box.
code:
import os
def... |
Forum: Python Apr 20th, 2006 |
| Replies: 7 Views: 4,067 hey, why i am getting this error..
can anyone explain me
Traceback (most recent call last):
File "popmail.py", line 14, in ?
rx_headers = re.compile('|'.join(headers), re.IGNORECASE)... |
Forum: Python Apr 20th, 2006 |
| Replies: 2 Views: 1,058 import posix
import string
uid = `posix.getuid()`
passwd = open('/etc/passwd')
for line in passwd.readlines():
rec = string.splitfields(line, ':')
if rec[2] == uid:
print 'hello',... |
Forum: Python Apr 20th, 2006 |
| Replies: 1 Views: 1,809 import urllib
f = urllib.urlopen("http://www.mahiti.in")
word = "Software"
for line in f:
if word in line:
print line
:cheesy: |
Forum: Python Mar 9th, 2006 |
| Replies: 4 Views: 4,735 simple code for creating dropdown box using javascript.
the html code for this, is
<html>
<head>
<title></title>
<script language="javascript" src="list.js"></script>
</head>
<body... |
Forum: Python Mar 9th, 2006 |
| Replies: 4 Views: 4,735 i am working in ubuntu linux. and using python 2.4.2. |
Forum: Python Mar 8th, 2006 |
| Replies: 4 Views: 4,735 hi, i am very new in python. can anyone tell me that how to create dynamic dropdown box in python scripting.(triple dropdown box) |