Re: [web2py] Re: modular web2py - need help

2019-01-06 Thread sandeep patel
Thank you, Massimo, Now it's working Thanks & Regards Sandeep On Sat, Jan 5, 2019 at 11:42 PM Massimo Di Pierro < massimo.dipie...@gmail.com> wrote: > > If you are getting the error: > > ImportError: cannot import name 'Cookie' > > Either your are not installing the latest pydal or you have two

Re: [web2py] Re: modular web2py - need help

2019-01-06 Thread Carlos Cesar Caballero Díaz
I know it's not too much originality, but perhaps web2py-template? Or perhaps something like insole or markings. Greetings. El 6/1/19 a las 11:56 a.m., Massimo Di Pierro escribió: Fantastic! Thank you. Will include and deploy today or tomorrow. How should we call this package? Massimo On Su

Re: [web2py] Re: modular web2py - need help

2019-01-06 Thread Massimo Di Pierro
Fantastic! Thank you. Will include and deploy today or tomorrow. How should we call this package? Massimo On Sunday, 6 January 2019 08:15:58 UTC-8, Carlos Cesar Caballero wrote: > > I have created a pydal-like structure for templates, including an initial > setup.py and tests (there is also a f

Re: [web2py] Re: modular web2py - need help

2019-01-06 Thread Carlos Cesar Caballero Díaz
I have created a pydal-like structure for templates, including an initial setup.py and tests (there is also a fix for python 3 when running standalone), you can take a look at https://github.com/cccaballero/web2py/tree/modular_templates/gluon/packages/template Greetings. El 5/1/19 a las 1:18

Re: [web2py] Re: modular web2py - need help

2019-01-06 Thread Carlos Cesar Caballero Díaz
Hi Massimo, there is already a package called template in pypi, how should we name the new template module? Greetings. El 5/1/19 a las 1:18 p.m., Massimo Di Pierro escribió: Anybody wants to help 1) moving the scheduler and validator tests into pydal. 2) moving the template tests into gluon/pa

[web2py] Re: modular web2py - need help

2019-01-05 Thread Massimo Di Pierro
Anybody wants to help 1) moving the scheduler and validator tests into pydal. 2) moving the template tests into gluon/packages/template/tests 3) create a gluon/packages/template/setup.py Massimo -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2p

[web2py] Re: modular web2py - need help

2019-01-05 Thread Massimo Di Pierro
If you are getting the error: ImportError: cannot import name 'Cookie' Either your are not installing the latest pydal or you have two versions (one in Python site-packages?). If you can import pydal from outside the web2py folder, then the problem is the latter. Un-install it because it will

Re: [web2py] Re: modular web2py - need help

2019-01-03 Thread 黄祥
pardon, can't help further not using win env for the moment, but tested in python 3.6.6 work docker pull ubuntu docker run -it ubuntu /bin/bash apt update apt install -y curl bzip2 git curl -L -O -C - https: //repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh bash Miniconda*.sh sourc

Re: [web2py] Re: modular web2py - need help

2019-01-03 Thread sandeep patel
@Stifan OS Windows 10, Python 3.6.6 The shell sign is indicated in *nix environment because I am using Git Bash CLI. Thanks SP On Thu, Jan 3, 2019 at 8:13 PM 黄祥 wrote: > pls provide your environment (os and python version), the log errors > indicate in windows but the shell sign is indicate in

Re: [web2py] Re: modular web2py - need help

2019-01-03 Thread 黄祥
pls provide your environment (os and python version), the log errors indicate in windows but the shell sign is indicate in *nix environment the step provided before tested in mac and also in run well in ubuntu n debian docker pull ubuntu docker run -it ubuntu /bin/bash docker pull debian docker

Re: [web2py] Re: modular web2py - need help

