Re: [BangPypers] [Bangpypers] Bangpypers Meetup - 27 Feb 2021 - Reminder mail + Zoom link availing for today's meetup (27/2)

2021-02-27 Thread Mandar Vaze / मंदार वझे
Was this session recorded ? If yes, can you share the link? Thanks, -Mandar On Sat, Feb 27, 2021 at 7:24 AM Abhiram R wrote: > Hi! > This is a reminder mail for the monthly- Bangpypers meetup - for the month > of Feb 2021 i.e. today the 27th Feb 2021. The Zoom link should be available > on the

Re: [PLUG] FOSDEM 2020 approaching ...

2019-12-11 Thread Mandar Vaze / मंदार वझे
> Past FOSDEM event video archives = https://video.fosdem.org/ > Is there some document that goes long with this ? The folder names are not intuitive. The link in the README is not reachable -Mandar ___ plug-mail mailing list plug-mail@plug.org.in http:

Re: [PLUG] Why folks using IRC are against "cool" and "new" features?

2019-09-04 Thread Mandar Vaze / मंदार वझे
> as their editors, but the students never leave the "INSERT" mode. > Really? 🤔 ___ plug-mail mailing list plug-mail@plug.org.in http://list.plug.org.in/listinfo/plug-mail

Re: [PLUG] Why folks using IRC are against "cool" and "new" features?

2019-09-04 Thread Mandar Vaze / मंदार वझे
> Slack and others don't lend themselves well to highly threaded or, long > form conversations. > Has anyone used twist ? https://twist.com/tour (I have not) One of the feature they keep talking about is threaded conversations. -Mandar ___ plug-mail mai

Re: [PLUG] Brave Browser

2019-06-09 Thread Mandar Vaze / मंदार वझे
I have been using this for a while, as my default browser. My "main" browser is Firefox, which I use for gmail/work/banking etc. If I "type" the URL, I use firefox. Whenever I click any link - it is opened in Brave. It is OK, no issues. -Mandar On Sun, Jun 9, 2019 at 12:33 PM Gaurav Pant wr

Re: [PLUG] What topics are allowed ?

2019-02-16 Thread Mandar Vaze / मंदार वझे
On Sat, Feb 16, 2019 at 6:23 PM Mayuresh wrote: > On Fri, Feb 15, 2019 at 09:37:01PM +0530, Sudhanwa Jogalekar wrote: > > We stopped moderation completely after there was some huge discussion and > > concerns raised about it. As Karunakar mentioned, there is no way to stop > > people from registe

Re: [PLUG] What topics are allowed ?

2019-02-15 Thread Mandar Vaze / मंदार वझे
> And once in a while enjoy the absurd, completely out of context postings !! :-) I did. But recently it has become more than once-in-a-while. -Mandar ___ plug-mail mailing list plug-mail@plug.org.in http://list.plug.org.in/listinfo/plug-mail

Re: [PLUG] What topics are allowed ?

2019-02-15 Thread Mandar Vaze / मंदार वझे
> Trouble being mailer keeps re-appearing with a different mail id. > Unless new membership itself is moderated, though cant guarantee > person taking a different cloak to get in. > I'm so glad you all know the "people" I was referring to. Couple of times these "aliases" - resigned/unsubscribed on

[PLUG] What topics are allowed ?

2019-02-14 Thread Mandar Vaze / मंदार वझे
Sudhanwa, Gaurav and/or other "admins" : Why do we allow/tolerate "certain individuals" to post "rants" unrelated to linux/OSS ? I tried to ignore such emails for a long time, but then more "obscure" emails started coming in (and more frequently) I refuse to reply to such individuals because mos

Re: [PLUG] IBM to acquire Red Hat

2018-10-31 Thread Mandar Vaze / मंदार वझे
> As per press release, Red Hat will independent in IBM. It will be > business as usual. > Just like instagram was "independent" in FB ;) -Mandar ___ plug-mail mailing list plug-mail@plug.org.in http://list.plug.org.in/listinfo/plug-mail

Re: [PLUG] IBM to acquire Red Hat

2018-10-30 Thread Mandar Vaze / मंदार वझे
> The Evil Corp has got us! :( > Many of us at RH are highly disappointed... Though for them it is business > as usual! > > Fortunately RH people often have skills that are highly sought after in > the market and there are other linux focussed outfits that are always > looking to hire :) > Why wou

Re: [PLUG] What are the advantages of blocking Google's QUIC protocol?

2018-04-17 Thread Mandar Vaze / मंदार वझे
> Although the protocol seems to address an interesting problem, there's > HTTP2.0 (SPDY) which is already implemented in Firefox (client) and > Just to clarify, SPDY and HTTP/2 are not the same. https://en.wikipedia.org/wiki/HTTP/2#Genesis_in_and_later_differences_from_SPDY -Mandar

Re: [PLUG] [xpost] Cloudflare announces DNS Resolver 1.1.1.1 (on 4/1)

