Re: [BangPypers] Fwd: Regarding Forms : "ModelMultipleChoiceField"

2015-12-09 Thread Asif Jamadar
Use django-autocompletelight package - https://django-autocomplete-light.readthedocs.org/en/master/ Asif -Original Message- From: BangPypers [mailto:bangpypers-bounces+asif.jamadar=rezayat@python.org] On Behalf Of Nikhileshkumar Ikhar Sent: Wednesday, December 09, 2015 6:13 PM To:

[BangPypers] Terrible choices: MySQL

2014-12-29 Thread Asif Jamadar
http://blog.ionelmc.ro/2014/12/28/terrible-choices-mysql/ Regards, Asif ___ BangPypers mailing list BangPypers@python.org https://mail.python.org/mailman/listinfo/bangpypers

Re: [BangPypers] PyQt Query

2014-11-23 Thread Asif Jamadar
Missing function call -> self.xyz() -Original Message- From: BangPypers [mailto:bangpypers-bounces+asif.jamadar=rezayat@python.org] On Behalf Of Nitin Kumar Sent: Sunday, November 23, 2014 4:30 PM To: Bangalore Python Users Group - India Subject: [BangPypers] PyQt Query code:

[BangPypers] Python is still greek to india's top IT firms

2014-09-13 Thread Asif Jamadar
http://timesofindia.indiatimes.com/...-Indias-top-IT-firms/articleshow/41535783.cms NEW DELHI: Recently, one of India's top software companies was faced with quandary. It had won a

[BangPypers] 5 Reasons why Python is Powerful Enough for Google

2014-01-30 Thread Asif Jamadar
Dear All, I really like this blog because python every where http://www.codefellows.org/blogs/5-reasons-why-python-is-powerful-enough-for-google Regards, Asif ___ BangPypers mailing list BangPypers@python.org https://mail.python.org/mailman/listinfo/b

Re: [BangPypers] [Off-Topic] Best Wiki

2012-10-09 Thread Asif Jamadar
Checkout https://github.com/benjaoming/django-wiki. I've installed it and so far it looks very promising. -Original Message- From: BangPypers [mailto:bangpypers-bounces+asif.jamadar=rezayat@python.org] On Behalf Of Jins Thomas Sent: Tuesday, October 09, 2012 7:56 PM To: Bangalore

[BangPypers] read data from FingerPrint scanner

2012-01-25 Thread Asif Jamadar
Dear All, In one of my application I'm using fingerprinting scanner, but how can I read the data from the scanner using Python? And also if you have any other ideas share with me. ___ BangPypers mailing list BangPypers@python.org http://mail.python.org

[BangPypers] Reportlab Tool for dynamic reports

2012-01-22 Thread Asif Jamadar
Dear All, I'm using django and reportlab tool generate Dynamic PDF reports. All the data in report is coming from database. I'm generating dynamic PDF report using reportlab which consist of the data from database. My problem is whenever I restart apache server my PDF reports data is changing.

[BangPypers] Usage of django-workflow

2012-01-14 Thread Asif Jamadar
Dear All, I installed django-workflow 1.0.2. Can anybody explains the usage of this package. How can I import this package in my settings.py file ? ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers

[BangPypers] request.POST.getlist in django formset

2011-12-12 Thread Asif Jamadar
How can I use request.POST.getlist in django formset? However I can able to use request.POST.getlist for Modelform by just specifying the field name but how can I do the same with formset? ___ BangPypers mailing list BangPypers@python.org http://mail.p

[BangPypers] Django admin URL redirect problem in admin page

2011-11-30 Thread Asif Jamadar
Dear All, In one of my django app, I extended the django User model and created a new 'UserProfile ' model. But when I'm trying to add new user through this model in admin page, the URL is not redirecting to successful page, instead its stopped on 'admin/auth/user/add/?_popup=1' this URL. (user

Re: [BangPypers] Python Reportlan Platypus issue

2011-11-28 Thread Asif Jamadar
Sorry yesterday I was in hurry so didn't asked question properly. I'm using Reportlab tool to generate PDF report. In my source code I'm using reportlab.platypus.Paragraph class which supports some of basic html tags (like , etc...) So my problem is using special characters with this Paragra