2019-01-03 Thread sandeep patel
@Carlos Cesar, I am in error trap. :( I have done the same steps git clone --recursive https://github.com/web2py/web2py.git cd web2py git checkout modular cd gluon/packages/dal/ git checkout modular cd ../../../ python setup.py python web2py.py But I am still getting the same error. Please give

Re: [web2py] Re: modular web2py - need help

2019-01-03 Thread Carlos Cesar Caballero Díaz
Hi, most of the compatibility imports where moved from gluon to pydal compat module, so, if web2py does not find the 'Cookie' module, is because it either is not imported in gluon or pydal, so, I think that you are not using the modular branch of pydal. Start the steps again as @sitfan post in

Re: [web2py] Re: modular web2py - need help

2019-01-02 Thread sandeep patel
@Carlos Cesar Caballero, I have taken the same steps as you suggested but I am getting the same error. Robodia@DESKTOP-E4IOU2U MINGW64 /d/TestingWeb3py/web2py/gluon/packages/dal (modular) $ python ../../../setup.py Traceback (most recent call last): File "../../../setup.py", line 4, in fro

Re: [web2py] Re: modular web2py - need help

2019-01-02 Thread 黄祥
yes, you r right, previous error before is due to the lack of step i took - git checkout must run twice in web2py folder and web2py/gluon/packages/dal - execute python (setup.py) must be in web2py folder can't be from another path e.g. web2py/gluon/packages/dal then python ../../../setup.py will

Re: [web2py] Re: modular web2py - need help

2019-01-02 Thread Carlos Cesar Caballero Díaz
Hi, this is working for me: git clone --recursive https://github.com/web2py/web2py.git git checkout modular cd web2py/gluon/packages/dal/ git checkout modular cd ../../../ Greetings. El 2/1/19 a las 9:24 p.m., 黄祥 escribió: thx carlos, here is the steps i took | git clone --recursive https://

Re: [web2py] Re: modular web2py - need help

2019-01-02 Thread 黄祥
thx carlos, here is the steps i took git clone --recursive https://github.com/web2py/web2py.git cd web2py/gluon/packages/dal/ git checkout modular $ python -V Python 3.7.1 $ python ../../../setup.py Traceback (most recent call last): File "../../../setup.py", line 85, in start() File "../

Re: [web2py] modular web2py - need help

2019-01-02 Thread Carlos Cesar Caballero Díaz
I like a LOT the idea, my initial tests seems to work ok in Python 3.6.7 on Ubuntu except the test_web ones are failing. Tell me please, that one of the new year resolution is to have web2py in pypi :) That's something I would love to help make a reality. This are my wishes: 1- pypi 2- The

Re: [web2py] Re: modular web2py - need help

2019-01-02 Thread Carlos Cesar Caballero Díaz
Guys, I think you need to include the "modular" branch of pydal too: cd gluon/packages/dal/ git checkout modular Greetings. El 2/1/19 a las 4:32 a.m., 黄祥 escribió: same here test using conda | $ uname Darwin $ python -V Python3.7.1 $ git clone --recursive https://github.com/web2py/web2py.gi

Re: [web2py] Re: modular web2py - need help

2019-01-02 Thread 黄祥
same here test using conda $ uname Darwin $ python -V Python 3.7.1 $ git clone --recursive https://github.com/web2py/web2py.git $ cd web2py $ git checkout modular $ python setup.py Traceback (most recent call last): File "setup.py", line 4, in from gluon.fileutils import tar, untar, read

Re: [web2py] Re: modular web2py - need help

2019-01-01 Thread sandeep patel
I am getting an ImportError error during setup. Steps: git clone --recursive https://github.com/web2py/web2py.git git checkout modular python setup.py Traceback (most recent call last): File "setup.py", line 4, in from gluon.fileutils import tar, untar, read_file, write_file File "D:\T

[web2py] Re: modular web2py - need help

2019-01-01 Thread Massimo Di Pierro
It passes all tests now. it is not finished yet but I succeeded in moving scheduler and validators into pydal (they depend on it anyway) and making template stand alone (I found some pre-existing bugs in it). I did not publish the latter to pypi but I will do it later in the week. I could use s

[web2py] Re: modular web2py - need help

2019-01-01 Thread 黄祥
pardon, just following your new year's wish in another thread, think it would be web3py repo ok, going to try after it's ready thx n best regards, stifan -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.goo

[web2py] Re: modular web2py - need help

2019-01-01 Thread Massimo Di Pierro
Mind I found some errors myself. You want to wait 1-2h so that I fix those first On Tuesday, 1 January 2019 16:52:39 UTC-8, Massimo Di Pierro wrote: > > You are looking at the wrong thing. That is some very old code and it is > not going anywhere. > > git clone --recursive https://github.com/web

[web2py] Re: modular web2py - need help