2018-04-08 Thread Mandar Vaze / मंदार वझे
> Conclusion = > After switching to ISP's DNS, everything got resumed as expected. > While I have not done such extensive "study", I have reached the same conclusion over the years. I use GoogleDNS as a backup, but generally switching "back" to ISP's DNS improves things a lot. I would be interest

Re: [web2py] Re: 'truncate' broken in SQLTABLE with 'headers'.

2018-01-30 Thread Mandar Vaze / मंदार वझे
u are using, and possibly sample code. -Mandar On Wed, Jan 31, 2018 at 6:19 AM, Yi Liu wrote: > This is still not fixed as of 01/30/2018 > > On Tuesday, January 22, 2013 at 1:38:29 AM UTC-8, Mandar Vaze wrote: >> >> Just to revive the discussion, if SQLTABLE is passed a he

Re: [BangPypers] [X-Post] PythonExpress challenges

2017-08-09 Thread Mandar Vaze / मंदार वझे
> It will at max prove that student was in a place for few hours We can always call it "Certificate of Participation" (Which is what you are suggesting, I think) Is there a "mini test" at the end of the workshop ? If yes, they certificate can be given only to those who "pass" (assuming the test i

[PLUG] [JOB] Sysadmin/DevOps engineer required at Vayana

2017-05-24 Thread Mandar Vaze / मंदार वझे
Vayana is looking for a Sysadmin person (needless to say experienced in Linux Sysadmin) You will eventually manage their AWS EC2 servers. So familiarity with AWS EC2 is a bonus, but not required. Find more about Vayana at : http://vayana.in/ I'm not associated with Vayana anymore. So for your que

Re: [PLUG] GNUnify 2017

2017-01-25 Thread Mandar Vaze / मंदार वझे
Site is accessible. On Wed, Jan 25, 2017 at 4:38 PM, Gaurav Pant wrote: > On Wed, Jan 25, 2017 at 3:53 PM, Rohit Dalal > wrote: > > Hello > > The mention link in mail is does not open > > Please send the Registration link > > Thanks and Regards > > Rohit Dalal > > If you are talking about gnuni

Re: [PLUG] Manjaro Linux

2016-09-20 Thread Mandar Vaze / मंदार वझे
Manjaro-Deepin seems interesting I had used Deepin linux few years ago and was impressed by the UI/deepin specific apps. But at that time, one couldn't install the apps other than deepin-terminal on other flavours of linux. -Mandar On Sun, Sep 18, 2016 at 7:47 PM, Anshul Chauhan wrote: > Yes Ga

[nikola-discuss] Re: Nikola v7.7.12 is out!

2016-08-22 Thread Mandar Vaze
I'm getting following error after the upgrade used pip3 install --upgrade nikola I'm on python3 and inside virtualenv Traceback (most recent call last): File "/Users/mandar/.virtualenvs/py3nikola/bin/nikola", line 7, in from nikola.__main__ import main ImportError: No module named 'niko

Re: [BangPypers] Delete my account

2016-05-30 Thread Mandar Vaze / मंदार वझे
I am getting "*BangPypers roster authentication failed.*" error. BTW, is there an option (like google groups) to "view emails on the web only" so that membership remains intact and size of inbox also remains "under control" (No, I don't wanna unsubscribe) -Mandar On Thu, May 19, 2016 at 4:19

Re: [BangPypers] Delete my account

2016-05-30 Thread Mandar Vaze / मंदार वझे
I am getting "*BangPypers roster authentication failed.*" error. BTW, is there an option (like google groups) to "view emails on the web only" so that membership remains intact and size of inbox also remains "under control" (No, I don't wanna unsubscribe) -Mandar On Thu, May 19, 2016 at 4:19

Re: [BangPypers] [pythonpune] PyDelhi pamphlet

2016-01-20 Thread Mandar Vaze / मंदार वझे
"Beautiful Code" in the pamphlet is not python3 compatible *ducks* -Mandar On Tue, Jan 19, 2016 at 8:52 PM, Rishabh Singh <0601rish...@gmail.com> wrote: > Folks spread the word around your college campus, company and around your > tech circle, use the pamphlet below. Print it, photostat it and

Re: [BangPypers] Connecting developers and companies

2015-07-20 Thread Mandar Vaze / मंदार वझे
> > But in case Company B wishes to present too, they > will have to get prior permission from Company A along with the organizers > of the meet-up. > Or Company B can just sponsor next meetup ;) -Mandar ___ BangPypers mailing list BangPypers@python.org

Re: [BangPypers] Connecting developers and companies

2015-07-19 Thread Mandar Vaze / मंदार वझे
On Mon, Jul 20, 2015 at 11:54 AM, Sreekanth S Rameshaiah wrote: > > On 20 July 2015 at 11:51, Mandar Vaze / मंदार वझे > wrote: > >> How about "A company that sponsors a meetup, formally gets 10 minutes at >> the end" ? >> This alleviates the above conce

Re: [BangPypers] Connecting developers and companies

2015-07-19 Thread Mandar Vaze / मंदार वझे
> > This is not correct. Many companies have sponsored space and snacks without > expecting any thing in return. If a company offers space to you to conduct > meeting and competing companies go there to make 10 minute presentation of > job offers, then companies will have a second thought to offer

[web2py] Re: How to refer uploads files

2015-06-25 Thread Mandar Vaze
On Thursday, June 25, 2015 at 1:47:13 PM UTC+5:30, Chaitu P wrote: > > I want to compile the files that were uploaded. But the files are getting > uploaded with some random name. So how can I refer them. > Filenames under uploads folder are purposely mangled (what you call random names) for sec

Re: [BangPypers] UI less Rest API server with flask

2015-06-24 Thread Mandar Vaze / मंदार वझे
On Tue, Jun 23, 2015 at 1:23 PM, Devi wrote: > On Mon, Jun 22, 2015 at 6:57 PM, anu sree wrote: > > > Thanks anuvrat and krace, > > > > How do we do validation of data in the POST and PUT API request, if we > use > > only native fask ?. > > > > > You could use Cerberus[1], which is a simple vali

Re: [PLUG] Need information on Linux Compatible Laptops

2015-06-24 Thread Mandar Vaze / मंदार वझे
On Sun, Jun 21, 2015 at 12:57 PM, Mayuresh wrote: > On Sun, Jun 21, 2015 at 12:29:27PM +0530, Pirate Praveen wrote: > > If any of you have a new laptop released this year, please add them to > > h-node.org It is a crowd sourced database, so the more people > > contribute the more useful it become

[web2py] Re: Encrypt uploaded files

2015-06-18 Thread Mandar Vaze
> command = "openssl enc -aes-256-cbc -salt -in %s -out %s -k %s" % > (input_file, output_file, key) > Will openssl command be available where you want to deploy this ? (on production server) What about path of openssl command on the production server ? Have you considered using encrypti

Re: [BangPypers] Newspaper in Python

2015-04-24 Thread Mandar Vaze / मंदार वझे
If you use "with" context manager then you don't have to explicitly close the file handle. e.g. with open("filetosave","w") as fh: for article in Sc_paper.articles: fh.write(article) -Mandar On Fri, Apr 24, 2015 at 2:18 PM, Prince Sharma wrote: > No problem, however i forgot to

Re: [PLUG] Please Sign The Petition

2015-04-11 Thread Mandar Vaze / मंदार वझे
> सरकारचा FOSS ला साहजिकच विरोध होता I don't indian govt. cares one way or another BTW, The OS seems "out of date" (Last update was in Dec 2013) -Mandar ___ plug-mail mailing list plug-mail@plug.org.in http://list.plug.org.in/listinfo/plug-mail

Re: [PLUG] Please Sign The Petition

2015-04-11 Thread Mandar Vaze / मंदार वझे
Awesome !! I have been exclusively using linux for close to a decade, but the points mentioned by Amarendra make complete sense. I am a linux user because it is the "right tool" *for me*, not because MS Windows is "bad/evil" I am thinking of moving to OSX because it is *nix under the hood, and all

[web2py] Re: High Memory usage due to uploads_in_blob

2015-04-02 Thread Mandar Vaze
On Thursday, April 2, 2015 at 7:50:29 PM UTC+5:30, Paolo Valleri wrote: > > That is a bug because Grid selects the 'hidden' doc_blob field. > Please open an issue on github > https://github.com/web2py/web2py/issues/896 -Mandar -- Resources: - http://web2py.com - http://web2py.com/book (Docume

Re: [web2py] Re: High Memory usage due to uploads_in_blob

2015-04-02 Thread Mandar Vaze / मंदार वझे
il 2, 2015 at 4:20:29 PM UTC+2, Paolo Valleri wrote: >> >> That is a bug because Grid selects the 'hidden' doc_blob field. >> Please open an issue on github >> > Yes, I will. -Mandar > >> On Thursday, April 2, 2015 at 11:03:15 AM UTC+2, Mandar Vaze

[web2py] High Memory usage due to uploads_in_blob

2015-04-02 Thread Mandar Vaze
Hi, I have an application that uses uploads_in_blob feature as follows : db._adapter.uploads_in_blob = True This creates an additional column of BYTEA type at the DB Level (I am using postgres, if it matters) Here is a sample table (This is just to give you the idea, this is not the exact

Re: [BangPypers] Good and practical resources to build Web Apps using Django

2015-03-12 Thread Mandar Vaze / मंदार वझे
http://twoscoopspress.com/products/two-scoops-of-django-1-6 ? seems to have good reviews -Mandar On Thu, Mar 12, 2015 at 6:44 PM, Aby James wrote: > Hey BangPypers, > > We are going to colleges in Bangalore giving them exposure about free and > high quality online resources to learn programmin

Re: [Plug-mail] [PLUG] GNUnify 2015

2015-02-28 Thread Mandar Vaze / मंदार वझे
On Sat, Feb 28, 2015 at 4:33 AM, G Karunakar wrote: > On Mon, Feb 23, 2015 at 11:29 PM, pavithran s wrote: > > On 23 February 2015 at 12:04, Shakthi Kannan > wrote: > >> One cannot compare apples to oranges. > > > > I agree but Pune can be an important place for a Pan India event like > > Foss

Re: [PLUG] Github, pastebin blocked

2015-01-02 Thread Mandar Vaze / मंदार वझे
On Wed, Dec 31, 2014 at 7:49 PM, Nishit Dave wrote: > On one hand, we have people who don't even have the basic concept* of > copyright (or even propriety), and on the other, an unholy nexus of greedy > media companies and hand-in-glove or plain dumb regulators who will ride > roughshod on citize

Re: [PLUG] 12" or smaller laptop for linux

2014-12-26 Thread Mandar Vaze / मंदार वझे
On Thu, Dec 25, 2014 at 7:41 PM, Dnyanraj Mali wrote: > Hello All, > > Is anyone using any 12" or smaller size laptop with Ubuntu or Fedora or > CentOS? I want to purchase one and the purpose is as follows: > >- Base OS will be Ubuntu 14.04 >- I want to run virtualbox in it and will have

[web2py] Re: web2py and pylint

2014-12-17 Thread Mandar Vaze
Can you share the entire "pip freeze" output ? Especially Astoid and logilab-common versions/details ? https://bitbucket.org/logilab/pylint says "Pylint requires the astroid (the later the better; formerly known as logilab-astng) and logilab-common (version >= 0.53) packages" This may provide a

[web2py] Re: Displaying blob image on login page

2014-12-01 Thread Mandar Vaze
http://stackoverflow.com/questions/16279856/converting-blob-stored-on-a-database-to-an-image-on-an-html-website On Tuesday, December 2, 2014 12:09:25 PM UTC+5:30, Prasad Muley wrote: > > Hi All, > >I need to display logo according to url in login page. I tried to > display the logo but it

[web2py] Re: Displaying blob image on login page

2014-12-01 Thread Mandar Vaze
>From >http://stackoverflow.com/questions/22580518/display-image-from-database-in-the-html-form-using-php > - you can try setting img src="data:image/gif;base64,' On Tuesday, December 2, 2014 12:09:25 PM UTC+5:30, Prasad Muley wrote: > > Hi All, > >I need to display logo according to

Re: [PLUG] live distro & wi-fi connectivity

2014-11-03 Thread Mandar Vaze / मंदार वझे
On Sat, Oct 25, 2014 at 1:06 PM, Arun Khan wrote: > On Fri, Oct 24, 2014 at 8:47 PM, pavithran s wrote: > > On 13 October 2014 11:32, jayant ogale wrote: > >> i have tried many live distros. but in all distros i could not get > wi-fi connectivity. > >> in all distros, only wired broadband conne

Re: [web2py] SQLFORM.grid created from request.vars - search, pagination etc breaks

2014-10-27 Thread Mandar Vaze
Current code looks like this : https://github.com/web2py/web2py/blob/master/gluon/sqlhtml.py#L2031 See if it helps -Mandar P.S. : I posted original query (2 yrs ago) but as mentioned earlier in the thread - I ended up using session variable though. -- Resources: - http://web2py.com - http://w

Re: [PLUG] live distro & wi-fi connectivity

2014-10-25 Thread Mandar Vaze / मंदार वझे
On Mon, Oct 13, 2014 at 3:02 PM, jayant ogale wrote: > hi, > i have tried many live distros. but in all distros i could not get wi-fi > connectivity. > in all distros, only wired broadband connectivity was possible. > do you know any live distro with auto detectable wi-fi connectivity? > Almost

Re: [web2py] Re: How to delete session file on logout

2014-10-19 Thread Mandar Vaze / मंदार वझे
On Sat, Oct 18, 2014 at 11:45 PM, Niphlod wrote: > that's why the whole thing goes away behind SSL. Expiring a session on > logout is better than leaving it as it is, but even in that case *while > userA is logged in *there's NO way to prevent a MITM from someone else. > That is why in another e

Re: [web2py] Re: How to delete session file on logout

2014-10-17 Thread Mandar Vaze
On Thu, Oct 16, 2014 at 2:29 AM, Anthony wrote: Yes. Session file does not get deleted. >> The side effect of session file remaining on the disk is that if the >> "hijacked" session ID is used by the attacker - then "somehow" contents of >> the session file on the disk are reused (even if sess

Re: [web2py] Re: How to delete session file on logout

2014-10-15 Thread Mandar Vaze / मंदार वझे
On Wed, Oct 15, 2014 at 1:06 AM, Anthony wrote: > On Tuesday, October 14, 2014 2:18:05 PM UTC-4, Mandar Vaze wrote: >> >> (This is related to security issue - I've explained the security issue in >> detail to Massimo and anthony separately) >> >> I want

Re: [web2py] Is it possible to restrict a user to single login instance ?

2014-10-15 Thread Mandar Vaze / मंदार वझे
date "other" session - and allow "this" login attempt to go thru) *But I am not sure how this maps to web2py flow/hooks etc*. So pointers w/ specifics above would help. Thanks, -Mandar On Tue, Oct 14, 2014 at 11:31 PM, Mandar Vaze wrote: > This is related to possible

[web2py] Re: Is it possible to restrict a user to single login instance ?

2014-10-14 Thread Mandar Vaze
machineB. > There's a pretty outstanding issue in your design, though how do you > recognize machineA from machineB ? > > On Tuesday, October 14, 2014 8:01:19 PM UTC+2, Mandar Vaze wrote: >> >> This is related to possible security issue. I've written "p

[web2py] Re: Is it possible to restrict a user to single login instance ?

2014-10-14 Thread Mandar Vaze
as tablet or phone). I'm currently logged into Google Groups from > three different devices and would be quite annoyed if I had to keep logging > in again when I move between devices. > e > Anthony > > On Tuesday, October 14, 2014 2:01:19 PM UTC-4, Mandar Vaze wrote: >> >

[web2py] How to delete session file on logout

2014-10-14 Thread Mandar Vaze
(This is related to security issue - I've explained the security issue in detail to Massimo and anthony separately) I want the session to be "invalid" as soon as after user logs out (as well as after certain period of inactivity) This is "supposed to be" default behaviour - but somehow doesn't w

[web2py] Is it possible to restrict a user to single login instance ?

2014-10-14 Thread Mandar Vaze
This is related to possible security issue. I've written "privately" to Massimo and Anthony (in another email on this list - they suggested that security issues not be discussed "publicly" on this list) Lets say UserA logs in successfully from MachineA now without logging out from MachineA - Use

[web2py] Re: pysaml for web2py2.9.5

2014-10-14 Thread Mandar Vaze
https://dl.dropboxusercontent.com/u/18065445/Tmp/saml2.pdf - Link found here : https://groups.google.com/forum/#!searchin/web2py/SAML2/web2py/8DgzUksCmSo/f-jlU5wV20UJ On Tuesday, October 14, 2014 10:33:03 PM UTC+5:30, Mandar Vaze wrote: > > Does this help ? > > https://github.com/w

[web2py] Re: pysaml for web2py2.9.5

2014-10-14 Thread Mandar Vaze
Does this help ? https://github.com/web2py/web2py/blob/447493c754da06b9e455643f6ce2d180add60391/gluon/contrib/login_methods/saml2_auth.py On Tuesday, October 14, 2014 12:53:43 PM UTC+5:30, Prasad Muley wrote: > > Hi All, > I need to implement SSO using pysaml2 for a product. We've Okta as >

[web2py] Re: OWASP Top 10 web app vuln # 10

2014-10-13 Thread Mandar Vaze
s not present in rest of these methods. -Mandar On Monday, October 13, 2014 9:23:23 PM UTC+5:30, Mandar Vaze wrote: > > This seems to be fixed ONLY for login > But issue exists for all other redirections > (Am using 2.9.5-stable+timestamp.2014.03.16.02.35.39) > > e.g. 127.0.0.1:80

[web2py] Re: OWASP Top 10 web app vuln # 10

2014-10-13 Thread Mandar Vaze
This seems to be fixed ONLY for login But issue exists for all other redirections (Am using 2.9.5-stable+timestamp.2014.03.16.02.35.39) e.g. 127.0.0.1:8000/user/profile?_next=http://www.google.com Or http://127.0.0.1:8000/user/logout?_next=http://www.google.com Is there some setting/code that we

[web2py] Re: Web2py sessions table does not exist?

2014-07-24 Thread Mandar Vaze
Cool I learnt a lot from this thread. I used to delete "everything" from both DB as well as applications/myapp/databases folder I think later contains *.table files. I didn't know that I can remove individual *.table files. Also did not know about fake_migration. Gotta try it sometime. In pro

[web2py] Re: DAL query for optional integer field (Postgres)

2014-07-18 Thread Mandar Vaze
On Friday, July 18, 2014 10:42:47 PM UTC+5:30, Leonel Câmara wrote: > > Postgres is right NULL doesn't equal anything dude. > > db((db.user_profile.pets == 1)|(db.user_profile.pets == None)).count() > web2py user mailing list has NEVER failed me Leonel - Thanks a LOT !!! (Yes, it worked.) (I won

Re: [web2py] Alternative IDEs?

2014-07-18 Thread Mandar Vaze
On Monday, July 14, 2014 6:58:51 PM UTC+5:30, Ramos wrote: > > Sublime Text > Does ST have web2py integration ? as sasogeek wrote "help me find methods and variables easily. for example autocomplete options to choose from after using a dot operator?" Are there any plugins for that ? I kno

[web2py] Re: PythonAnywhere Web2py Script

2014-07-18 Thread Mandar Vaze
I have some scripts that do not output anything - but I know they work (Mostly DB initialization, populate initial DB etc.) You can put some print statements in "voltrin_grabber.py" just for debugging - see if you hit those print statements. On Wednesday, July 16, 2014 7:07:21 PM UTC+5:30, Tom R

[web2py] DAL query for optional integer field (Postgres)

2014-07-18 Thread Mandar Vaze
Background : I'm using postgres (web2py 2.9.5 - but I don't think it matters) I have an integer field - which is optional say "Number of pets" I have NOT set any default value (I think for Postgres - this means default NULL) When user does not select from the drop down IS_EMPTY_OR(IS_IN_SET([1

Re: [web2py] Default value in dict returned by the controller

2014-07-01 Thread Mandar Vaze
: > > globals().get(' hide_my_div',False) should return a False, if this is > not present. > > > Kiran Subbaramanhttp://subbaraman.wordpress.com/about/ > > On Tue, 01-07-2014 10:06 PM, Mandar Vaze wrote: > > Hi, > >

[web2py] Default value in dict returned by the controller

2014-07-01 Thread Mandar Vaze
Hi, I have several views which are similar, so I am using common view file using "response.view =common_view.html" rather than separate one per controller. Out of these - 2 or 3 views are slightly different where certain parts of the page (layout.html) need to be hidden. I tried : return dic

[web2py] Re: Best No SQL DB supported by web2py?

2014-06-24 Thread Mandar Vaze
MongoDB has been marked experimental for quite some time - though. On Wednesday, June 18, 2014 7:56:15 AM UTC+5:30, Anthony wrote: > > web2py supports MongoDB as well as the Google App Engine Datastore. There > is also a CouchDB adapter, though not sure how functional it is. > > Anthony > > On Tu

[web2py] Re: How to deploy Web2py on the NEW Openshift directory layout for Python web apps?

2014-06-18 Thread Mandar Vaze
On Wednesday, June 18, 2014 5:33:14 PM UTC+5:30, Mandar Vaze wrote: > > Bump !! > > Can someone respond ? > I tried to deploy using Web2py Admin interface. clicked on "Deploy to > Openshift" > > I checked that some additional commits were successfully done - bu

Re: [web2py] Re: How to use requires with list:reference

2014-06-14 Thread Mandar Vaze / मंदार वझे
This is brilliant !! Thanks a LOT Anthony What I ended up doing is : if request.args(0) == "edit": db.child.parent.requires = IS_IN_DB(.) In my actual setup - user does not create new record - so "new" is not an issue *for me*. -Mandar On Thu, Jun 12, 2014 at 4:57 PM, Anthony wrote:

Re: [web2py] Re: How to use requires with list:reference

2014-06-11 Thread Mandar Vaze / मंदार वझे
Anthony, Let me say that you have been tremendous help. On Wed, Jun 11, 2014 at 6:00 PM, Anthony wrote: > Are you saying you want the user to enter a last name for the child and > then have the drop-down dynamically updated with the list of parents with > the entered last name? If so, obviously

Re: [web2py] Re: How to use requires with list:reference

2014-06-11 Thread Mandar Vaze / मंदार वझे
me. But I need it to work with "lambda" - where last_name is same as that of the child -Mandar > Anthony > > > On Tuesday, June 10, 2014 12:51:20 PM UTC-4, Mandar Vaze wrote: >> >> >> On Tue, Jun 10, 2014 at 7:53 PM, Anthony wrote: >> >>> The f

Re: [web2py] Re: How to use requires with list:reference

2014-06-10 Thread Mandar Vaze / मंदार वझे
ent error mentioned above) I think I'm missing something important Thanks, -Mandar > > Anthony > > > On Tuesday, June 10, 2014 10:05:21 AM UTC-4, Mandar Vaze wrote: >> >> when using default 'list:reference mytable' all the entries from mytable >> are sho

[web2py] How to use requires with list:reference

2014-06-10 Thread Mandar Vaze
when using default 'list:reference mytable' all the entries from mytable are shown in the dropdown (when using SQLFORM.grid) I want to show the list in the drop down after applying some filters Here is an example : db.define_table('parent', Field('fname', 'string'),

Re: [web2py] Re: Virtual Fields do not show in "details" view and are not searchable

2014-06-09 Thread Mandar Vaze / मंदार वझे
On Fri, Jun 6, 2014 at 5:51 PM, Anthony wrote: > Virtual field shows up OK in the "table" view, but : >> > >> 1. It does not appear at all when I click on "View" button >> > > By default, virtual fields don't show up in readonly forms, but you can > list them in the "fields" argument. To pass the

Re: [web2py] Re: How to use HTML5 datalist for Select/dropdown widget ?

2014-06-08 Thread Mandar Vaze / मंदार वझे
> BTW, the autocomplete widget included in web2py seems a pretty clear > winner in this usecase, if you don't want to fiddle with select2. > I looked thru http://web2py.com/books/default/chapter/29/11/jquery-and-ajax#Auto-completion Is there a way to integrate this with SQLFORM.grid (I need auto-c

[web2py] Virtual Fields do not show in "details" view and are not searchable

2014-06-06 Thread Mandar Vaze
I'm on web2py 2.9.5, and using "new style" Virtual fields. Virtual field shows up OK in the "table" view, but : 1. It does not appear at all when I click on "View" button 2. are not used for "default" search Any workarounds ? -Mandar -- Resources: - http://web2py.com - http://web2py.com/book

[web2py] How to use HTML5 datalist for Select/dropdown widget ?

2014-06-06 Thread Mandar Vaze
My application has select/option dropdown - which contains lots of entries (one has about 200 entries, other about 3000 - yes three thousand) I was wondering if there is a way to use HTML5 datalist widget to make the selection user friendly. http://www.w3schools.com/tags/tryit.asp?filename=tryh

[web2py] Re: issue with multi-select widget

2014-06-05 Thread Mandar Vaze
On Wednesday, November 21, 2012 12:38:36 AM UTC+5:30, SamD wrote: > Would'nt it be more convenient to force whatever is passed to behave as a > list (of strings) ? Came across response from Massimo about this here : https://groups.google.com/d/msg/web2py/Je-joYm3ob4/yrhE5r09vI4J TL:DR : Yes

Re: [BangPypers] Help With Python

2014-06-01 Thread Mandar Vaze / मंदार वझे
> Please suggest me a suitable framework. > Web2py Also suggest me resources to learn & some projects to get involved. > http://web2py.com/init/default/documentation http://web2py.com/book -Mandar ___ BangPypers mailing list BangPypers@python.org http

Re: [web2py] Re: Represent, list:reference, upload-field

2014-05-26 Thread Mandar Vaze
A Million Thanks for Johann (for asking the question) and Massimo (for providing the answer). Following is useful even after more than 3 years !!! Web2py rocks, and web2py community makes it even better :) -Mandar On Friday, October 14, 2011 6:56:07 PM UTC+5:30, Johann Spies wrote: > > > > On 1

Re: [BangPypers] Multiple return values from a function : Where to draw the line ?

2014-05-23 Thread Mandar Vaze / मंदार वझे
On Fri, May 23, 2014 at 5:26 PM, Navin Kabra wrote: > "Mandar Vaze / मंदार वझे" writes: > > > Code 1: > > ... > > return dict(fname=fname, lname=lname, saluation=salutation, > > gender=gender, addr1=addr1, addr2=addr2, > > city=ci

[web2py] Re: How to make session variables persist even after logout ?

2014-05-23 Thread Mandar Vaze
Derek, May be I misrepresented my scenario - These aren't exactly preferences. In both the applications - user sees SQLFORM.grid with large number of records. User will use filter to reduce the count. Depending on the user - user is likely to use same filters for quite some time - across logins/

[web2py] How to make session variables persist even after logout ?

2014-05-23 Thread Mandar Vaze
I have two applications using different versions of web2py I'm using session variables to store some sort of user preferences. First one uses version 2.3.2 Here - I set the session variables after user selects their preferences. These values are available even after user logs out and logs back i

[BangPypers] Multiple return values from a function : Where to draw the line ?

2014-05-22 Thread Mandar Vaze / मंदार वझे
Currently I came across the code that returned 9 values (return statement spanned 5 lines due to pep8 limitation of 79 characters per line) The function returns various values that are used by the template to render HTML To give you an idea - consider following two code snippets : (This is just a

Re: [web2py] Re: How to intercept download request

2014-05-22 Thread Mandar Vaze / मंदार वझे
> error, unless you want transfers to block the web2py process... > "Not possible" is acceptable answer (to me). The explanation helps answer "why not" Thanks !! -Mandar > > On Thursday, May 22, 2014 10:46:00 AM UTC-7, Mandar Vaze wrote: > >> Sorry for

Re: [web2py] Re: How to intercept download request

2014-05-22 Thread Mandar Vaze / मंदार वझे
Sorry for the delayed response. On Wed, May 14, 2014 at 12:14 PM, Niphlod wrote: > let's ask another question then. Can you post a link generated by your app > that "downloads" something ? just the part after the domain is enough. > This question definitely helped. Turns out "download" is requ

Re: [web2py] Re: Is there an Easier way to store uploads in the DB (postgres) ?

2014-05-19 Thread Mandar Vaze / मंदार वझे
> On Mon, May 19, 2014 at 11:43 PM, Anthony wrote: > >> Try: >> >> db._adapter.uploads_in_blob = True >> >> Then, when you do: >> >> db.define_table('mytable', Field('myfile', 'upload', uploadfield=True)) >> >> you should get a blob field called db.mytable.myfile_blob with the >> readable and writ

Re: [web2py] Re: Is there an Easier way to store uploads in the DB (postgres) ?

2014-05-19 Thread Mandar Vaze / मंदार वझे
On Mon, May 19, 2014 at 11:43 PM, Anthony wrote: > Try: > > db._adapter.uploads_in_blob = True > > Then, when you do: > > db.define_table('mytable', Field('myfile', 'upload', uploadfield=True)) > > you should get a blob field called db.mytable.myfile_blob with the > readable and writable attribut

[web2py] Is there an Easier way to store uploads in the DB (postgres) ?

2014-05-19 Thread Mandar Vaze
Currently I am using "uploadfield" option of "Field"/table definition to ensure that uploads are stored in DB and not on the filesystem. While this works, this seems tedious because : 1. I have multiple tables with upload fields. If I forget defining "uploadfield" even one of them (or if someon

[web2py] Re: How to intercept download request

2014-05-13 Thread Mandar Vaze
with the debugger but if you're using only on > download() function all your "inspection" MUST be done in that function ^_^ > > On Tuesday, May 13, 2014 1:22:25 PM UTC+2, Mandar Vaze wrote: >> >> I want to audit the downloads - things like "which file was downloaded

[web2py] Re: list:reference

2014-05-13 Thread Mandar Vaze
On Tuesday, May 13, 2014 5:06:52 AM UTC+5:30, Michael Beller wrote: > > I haven't used 'list:reference' before, what are the advantages or use > cases for your approach rather than add a reference field such as > Field('daily', 'reference daily') on the post table? > Generic use case (I could

[web2py] How to intercept download request

2014-05-13 Thread Mandar Vaze
I want to audit the downloads - things like "which file was downloaded, by whom and when" etc - and then allow the download to proceed. I looked at auth.settings.download_url - which is pointing to /app/default/download So I put debugger (import ipdb;ipdb.set_trace()) in download() function in

Re: [web2py] Re: Does Web2py Postgres Adapter support JSON as native type ?

2014-05-09 Thread Mandar Vaze / मंदार वझे
On Thu, May 8, 2014 at 6:25 PM, Anthony wrote: > And here's where it happens in the code: > https://github.com/web2py/web2py/blob/master/gluon/dal.py#L2886 > Thanks for pointing the relevant piece of code. Definitely helps !!! -Mandar -- Resources: - http://web2py.com - http://web2py.com/book

Re: [web2py] Re: Does Web2py Postgres Adapter support JSON as native type ?

2014-05-08 Thread Mandar Vaze / मंदार वझे
of of concept for working with arrays, it's > not stable nor tested. stick to postgres. > > the default adapter for postgres first checks the version of the backend > and then updates the mappings to the proper type is json "native" support > is available. > >

[web2py] Does Web2py Postgres Adapter support JSON as native type ?

2014-05-04 Thread Mandar Vaze
I looked at the gluon/dla.py - and it seems native_json is set to true only for MongoDBAdapter (Default value in BaseAdapter is False) Postgres supports native datatype JSON since 9.3 (9.2?) But PostgresAdapter maps JSON DAL type to TEXT for PostgresAdapter 1. What am I missing (if anything) bec

Re: [PLUG] Ubuntu 14.04 not detecting Tata Photon plus

2014-04-26 Thread Mandar Vaze / मंदार वझे
On Tue, Apr 22, 2014 at 1:19 PM, Saurabh Jain wrote: > Tata Photon Plus net connect is not detected on Ubuntu 14.04. > I tried to reconnect the dongle in various ports but nothing appeared on > FWIW - I am using Tata Photon+ successfully w/ Ubuntu 14.04 In fact - I didn't have to do much (Answer

[web2py] Is MongoDB support still experimental ?

2014-04-17 Thread Mandar Vaze
I have been seeing questions about web2py+mongo as old as 2009 I think Mongo support became official in 2.3.2 (may be earlier ?) but the documentation still continues to say "experimental" I will soon start a development for a product that requires MongoDB Considering our existing product is alrea

[web2py] Re: Remove query db field

2014-03-27 Thread Mandar Vaze
select() query returns list of "Rows" Each "Row" looks like a python dict As far as I know the "keys" are database field names. If you want to "print" the rows as is - you may need to write your custom code to "covert" them to user-friendly titles. DAL is meant to interact with databases smartgr

[web2py] Re: boolean field type in a query.

2014-03-27 Thread Mandar Vaze
Which DB are you using ? The generated SQL seems correct (For MySQL - is_active is set to 'T' for True and 'F' for False) Can you run the (modified, if needed) raw SQL query on the DB ? Just examine various values under the f_test_is_a_clone column. That will give you idea as to what should be

[web2py] Re: uploadfolder default value (MongoDB/web2py version 2.9.4)

2014-03-27 Thread Mandar Vaze
w I can pass it as an argument to DAL - but that is NOT default, that is user supplied) -Mandar On Wednesday, March 26, 2014 10:32:27 PM UTC+5:30, Mandar Vaze wrote: > > I think this might be a false alarm on my part. > In another project I used mysql - where ( I assume) self._adapt

Re: [web2py] Remove query db field

2014-03-26 Thread Mandar Vaze
In your original email you did mention smartgrid It is not clear when you say "simple db select query" Are you using select query on the commandline of the DB ? Or is it a DAL query ? If it is DAL query - headers are not returned/shouldn't matter -Mandar On Wednesday, March 26, 2014 7:57:11 PM

[web2py] Re: boolean field type in a query.

2014-03-26 Thread Mandar Vaze
You should try .. & (db.t_tests.f_test_is_a_clone == False) that is how built-in is_active boolean works. For additional debugging learning - try printing db._lastsql after your query. It will show you "raw" query - It helps narrow down the problem -Mandar On Wednesday, March 26, 2014 5:38:4

  1   2   3   4   >