Re: [BangPypers] How to use special character in

2011-11-28 Thread Asif Jamadar
I'm using Reportlab tool. In Paragraph function of reportlab I'm using . But when < and > character appears for this tag in paragraph that character is showing in the generated PDF report using reportlab. How can I handle this? ___ BangPypers mailin

[BangPypers] How to use special character in

2011-11-28 Thread Asif Jamadar
Dear all, I'm using reportlab tool generate PDF reports If character is '<' or '>' how can I use these characters in tag ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers

Re: [BangPypers] seantis questionnaire - Django App

2011-11-23 Thread Asif Jamadar
I created the questionnaire app using 'seantis questionniare'. I test with only one questionset and it is working fine. But if I create multiple questionset and try to save the answers, only answers for the first questionset are saving. Suppose I have 5 questionset and I submitted answers for a

Re: [BangPypers] Transmeta in django is not working with mysql

2011-11-21 Thread Asif Jamadar
Thank you for your information. I'm using django_modeltranslation that did the trick for me. ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers

Re: [BangPypers] Transmeta in django is not working with mysql

2011-11-20 Thread Asif Jamadar
If i run my source code using django 1.3 & python 2.6 on ubuntu, transmeta is not working. But If i run the same code using django 1.2.1 & python 2.7 on windows transmeta is working. Now is this python version issue? or django version issue? Or apache configuration issue on ubuntu

[BangPypers] Transmeta in django is not working with mysql

2011-11-20 Thread Asif Jamadar
In one of my django application I'm using transmeta for switching between the languages. This transmeta is not working when I use my application with mysql, but if I use the same source code with sqlite transmeta will work perfectly. So what may be the cause with mysql? Thanks in advance Regard

Re: [BangPypers] Dynamic color for table column (color stored in model)

2011-11-16 Thread Asif Jamadar
Sorry my question is not clear. I want to implement the styling (dynamic color ) for reportlab table. ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers

Re: [BangPypers] Dynamic color for table column (color stored in model)

2011-11-16 Thread Asif Jamadar
But the table is generated by reportlab tool. How I can integrate css with reportlab? ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers

[BangPypers] Reportlab: Dynamic color for table column (color stored in model) in reportlab

2011-11-16 Thread Asif Jamadar
I have model called TestResults models.py -- Class TestResults(models) chemical_name charfield valuefloatfield unit charfield method charfield normal_limit charfield caution_limit charfield color charfield Now, The below code wil

[BangPypers] Dynamic color for table column (color stored in model)

2011-11-16 Thread Asif Jamadar
I have model called TestResults models.py -- Class TestResults(models) chemical_name charfield valuefloatfield unit charfield method charfield normal_limit charfield caution_limit charfield color charfield Now, The below code wil

[BangPypers] Dynamic color for table column (color stored in model)

2011-11-16 Thread Asif Jamadar
I have model called TestResults models.py -- Class TestResults(models) chemical_name charfield valuefloatfield unit charfield method charfield normal_limit charfield caution_limit charfield color charfield Now, The below code wil

Re: [BangPypers] seantis questionnaire - Django App

2011-11-15 Thread Asif Jamadar
Thank you for your answer. Another question how we can check the feature 'export CSV' in this questionnaire app? ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers

Re: [BangPypers] django signals

2011-11-15 Thread Asif Jamadar
Can anybody explain me how these django signals works with example? ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers

Re: [BangPypers] django signals

2011-11-15 Thread Asif Jamadar
Is there any way to implement timer using django for each page? ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers

[BangPypers] django signals

2011-11-14 Thread Asif Jamadar
I'm going to implement questionnaire application using django. Each page consist of 4 questions. Now how can i implement time for each page. Suppose each page has 30 min how can i implement this for my questionnaire application. Is this can be achived by django signal? _

[BangPypers] seantis questionnaire - Django App

2011-11-14 Thread Asif Jamadar
Thanks for your answer. Now how user is created in 'Subject' model of Questionnaire App? Whether we need to create manually or allow user to create his credentials? And why this app always creates AnonymousUser? ___ BangPypers mailing list BangPyper

Re: [BangPypers] seantis questionnaire - Django App