2019-01-01 Thread Massimo Di Pierro
You are looking at the wrong thing. That is some very old code and it is not going anywhere. git clone --recursive https://github.com/web2py/web2py.git git fecth modular git checkout modular Massimo On Tuesday, 1 January 2019 16:35:53 UTC-8, 黄祥 wrote: > > how to test it ? > $ python -V > Pytho

[web2py] Re: modular web2py - need help

2019-01-01 Thread 黄祥
how to test it ? $ python -V Python 3.6.7 :: Anaconda, Inc. $ git clone --recursive https://github.com/web2py/web3py $ python web3py/start.py Traceback (most recent call last): File "web3py/start.py", line 8, in from gluon.main import main_wsgi_app, main File "/Users/sugizo/Downloads/lea

[web2py] modular web2py - need help

2019-01-01 Thread Massimo Di Pierro
Based on my new years resolution: - I posted a new web2py branch called modular. - I moved template.py into its own folder planning to make its own package - I refactored validators.py and scheduler.py and moved them into pydal (also branch modula) Thoughts? Can you help testing that nothing br

[web2py] Need help with student attendance app

2017-05-05 Thread Toe Khaing Oo
I'm building student attendance app. It has 3 databases, *class*, *student *and *attendance*. db.define_table('classes', Field('name', notnull=True, requires=IS_NOT_EMPTY()), Field('created_on', 'datetime', default=request.now), format = '%(name)s

[web2py] Need help to debug this error when using URL from gluon/html.py

2016-12-20 Thread Lisandro
Hi there! I have a web2py application running, it's been running for a long time, it is a website that serves hundreds of thousands of visits per day, and everything works really good. However, everyonce in a while (let's say, every 3-4 days) an error ticket is generated with this traceback: Tr

[web2py] Need help with VideoTest!!

2016-11-21 Thread Sharad Shrestha
I am trying to upload and play video using web2py. I am able to upload and play video. However, everytime I upload video I have to run this code in termial. To run VideoTest: # cd /path/to/web2py/ # nohup python web2py.py -S VideoTest -M -R applications/VideoTest/modules/video

[web2py] Need help to understand (and reproduce) this error