2011-11-14 Thread Asif Jamadar
Can you provide me the url for their webite? ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers

[BangPypers] seantis questionnaire - Django App

2011-11-14 Thread Asif Jamadar
Where i can get user manual or tutorial for seantis questionnaire django application? ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers

Re: [BangPypers] ChoiceField in django models

2011-11-10 Thread Asif Jamadar
Thank you so much for your suggestion. ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers

[BangPypers] ChoiceField in django models

2011-11-10 Thread Asif Jamadar
Suppose I have choicefield in my django model which consist of several choices. Now in future if I changed the existing choice (option) with some other name (choice), then whether the existing records in model with that choice(option) will also change? Or In admin page I need to set that new op

Re: [BangPypers] Calling Python from JavaScript

2011-11-02 Thread Asif Jamadar
Sorry for my bad English, I will explain what i'm trying to achieve, I'm using Dajaxice with Django. I created modelformset which consist of multiple forms. Each form has dropdown field on which I'm calling dajaxice function, that function will takes the value of the dropdown field and calls a

Re: [BangPypers] Calling Python from JavaScript

2011-11-02 Thread Asif Jamadar
Group - India Subject: Re: [BangPypers] Calling Python from JavaScript Hello Asif, On Tue, Nov 01, 2011 at 08:43:11AM +, Asif Jamadar wrote: > Is there a simple way to call Python libraries from JavaScript? > What do you ultimately intend to do with this requirement? You can do a HTT

[BangPypers] Calling Python from JavaScript

2011-11-01 Thread Asif Jamadar
Is there a simple way to call Python libraries from JavaScript? I have created python (.py) file which consist of some function, now I need to call those functions inside my JavaScript code. How can I achieve this? Regards Asif ___ BangPypers mailin

Re: [BangPypers] Dynamic choices for django modelformset

2011-11-01 Thread Asif Jamadar
Any suggestions for this question? -Original Message- From: bangpypers-bounces+asif.jamadar=rezayat@python.org [mailto:bangpypers-bounces+asif.jamadar=rezayat@python.org] On Behalf Of Asif Jamadar Sent: Thursday, October 27, 2011 11:33 AM To: BangPypers@python.org Subject

[BangPypers] Dynamic choices for django modelformset

2011-10-27 Thread Asif Jamadar
How can I add dynamic choices for model formset? Suppose I have model called TestModel Class TestModel(models.Model) dropdown_field = models.CharField(max_length=70, blank=True, null=True, choices=' What to write here because my choices are dynamic') And from this model I w

Re: [BangPypers] Getting label of the choicefield in django form

2011-10-22 Thread Asif Jamadar
Can you explain this with example so that I can understand? ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers

Re: [BangPypers] Getting label of the choicefield in django form

2011-10-22 Thread Asif Jamadar
But I have same lables( or names) in my choice list Choices = [ ('attr1', 1), ('attr1', 2), ('attr1' , 3) , ('attr2', 1), ('attr2', 2), ('attr2', 3) ] All these are displayed as radio buttons. When I select 2 then it is returning me "attr1". But how should I get the value itself that is "2"?

[BangPypers] Getting label of the choicefield in django form

2011-10-21 Thread Asif Jamadar
I have django form which consist of one choice field with following choices Choices = [('attr1', 1), ('attr1', 2), ('attr3',3), ('attr2',1), ('attr2',2), ('attr2', 3)] If I do value = form.cleaned_data('value') It is returning the value ( I,e attr1 or attr2) .in this case how can I get the la

Re: [BangPypers] Generate Dynamic lists

2011-10-21 Thread Asif Jamadar
The numbers are just fixed values. But see I want to generate multiple lists from that one criteria list ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers

[BangPypers] Generate Dynamic lists