2016-09-12 Thread Lisandro
Hi there! I have a simple view with a form (with GET method), in order to allow my visitors to do some search. The controller/function that processes the get is this: def search(): session.forget(response) query = "tsv @@ plainto_tsquery('%s')" % request.vars.q total = db.executesql(

[web2py] need help with FORM.confirm

2016-03-02 Thread Viator
Hello! I use a SQLFORM to enter client data which works perfectly. The problem: when adding a new record I want the user to confirm that some of the entered data is also entered into a second database table but I cant' get the confirmation dialog to run. The recommended way form = FORM.conf

[web2py] need help connecting to a second database for a copy of application

2016-01-28 Thread Jordan Myers
Hello everyone, I've developed an application that uses postgresql as its backend and I want to make a copy of the application on the same server (running on the same instance of web2py) to be used as the deployed version while I continue work on the development version. I used web2py to package

Re: [web2py] Need help with inno Plugin/Web2pyPackagingApp

2015-12-11 Thread Jitun John
Thanks for the reply Massimiliano. You were correct. That needed a change. That brought up the myapp/default/inno interface. But it looks like the inno.py has lot more issues. Some files needed change Source: "tcl\*"; DestDir: "{app}\tcl"; Flags: ignoreversion recursesubdirs createallsubdirs So

Re: [web2py] Need help with inno Plugin/Web2pyPackagingApp

2015-12-11 Thread Massimiliano
Sorry I didn’t understand the question. keep your inno.py in yourapp/modules/ the problem is in inno.py in this line: form=SQLFORM(self.db.innoinfo,1,showid=False,col3={…. try to change it to form=SQLFORM(self.db.innoinfo,*None*,showid=False,col3={ On Fri, Dec 11, 2015 at 4:07 PM, Massimi

Re: [web2py] Need help with inno Plugin/Web2pyPackagingApp

2015-12-11 Thread Massimiliano
pip search inno return a couple of suitable entries On Fri, Dec 11, 2015 at 2:08 PM, Jitun John wrote: > Hi, > > I am using Web2pyPackagingApp to build a binary distribution of the app. > I have searched for the"inno plugin" on the web.. but cant find anything. > >1. Download and install th

[web2py] Need help with inno Plugin/Web2pyPackagingApp

2015-12-11 Thread Jitun John
Hi, I am using Web2pyPackagingApp to build a binary distribution of the app. I have searched for the"inno plugin" on the web.. but cant find anything. 1. Download and install the inno plugin into your web2py development environment. So I thought it might be the "inno.py" file provided in

[web2py] Need help with routes

2015-09-29 Thread Vinicius Assef
Hi there. Routes is an area in Web2py I never really understood. :-( I need your help. I have the following routes.py in web2py.dir: ``` # web2py/routes.py # -*- coding: utf-8 -*- logging = 'debug' default_application = 'myapp' routes_app = ((r'/(?Pwelcome|admin)\b.*', r'\g'),

[web2py] Need help displaying value from the controller to view

2015-04-10 Thread DXX
Hi all, Im really new to coding and im trying to do a little project for learning purposes. Im controlling some leds attached to a raspberry pi. Currently this is code im using to turn on the GPIO22: *on default.py* def index(): return dict(message='LED Test - Main Menu') def redon():

Re: [web2py] Need help with web2pyslices plugin administration

2015-04-09 Thread Niphlod
uhm. usually I just: - login to web2pyslices - click on "wrote n slices" button (redirects to something like http://www.web2pyslices.com/slice/list?author=*some_integer*) - click on my slice title (redirects to something like http://www.web2pyslices.com/slice/show/*an_integer/title_slug*) - click

Re: [web2py] Need help with web2pyslices plugin administration

2015-04-09 Thread Carlos Cesar Caballero Díaz
Same problem here, I can´t publish my plugins in web2pyslices, some months ago I post the problem, but I don´t get any answer. El 09/04/15 a las 08:00, Mirek Zvolský escribió: I have added plugin_MANAGE_GROUPS to web2pyslices, but the download link is broken. Proper one is zvolsky.github.io/

[web2py] Need help with web2pyslices plugin administration

2015-04-09 Thread Mirek Zvolský
I have added plugin_MANAGE_GROUPS to web2pyslices, but the download link is broken. Proper one is zvolsky.github.io/plugin_manage_groups/web2py.plugin.manage_groups.w2p I see the plugin in web2py admin application, "Download plugins from repository", i.e. at the url localhost:8000/admin/default/

Re: [web2py] Need help with app configuration -- $

2015-03-17 Thread Michele Comitini
What's the db? 2015-03-17 4:56 GMT+01:00 weheh : > I need help performance tuning my app. I have budget. The app is python > 2.7.x, web2py latest release, Apache 2.4, mod_wsgi, Windows 7 server. The > app on the server is running almost many times slower than on dev platform, > which doesn't use

[web2py] Need help with app configuration -- $

2015-03-16 Thread weheh
I need help performance tuning my app. I have budget. The app is python 2.7.x, web2py latest release, Apache 2.4, mod_wsgi, Windows 7 server. The app on the server is running almost many times slower than on dev platform, which doesn't use Apache or mod_wsgi. I'm at wits end and need some help

[web2py] Need help to achieve url rewrite

2014-06-27 Thread Lisandro
I have an application called init, the app has a controller called default.py and inside it I have three functions: 1) /init/default/index --> The home of the website. 2) /init/default/contact --> The contact page. 3) /init/default/store This function receives an argument: the slug of the n

[web2py] Need help with a query

2014-06-05 Thread Ruud Schroen
Hi there, In my app there is the possibility to become friends. This is my model: db.define_table('friendship', Field('source_user', 'reference auth_user'), Field('target_user', 'reference auth_user'), Field('accepted', 'boolean', default=False)

[web2py] Need help rewriting url so that "http://mydomain.com/myapp" looks like "http://myapp.mydomain.com/"

2014-03-12 Thread Lisandro
I'm using web2py on production with lighttpd. My site has two web2py applications: "init" and "guide". I already created routes.py to hide "init" from the url. In addition, I would like that "guide" application appears as a subdomain, so that every url of this form "mydomain.com/guide/" looks l

[web2py] need help with query

2014-03-04 Thread Bastiaan van der Veen
Somehow my replies all got deleted. I want one item per group(the newest) and then filter by id_status and count how many groups have that certain id_status. This should be possible i think. I had a nice example in one of those deleted post, but i don't know how i can get that back. -- Resou

[web2py] need help with query

2014-02-28 Thread servicepunt . drachten
Hi, I have the following table: db.define_table("track_trace", Field("id_reparaties", "reference reparaties", requires=[IS_IN_DB(db, 'reparaties.id')]), Field("id_status", "reference status"), Field("opmerking", "string", default=""),

[web2py] need help to improve download of dynamic images (nginx)

2013-08-22 Thread Adi
Hello everyone. Am trying to populate a page with around 20 dynamic images from the upload folder, but they get rendered extremely slow, even as thumbnails. Tried using a suggest approach from the forum "fast_download()", but without luck in my case. Anyone has a suggestion, what should I b

[web2py] need help testing app

2013-07-20 Thread greaneym
Hello, I would like to share an app with the web2py community, and also am asking for help testing it. https://github.com/greaneym/weather It needs more work but please feel free to try it. It gave me some practice using BeautifulSoup. It uses the National Weather Service's web service to pr

Re: SOLVED : Re: [web2py] Need help : Errors when running web2py app using uWSGI on Webfaction

2013-05-13 Thread Roberto De Ioris
> > >> You get memory errors, just remove limits (64 MB address space are not >> enough for sure). > > > As I mentioned later in my question - removing --limit-as 64 did not help > either. > If anything - it may have made things worse - I got SegFault (See my > original post) You said you reduc

SOLVED : Re: [web2py] Need help : Errors when running web2py app using uWSGI on Webfaction

2013-05-13 Thread Mandar Vaze
> You get memory errors, just remove limits (64 MB address space are not > enough for sure). As I mentioned later in my question - removing --limit-as 64 did not help either. If anything - it may have made things worse - I got SegFault (See my original post) Anyway, it seems like as you m

Re: [web2py] Need help : Errors when running web2py app using uWSGI on Webfaction

2013-05-13 Thread Roberto De Ioris
> Hi, > > I'm trying to setup web2py to use uWSGI using the instructions from > https://groups.google.com/d/msg/web2py/DOKMzOsppFk/91BZtU2cCQkJ > > The only difference being - I used "pip install uwsgi" rather than compile > it, as mentioned in the above link. > uWSGI version that got installed is

[web2py] Need help getting "cgihandler.py" to work

2013-04-19 Thread Alec Taylor
I have a server which only supports talking to Python using CGI. It also requires a custom shebang line. I was able to get the sample one working, from: http://wiki.python.org/moin/CgiScripts But I can't figure out how to make the "cgihandler.py" version work. Thanks for all suggestions, Alec T

Re: [web2py] need help with typeahead widget

2013-03-22 Thread Richard Vézina
With the SELECT, better initialisation and no more roundtrip to get the value representation : def autocomplete_typeahead_widget(field, value, referenced_table, represent_field, id_field, controller, **kwargs): table_name = field._tablename field_name = field.name field_requires = fiel

Re: [web2py] need help with typeahead widget

2013-03-20 Thread Richard Vézina
It could be less complicated if the hidden field were of select I guess since value and representation could be easier to get on form reload... I may refactor this when I get time... Richard On Wed, Mar 20, 2013 at 5:04 PM, Richard Vézina wrote: > Finally solve my problem like that... Not very

Re: [web2py] need help with typeahead widget

2013-03-20 Thread Richard Vézina
My understanding of the problem is that the test2_test1_id_ac input field is not part of the form and web2py don't keep the value on page refresh... But I can't figure out how other jquery plugin does ot keep value of added field... no... I am correcting myseld... I do understand, since they recrea

Re: [web2py] need help with typeahead widget

2013-03-20 Thread Richard Vézina
You right Richardo, I will do a dummy app... So less time impact on anyone who want to help! I read at your code and no sure where you were going by the little change you made to the code I provide... I get back in a couples of minutes with dummy app. Richard On Tue, Mar 19, 2013 at 9:59 PM,

Re: [web2py] need help with typeahead widget

2013-03-19 Thread Ricardo Pedroso
On Tue, Mar 19, 2013 at 11:15 PM, Richard wrote: > Hello, > > I wrote a typeahead autocomplete widget and work around many little issues, > but now I have one that I have no clue how to solve... > > You can find the code here : > https://groups.google.com/d/msg/web2py/Fs-tAH75fGY/6VtZ32x6lMAJ > >

[web2py] need help with typeahead widget

2013-03-19 Thread Richard
Hello, I wrote a typeahead autocomplete widget and work around many little issues, but now I have one that I have no clue how to solve... You can find the code here : https://groups.google.com/d/msg/web2py/Fs-tAH75fGY/6VtZ32x6lMAJ When the form get submit and the validators trigger the input v

[web2py] need help with groupby in grid

2012-12-07 Thread Mark
Hello, I have following records in a table for example: id, key, value 10, AA, 838 11, BB, 135 12, BB, 147 13, AA, 400 14, AA, 999 15, AA, 625 db.define_table('test', Field('key'), Field('value')) I want to display the max value in each key group in the grid, such as: 12, BB, 147 14, AA, 999 q

[web2py] need help: No space left on device

2012-12-07 Thread Vasile Ermicioi
hi, I know that this is not because of web2py, but I am getting an error which says "No space left on device" Is it because of no space on disk or can be also something else? Traceback (most recent call last): File "/home/myuser/web2py/gluon/main.py", line 447, in wsgibase parse_get_post_

Re: [web2py] Need help... testing new DAL

2012-10-02 Thread Johann Spies
On 2 October 2012 04:32, Massimo Di Pierro wrote: > > This is a big change in the source and the internal logic is complex. > It may have some unforeseen side effects. > PLEASE TEST THAT TRUNK DOES NOT BREAK YOUR CODE before this makes it into > stable. > I am using postgresql as backend. On an

[web2py] Need help... testing new DAL

2012-10-01 Thread Massimo Di Pierro
There is a big change in DAL. a = DAL(uri) b = DAL(uri) now "a is b" because DAL is a singleton (almost). It is a thread local singleton as long a uri is specified. What does this mean in practice? It means that unless you have lazy virtual fields, Row and Rows objects can be serialized (pickl

[web2py] Need help with impersonate

2012-09-15 Thread Michael Ellis
I haven't worked with impersonate before. Thought I understood from the manual how to set it up, but apparently not. When I try to impersonate another user, I get "Forbidden" when I hit Submit after entering the user id. I'm running on localhost. Here's what the shell says I have in the au

[web2py] need help with sandbox testing pos plugin

2012-09-14 Thread greaneym
In the process of sandbox testing with the POS plusing and google checkout, in the pos plugin, the instructions indicate in the model to add, 4) in your payment page add the button http://your.urlname.com'))}}" /> and the web2py-users group queries shows that this is older and won't work anym

[web2py] Re: New webapp www.DocMator.com uses web2py , need help with login

2012-09-09 Thread howesc
assuming that the posted version of the code is what you are using: - line 25, 26: you need to put your twitter key and secret in. (but don't post them) - line 73, 74: you need to put your facebook appid and secret in. (but don't post them) for the problems with google redirection, can you pu

[web2py] New webapp www.DocMator.com uses web2py , need help with login

2012-09-07 Thread Akash Kakkar
Hi All, I have recently launched a web application DocMator , *I would appreciate your Feedback on the application usefulness, usability and suggestions for improvements and enhancements (http://www.docmator.com ) * This application uses web2py framework. Users can logi

[web2py] need help testing google checkout with pos plugin

2012-09-04 Thread greaneym
Hello, I would like to test the google_checkout_plugin and need some help, please. This are the names of the plugin I downloaded: web2py.plugin.google_checkout.w2p and web2py.app.PosOnlineStore.w2p Does this first plugin provide the functionality (of what is described in the Google developer doc

[web2py] need help testing memcache

2012-08-15 Thread Massimo Di Pierro
the logic has been rewritten. If you have code that uses web2py+memcache, can you check it still works for you? --

Re: [web2py] need help combine autocomplete and web2py slice SELECT_OR_ADD_OPTION

2012-04-25 Thread Richard Vézina
Up! Richard On Tue, Apr 24, 2012 at 4:24 PM, Richard wrote: > Hello, > > I modify SELECT_OR_ADD_OPTION in order to combine autocomplete widget and > the SELECT_OR_ADD_OPTION widget, but only thing I get from autocomplete in > form is it instance id : > > > > Here what I change in SELECT_OR_ADD_

[web2py] need help combine autocomplete and web2py slice SELECT_OR_ADD_OPTION

2012-04-24 Thread Richard
Hello, I modify SELECT_OR_ADD_OPTION in order to combine autocomplete widget and the SELECT_OR_ADD_OPTION widget, but only thing I get from autocomplete in form is it instance id : Here what I change in SELECT_OR_ADD_OPTION : class SELECT_OR_ADD_OPTION(object): def __init__(self, contro

[web2py] need help with unicode decoding/encoding upload file

2012-03-11 Thread weheh
I'm embarrassed to say that I'm *still* having trouble getting unicode working on uploaded files. I'm sure this is an incredibly stupid easy thing to do, but unicode has never come easy for me. # model db.define_table('infile', Field('name', 'upload',uploadseparate=True)) # controller for upl

Re: [web2py] Need help understanding a line of code

2012-02-17 Thread Bruce Wade
title is a field in the image table, when displayed in the form it will show the title instead of the id in the combo-box On Fri, Feb 17, 2012 at 4:02 PM, davidkw wrote: > Hi, I'm going through the web2py tutorial and I don't understand part > of this line: > > db.comment.image_id.requires = IS_

[web2py] Need help understanding a line of code

2012-02-17 Thread davidkw
Hi, I'm going through the web2py tutorial and I don't understand part of this line: db.comment.image_id.requires = IS_IN_DB(db, db.image.id, '%(title)s') I understand that this requires that the image ID of the image the comment is under should be in the database. However, I don't understand what

[web2py] Need help with selecting multiple rows into a single row

2012-01-20 Thread Adi
I am trying to export all rows from two tables, (e.g. purchase orders, and items) into a csv file, but if possible would like to export a single row per each purchase order (with belonging items divided into separate columns of the same row). I'm using MySQL, if it makes the difference. I read

[web2py] Need help with drag-n-drop using jQuery

2012-01-17 Thread Frank Hall
I'm prototyping a scheduling board with drivers in the columns and their deliveries in the rows to prove that I can reassign deliveries using drag-n-drop under web2py. I have developed a matrix of movable cells that I based on Massimo's Excel Spreadsheet module. I can drag-n-drop cells just fin

Re: [web2py] Need Help with Custom Form Widget (Possible web2py Bug)

2011-12-30 Thread Ross Peoples
Thanks Bruno! To solve it, you used CAT() instead of returning a list. I have updated my code and tested. Thanks again for the help!

Re: [web2py] Need Help with Custom Form Widget (Possible web2py Bug)

2011-12-30 Thread Bruno Rocha
I got the same problem, I think I solved it (but I cant remember how) it is working here: http://labs.blouweb.com/movuca3/article/show/3/flying-spaguetti-monster (you can register/login to test) I am using your plugin in comments and also in article creator. The source is in github. On Fri, Dec

[web2py] Need Help with Custom Form Widget (Possible web2py Bug)

2011-12-30 Thread Ross Peoples
Was recently informed of a problem with plugin_ckeditor that I have been trying to solve for a while now, but I think it may actually be a web2py bug. First of all, here is the widget: def widget(self, field, value, **attributes): """ To be used with db.table.field.widget to set

Re: [web2py] Need help hiding inactive records from smartgrid

2011-12-21 Thread Jim Steil
Right, but you can pass a query along in the constraints argument. Here is a sample pulled from one of my apps: # Build query if searchText and searchText .strip() != '': queries.append(db.asset.description.contains(searchText)) if assetTypeId and assetTypeId > 0: q

[web2py] Need help hiding inactive records from smartgrid

2011-12-21 Thread Cliff
In business applications it is generally a bad idea to delete records of purchases, sales, etc. At the same time you want indexes to include records of active things, such as active customers. A simple way to manage this requirement is to use an is_active boolean field. Then in your index functi

[web2py] need help with xmlrpclib

2011-12-21 Thread Mirek Zvolský
I have a xmlrpc service in Web2py (1.99.3 or 1.99.4). When I try: import xmlrpclib server = xmlrpclib.ServerProxy('https://zvolsky: @www.ereceipts-server.com:8001/ereceipts_server/services/call/xmlrpc', verbose=True) server.gettime() then I receive proper result from gettime() method and th

[web2py] need help for rewrite on routes.py

2011-11-13 Thread Bruno Rocha
Hi, I was playing a lot with routes, router and rewrite.py to reach url rewriting for translation but I am missing something. I have a controller: # *default*.py *def articles(): > from handlers import articles* * response.view = articles.views['list']* * return articles.list*

[web2py] need help with encoding/decoding uploaded files [closed]

2011-09-04 Thread weheh
On Sep 4, 5:40 pm, weheh wrote: > > .

[web2py] need help with encoding/decoding uploaded files

2011-09-04 Thread weheh
Can anyone please help with what looks like it should be a small unicode problem? I've got an upload field. I enter the filename in an input form and submit. My controller's accept manually stores the uploaded file using db.mytable.myfield.store. I then read the file contents, process them, and wr

[web2py] need help on ajax() post

2011-02-24 Thread zhao peng
hi, I defined two functions in controllers/default.py: def submit_comment(): . def people(): ... and in the default/people.html, I want to use ajax to post data to submit_comment(): ajax('submit_comment',['id', 'author', 'text'],'comment_list_'+id); but by my testing, the ajax()

[web2py] Need help setting up a composite key

2011-02-07 Thread Mark Hayes
I'm new to web2py and can't seem to find out how to create a composite key. Specifically I'm trying to create the following tables: db.define_table('volunteer', Field('first_name', 'string', length=30, notnull=True), Field('last_name', 'string', length=30, notnull=True), Field('birthd

[web2py] Need Help Using CRUD with Self-Referencing Tables

2011-01-12 Thread SaltyCow
Hello there... I'm hoping that this is a common problem with a simple solution. I'm attempting to create an app that uses self-referencing tables, in one case to refer to employees and their managers (who themselves are also employees). I used the app wizard to generate the scaffolding. I am able

Re: [web2py] need help with db table

2011-01-05 Thread Richard Vézina
Not sure to understand... Why not referring to the to auth_user.id? Why copy user information and not querring it when you are ready from db.auth_user ??? Richard On Wed, Jan 5, 2011 at 5:49 AM, pk wrote: > hi, > i know that i can check one field with IS_NOT_IN_DB() > but i need the two field

[web2py] need help with db table

2011-01-05 Thread pk
hi, i know that i can check one field with IS_NOT_IN_DB() but i need the two fields which deposit not together in one row, in my case 'hauptperson' and 'freund'. here is my table: # ## Tabelle Freunde

Re: [web2py] Need help

2010-12-19 Thread sushanth
Sorry typo mistake dogs.teamname is defined.

Re: [web2py] Need help

2010-12-19 Thread sushanth
Sorry typo mistake dogs.names is defined.

Re: [web2py] Need help

2010-12-19 Thread Martin.Mulone
I dont't understand this line: seems to me that dogs_teamname is not defined db.users.team.requires = IS_IN_DB(db, 'dogs.teamname', ' dogs_teamname')

Re: [web2py] Need help

2010-12-19 Thread sushanth
Hi Kenneth, Current web2py using : 1.90.2 Yes,i have tried.

Re: [web2py] Need help

2010-12-19 Thread Kenneth Lundström
Have you tried to upgrade to 1.90.2 that uses the new DAL interface? Kenneth https://groups.google.com/forum/#!topic/pymysql-users/vrnKcoE6ZD0

[web2py] Need help

2010-12-18 Thread sushanth
Hi, Can any one help on this issue. https://groups.google.com/forum/#!topic/pymysql-users/vrnKcoE6ZD0 Thanks sushanth

[web2py] need help with update query where field names the same in source & dest tables

2010-11-19 Thread Audra Rudys
This ought to be simple and yet... How do I write the following query in web2py? UPDATE dest, src SET dest.field = src.field WHERE src.dest_id = dest.id I only need to run it once. Tried via database administration module, but the problem seems to be that the source and destination field names ar

[web2py] Need help installing MySQLdb in Mac OSX

2010-10-17 Thread Franklin Freitas
Has anyone been able to install MySQLdb in Mac OSX ??? I want to use it with Web2py but haven't been able to make it work. I've read a whole bunch of forums saying how hard it is, I've done everything I've reead about it without any results. I even used macports as recommended by my Web2py teacher

[web2py] need help on join with aliased tables

2010-10-12 Thread Audra Rudys
Please help! I'm trying to join using the same table twice, thus I need to do an alias. This is the first time I've ever tried an alias, so I don't know if I'm doing this right. If I were writing SQL code, I would write something like the following: SELECT db.work.*, db.tcolor.html_code, db.ccol

  1   2   >