2011-10-20 Thread Asif Jamadar
So I'm trying to generate dynamic choices for django form. Here i'm usig formset concept (CODE is mentioned below) Suppose i have list called criteria_list = ['education', 'know how', 'managerial', 'interpersonal', ] now i need to generate choices as follows list1 = [('education', 1), (

Re: [BangPypers] Abstract base class in Djangi forms

2011-10-18 Thread Asif Jamadar
Thank you. Now I got the solution ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers

[BangPypers] Abstract base class in Djangi forms

2011-10-18 Thread Asif Jamadar
How can I use abstraction of base class in django forms? In models we need to set "abstract=True" so that we can access the base class fields, similarly what concept I should follow to use abstraction in django forms. Regards Asif ___ BangPypers mail

[BangPypers] Reportlab tool with SAP

2011-10-17 Thread Asif Jamadar
Is it possible to integrate Reportlab tool with SAP? I want to generate graphs or charts for the data which is present in SAPDB. How can I achieve this? ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpyper

Re: [BangPypers] Read barcode input

2011-10-13 Thread Asif Jamadar
Re: [BangPypers] Read barcode input On Thu, Oct 13, 2011 at 2:25 PM, Asif Jamadar wrote: > I have django form which consist of input field (CharField). How can I read > barcode input directly into this form field. Any suggestions? What does that mean? Read barcode input from where? Ho

Re: [BangPypers] Read barcode input

2011-10-13 Thread Asif Jamadar
Where can I get examples on zbar to read barcode input directly to my django App. -Original Message- From: bangpypers-bounces+asif.jamadar=rezayat@python.org [mailto:bangpypers-bounces+asif.jamadar=rezayat@python.org] On Behalf Of Asif Jamadar Sent: Thursday, October 13

[BangPypers] (no subject)

2011-10-13 Thread Asif Jamadar
I have django form which consist of input field (CharField). How can I read barcode input directly into this form field. Any suggestions? ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers

[BangPypers] Read barcode input

2011-10-13 Thread Asif Jamadar
I have django form which consist of input field (CharField). How can I read barcode input directly into this form field. Any suggestions? ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers

Re: [BangPypers] two dropdowns dependents on each other

2011-08-15 Thread Asif Jamadar
Can you provide me example using ajax? ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers ___ BangPypers mailing list BangPypers@python.org http://mail.python.

[BangPypers] two dropdowns dependents on each other

2011-08-15 Thread Asif Jamadar
I have two dropdowns one dropdown is dependent on other (Ex. Country/State dropdowns) Now how can I implement this thing in django? I'm using modelform concept to display form which having two dropdowns Any sugtgestions? ___ BangPypers mailing list Ba

[BangPypers] 'dict' object has no attribute 'company_name'

2011-08-15 Thread Asif Jamadar
charges = [(c.company_name) for c in ReportModel.objects.values('company_name').distinct()] but it throws this error: " 'dict' object has no attribute 'company_name'" any suggestions? ___ BangPypers mailing list BangPypers@python.or

[BangPypers] Mysqldb and Pyodbc

2011-08-08 Thread Asif Jamadar
Hi, I have already installed mysqldb on ubuntu machine. Now I want to install Pyodbc, so whether it will affect mysqldb package? ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers

[BangPypers] Install suds for python27 on windows

2011-07-31 Thread Asif Jamadar
How can I install 'suds' for python27 on windows? ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers

[BangPypers] if not with comparision statement in python

2011-07-30 Thread Asif Jamadar
What if I have two lists for both minimum and maximum values Minimum Maximum 0 10 11 20 21 30 31 40 Now how should I check if actual result is not laying between above ranges if not minimum<=actual_result and not maximum>=actual

[BangPypers] if not with comparision statement in python

2011-07-30 Thread Asif Jamadar
if not minimum<=actual_result and not maximum>=actual_result: How to check if actual result is not laying between minimum value and maximum value. how should I represent the above statement in python? Any suggestions? ___ BangPypers mailing list Ban

[BangPypers] Iterating list of tuples

2011-07-03 Thread Asif Jamadar
Suppose I have list of tuples data = [ (10, 25, 18, 17, 10, 12, 26, 5), ] for value in data: if data[value]>5: print " greater" else: print "lesser" But the code giving me error so can I know how iterate list of tuples? ___

[BangPypers] How to read barcoded value from the PDF

2011-06-27 Thread Asif Jamadar
Hi, I have a PDF document which consist of barcode characters. Now how can I retrieve that bar-coded value programmatically. When I googled I found a tool called Pypdf which provides a function called 'PdfFileReader' To read the PDF file, but how can I read the barcode form the existing PDF.