[web2py] Re: creating records in web2py after migration to postgresql

2021-04-01 Thread Aydin
you have a question, because I an struggling to understand what it is? > > On Thursday, 1 April 2021 at 14:04:20 UTC+1 Aydin wrote: > >> I can create records in the interface of the postgresql and they show up >> in the web2py database admin. But the user I created in postgr

[web2py] Re: creating records in web2py after migration to postgresql

2021-04-01 Thread Aydin
f you use postgresql or not? Because as I said in the frist post, they do not get created. On Thursday, April 1, 2021 at 8:42:25 AM UTC-4 Aydin wrote: > I have moved my database from SQlite to postgresql. The problem I have is > that when I try to create any table, it does not return any

[web2py] creating records in web2py after migration to postgresql

2021-04-01 Thread Aydin
I have moved my database from SQlite to postgresql. The problem I have is that when I try to create any table, it does not return any notice and refreshes the page and does not create the record. I have some tables and none of them create a record. I am creating the records using admin page on

[web2py] Varying membership

2020-01-21 Thread Aydin
I have a bunch of accounts in web2py and I want to create for each a group that additional users could access those accounts. For example, account 1 has a group id 1 and now I want to add additional users to this group. The problem I have is how can I use this group id to authorize. Meaning that

[web2py] User registration additional conditions

2020-01-16 Thread Aydin
I have added an extra field in the auth_user and I want to check user's entry with a pre-poulated field (call field1) in another table (call Table1) when the user presses sign up. If a user's entry existed then set the registration_key to " " from "Pending". I formed the following from what I

[web2py] Re: Web2py registration of a second user verified by the first user

2020-01-16 Thread Aydin
Thanks for the reply. I will update this on the path I chose. On Thursday, January 16, 2020 at 5:05:32 PM UTC-5, Dave S wrote: > > > > On Thursday, January 16, 2020 at 5:49:47 AM UTC-8, Aydin wrote: >> >> In my web2py app, I want to allow members that have the same

[web2py] Web2py client device information

2020-01-16 Thread Aydin
Is there a way to get the client device information such as the device and OS used? I know that we can get the public IP but for device and OS type could not find any reference. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source

[web2py] Web2py registration of a second user verified by the first user

2020-01-16 Thread Aydin
In my web2py app, I want to allow members that have the same key access the same information. The first user uses a key to register (key added to the Auth_user) and no verification is needed. Now, when the second user wants to sign up and uses the same key, I want an email to be sent to the firs

[web2py] Re: Pass variable from JavaScript function to controller: Using JSQueryBuilder

2019-07-31 Thread Aydin
Anthony, how to pass multiple variables, say result1 and result2? On Thursday, September 22, 2016 at 2:18:01 PM UTC-4, Anthony wrote: > > "result" is a Javascript variable, so it does not exist in the Python > context in which the URL() function is evaluated. Instead, you must add > that part of

[web2py] web2py webfaction unable to upload

2018-01-07 Thread Aydin
I tried all those tricks here and in other forums to resolve this, shutdown the web2py and restarted it. no luck in fixing this. Any idea? Any one recently has dealt with this? Any help is appreciated. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.c

[web2py] Web2py server crash, C extensions? lib directory

2017-12-25 Thread Aydin
I just experienced server crash that was running web2py. These are the logs: [] [wsgi:error] Timeout when reading response headers from daemon process 'test': test/web2py/wsgihandler.py [] [wsgi:error] Timeout when reading response headers from daemon process 'test': test/web2py/wsgihandler.py [

[web2py] Web2py appliance TinyWebsite not working with Web2py 2.15.3

2017-12-14 Thread Aydin
TinyWebsite appliance which was a good example is not working with Web2py 2.15.3. https://github.com/espern/tiny_website -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Rep

[web2py] Re: Simple scheduler issue

2017-01-02 Thread Aydin
s which just spins the scheduler process. > > On Monday, January 2, 2017 at 8:28:37 PM UTC+1, Aydin wrote: >> >> I had perfectly fine working app using scheduler in 2015, I tried to use >> that one but when trying to run the schedule (-K my app), the app does not >> run

[web2py] Re: Simple scheduler issue

2017-01-02 Thread Aydin
s not work well with web2py. I don't think there is anything wrong with the code I am using. On Monday, January 2, 2017 at 1:58:25 PM UTC-5, Aydin wrote: > > Sure, here are the databases I have tried to create: > > # db2 = DAL('sqlite://scheduler_storage.sqlite') > #

[web2py] Re: Simple scheduler issue

2017-01-02 Thread Aydin
pported. On Monday, January 2, 2017 at 1:38:42 PM UTC-5, Dave S wrote: > > > > On Monday, January 2, 2017 at 8:22:55 AM UTC-8, Aydin wrote: >> >> I used the exact example shown by massimo (https://vimeo.com/27478796) >> and it gets stuck at (starting single-scheduler fo

[web2py] Re: Simple scheduler issue

2017-01-02 Thread Aydin
s to process). > > On Sunday, January 1, 2017 at 5:14:21 PM UTC+1, Aydin wrote: >> >> I have used the scheduler before without being worried about the database >> type. >> I tried to use mysql but it gave an error that it is not supported. I >> have mysql and

[web2py] Re: Simple scheduler issue

2017-01-02 Thread Aydin
, Niphlod wrote: > > scheduler definitely works for mysql. > what you experienced is perfectly fine. a scheduler process just sits > there if there is nothing to do (i.e. no tasks to process). > > On Sunday, January 1, 2017 at 5:14:21 PM UTC+1, Aydin wrote: >> >> I

[web2py] Re: Simple scheduler issue

2017-01-02 Thread Aydin
s nothing to do (i.e. no tasks to process). > > On Sunday, January 1, 2017 at 5:14:21 PM UTC+1, Aydin wrote: >> >> I have used the scheduler before without being worried about the database >> type. >> I tried to use mysql but it gave an error that it is not supported.

[web2py] Web2py scheduler breaks connection tot he server

2017-01-02 Thread Aydin
I cann't get the scheduler run in my ubuntu or debian linux machines. Originally I had db = DAL('sqlite://storage.sqlite') which causes a weird situation where the website becomes unavailable (the browser cannot establish a connection to the server at 127.0.0.1) but when I run the same app with

[web2py] Re: Simple scheduler issue

2017-01-01 Thread Aydin
I have used the scheduler before without being worried about the database type. I tried to use mysql but it gave an error that it is not supported. I have mysql and pymysql installed and created a database "testdb" and used the manual format and got that error that it is not supported. On Satu

[web2py] Simple scheduler issue

2016-12-31 Thread Aydin
I have a simple task to schedule: def f(): import time return() from gluon.scheduler import Scheduler Scheduler(db,dict(our_function=f)) When I run it with python web2py -K myapp, it gets stuck in "starting single-scheduler for "myapp"..." for long time and if I wait long enough it give

[web2py] URL (controller function) call with authentication

2016-12-27 Thread Aydin
I am trying to call a a function externally. I have a function: @auth.requires_login() @service.json def func(a): db.table1.insert(data1=a) db.commit() return locals() This has two problems: 1) When I use urllib2.urlopen("https://www.example.com/default/call/func.json/2) which do

[web2py] Re: read a field of auth_user

2016-10-07 Thread Aydin
Thanks Anthony, Absolutely worked fine. On Friday, October 7, 2016 at 10:35:33 AM UTC-4, Anthony wrote: > > On Friday, October 7, 2016 at 9:48:45 AM UTC-4, Aydin wrote: >> >> Thanks, information = auth.user.newfield worked as expected. >> I just want to mentioned w

[web2py] Re: read a field of auth_user

2016-10-07 Thread Aydin
The first one worked:information = auth.user.newfield The second did not:rows = db(db.auth_user.id==auth.user.id ).select(db.auth_user.newfield) On Friday, October 7, 2016 at 9:51:15 AM UTC-4, Marlysson Silva wrote: > > Don't worked? > > Em sexta-feira, 7 de outubro de 2016 10:4

[web2py] Re: read a field of auth_user

2016-10-07 Thread Aydin
feira, 7 de outubro de 2016 10:00:51 UTC-3, Aydin escreveu: >> >> This is a simple question but I couldn't find the answer for it. >> How can I read a custom field in the auth_user? >> I have added a new field to auth_user table by: >> auth.settings.extra_fields['

[web2py] Re: read a field of auth_user

2016-10-07 Thread Aydin
I tried rows = db().select(db.auth_user.id==auth.user.id).newfield but it did not work On Friday, October 7, 2016 at 9:24:21 AM UTC-4, Aydin wrote: > > Thanks, > > I do not want to read the newfield for all auth users but only for the > current auth user. > > On Friday, Oc

[web2py] Re: read a field of auth_user

2016-10-07 Thread Aydin
Thanks, I do not want to read the newfield for all auth users but only for the current auth user. On Friday, October 7, 2016 at 9:05:39 AM UTC-4, 黄祥 wrote: > > pls try: > rows = db().select(db.auth_user.ALL) > for row in rows: > print row.newfield > > if you want to explicit it : > rows = db().s

[web2py] read a field of auth_user

2016-10-07 Thread Aydin
This is a simple question but I couldn't find the answer for it. How can I read a custom field in the auth_user? I have added a new field to auth_user table by: auth.settings.extra_fields['auth_user']= [ Field('newfield','string') ] now I want to read that value in the controller using db().sele

[web2py] Authenticate using IP address and a password

2016-10-04 Thread Aydin
Could anyone help with one or more of these questions: 1- I have web2py running on a machine and I want to be able to connect to it using an app LOCALLY. I want to use the local IP address of web2py server and a password as authentication. I get the ip address of web2py server and can store it i

[web2py] Re: JSON getting the series data into view

2016-09-13 Thread Aydin
Yes, thats the reason i think. Thanks! -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google

[web2py] Re: JSON getting the series data into view

2016-09-13 Thread Aydin
Sorry that was my mistake, the actual code was:

[web2py] Re: JSON getting the series data into view

2016-09-13 Thread Aydin
Im sure it has to do with my code not web2py. Yes in the browser i did /app/default/getdata and it returned correctly [[1,2],[2,3]]. By the way i import json and also use @service.json. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (

[web2py] JSON getting the series data into view

2016-09-12 Thread Aydin
The methods to get the data in the view of web2py does not seem working. I used the method mentioned in http://web2py.com/books/default/chapter/29/10/services which is

[web2py] Re: Best way to send data from web2py client to web2py server

2016-07-21 Thread Aydin
the same time. (by the way I cann't use sharing databases because the machines don't have domain associated with them and their ip is dynamic). On Thursday, July 21, 2016 at 11:13:49 AM UTC-4, Anthony wrote: > > On Thursday, July 21, 2016 at 8:22:21 AM UTC-4, Aydin wrote: >&g

[web2py] Re: Best way to send data from web2py client to web2py server

2016-07-21 Thread Aydin
d of data? > > On Wednesday, July 20, 2016 at 5:59:18 AM UTC-7, Aydin wrote: >> >> What's the best way to send data from web2py clients to a web2py server? >> Especially when there are many web2py clients that at the same time send >> data to the web2py ser

[web2py] Re: Best way to send data from web2py client to web2py server

2016-07-21 Thread Aydin
e 2016 09:59:18 UTC-3, Aydin escreveu: >> >> What's the best way to send data from web2py clients to a web2py server? >> Especially when there are many web2py clients that at the same time send >> data to the web2py server? Thanks for the help >> > -- Re

[web2py] Best way to send data from web2py client to web2py server

2016-07-20 Thread Aydin
What's the best way to send data from web2py clients to a web2py server? Especially when there are many web2py clients that at the same time send data to the web2py server? Thanks for the help -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/

[web2py] Re: creating an accessible file with public access

2016-07-13 Thread Aydin
OK, I could read the file. The permission of it was OK; it was that I had a typo in my url. if someone wants to change the permission of a file os.chmod can do it. I'm gonna go with the external sharing of the databases tho. On Tuesday, July 12, 2016 at 4:03:53 PM UTC-4, Aydin wrote: &g

[web2py] Re: creating an accessible file with public access

2016-07-12 Thread Aydin
I'm using browser to access it. But it returns invalid. It's interesting because I have other files in static folder and they can be accessed such as Web2py.css. I'm starting to think that maybe when I create the file, it does not give it permission to read by default. I will check that later. B

[web2py] creating an accessible file with public access

2016-07-12 Thread Aydin
I am creating a file (test.txt) using the following myfile = os.path.join(request.folder, 'static', 'test.txt') f = open(myfile, 'w') f.write('%s' % x) and I like to see it when I do /myapp/static/test.txt, but I cann't. the file has been created and I can see it in that folder.

Re: [web2py] Re: Write in database from modules

2015-12-08 Thread Aydin S
Thanks, that makes sense. Ok test2 in the above code comes from a potentiometer that is sensed inside the module. Right now I'm not really doing anything specific and I'm using the code I put in here; I'm just trying to learn. So what you said matches with my tests that with http request it gets

Re: [web2py] Re: Write in database from modules

2015-12-08 Thread Aydin S
:31 UTC-5, Aydin S wrote: > > I am testing it with a test code which is exactly what I wrote so there is > only one table with my field. > I think it makes sense, that's why there is scheduler and cron developed > for web2py. I'm trying to understand if I should run model1

Re: [web2py] Re: Write in database from modules

2015-12-08 Thread Aydin S
py cron or scheduled task. On Tuesday, 8 December 2015 13:58:37 UTC-5, Richard wrote: > > 15 seconds... how many tables does your app has? I think you are doing > something wrong somewhere... > > Richard > > On Tue, Dec 8, 2015 at 1:53 PM, Aydin S > > wrote: > >>

Re: [web2py] Re: Write in database from modules

2015-12-08 Thread Aydin S
eed to restart web2py... Or user > track change feature, but in the past it was broken don't know if now it > works properly... > http://web2py.com/books/default/chapter/29/04/the-core?search=track_changes > > On Tue, Dec 8, 2015 at 1:33 PM, Aydin S > > wrote: > >>

Re: [web2py] Re: Write in database from modules

2015-12-08 Thread Aydin S
In other words, module1 does not seem to run unless I refresh the website. On Tuesday, 8 December 2015 13:28:26 UTC-5, Aydin S wrote: > > Here is what I have: > > In model db.py I have: > > db.define_table('Table1', > Field('var1', '

Re: [web2py] Re: Write in database from modules

2015-12-08 Thread Aydin S
.commit() or not. > > Richard > > On Tue, Dec 8, 2015 at 1:05 PM, Aydin S > > wrote: > >> I got another question if you could help. >> The database does not get updated without I refresh the website in this >> scenario. I don't know why it is, do I need

Re: [web2py] Re: Write in database from modules

2015-12-08 Thread Aydin S
>>> >>> and in the module module1.py?: >>> >>> def module1(): >>> db = current.db >>> var2=db().select(db.Table1.var1, orderby=~db.Table1.id, limitby=(0, >>> 1))[0].var1 >>> >>> Thanks >>> >>&g

[web2py] Update the database without refreshing the website?

2015-12-08 Thread Aydin S
I am running into this issue that the database does not update without refreshing the website. In model db.py I have: db.define_table('Table1', Field('var1', 'integer'), from module1 import insert_record insert_record(db) and in a module1 I write on the database and also get access to the d

[web2py] Write in database from modules

2015-12-04 Thread Aydin S
This might be asked before and I already found a similar question in here: https://groups.google.com/forum/#!topic/web2py/0k0Fvw6fmb8 but this seemed a bit confusing. How to write on database from within a module? I have a table defined in db.py (model) as follows: db.define_table('Table1', F

[web2py] images in {{for index,image in enumerate(images):}} of my tiny website app.

2015-09-24 Thread Aydin S
I am trying to learn from "my tiny website" app and use the slide show that it is used there in the "images/images.html" view. I created a new view like default/mynewpage.html and copied "images/images.html" view into it; when I ran it there was an error " "images" is not defined. I did some de

[web2py] Re: Can web2py have two scheduler tasks?

2015-07-05 Thread Aydin S
Thanks for the guidance, it worked after correcting the format I was creating new tasks. On Sunday, 5 July 2015 15:08:43 UTC-4, Anthony wrote: > > On Sunday, July 5, 2015 at 11:15:56 AM UTC-4, Aydin S wrote: >> >> I'm trying to run two different function with two differen

[web2py] Re: Can web2py have two scheduler tasks?

2015-07-05 Thread Aydin S
I'm trying to run two different function with two different periodic times. I think what you mean is that I still can do it using from gluon.scheduler import Scheduler Scheduler(db,dict(function1=f1,function2=f2)) and then in the schedule use function1 and function2 to create two different peri

[web2py] Interrupts in the web2py environment?

2015-07-05 Thread Aydin S
Is there a way to create interrupts in the web2py environment? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are s

[web2py] Can web2py have two scheduler tasks?

2015-07-05 Thread Aydin S
I'm trying to create a second model and use scheduler to run it periodically, but an error happens that the table exist already. I use this at the end of the model: from gluon.scheduler import Scheduler Scheduler(db,dict(function=f)) And the error is correct because the first model that has the

[web2py] initilize GPIO in web2py-Scheduler

2015-05-22 Thread Aydin S
I'm trying to set a pin to high (for instance) in a periodic way using web2py in an embedded linux. I set the GPIO to output for example : GPIO.setup(pin 20, output) and then if x>y GPIO.setup(pin 20, high) and run the scheduler every 10 second The problem with this is that every 10 second when

[web2py] Re: An approach to initialize a linux running machine using web2py

2015-05-21 Thread Aydin S
Thanks, yes the web2py is started from /etc/init.d I wonder if I do that the imported pins will be in the web2py environment? On Wednesday, 20 May 2015 17:50:11 UTC-4, Dave S wrote: > > > > On Wednesday, May 20, 2015 at 1:56:50 PM UTC-7, Aydin S wrote: >> >> I'm t

Re: [web2py] Error in scheduler

2015-05-21 Thread Aydin S
grate=False) > > On Wed, May 20, 2015 at 9:25 PM, Aydin S > > wrote: > >> When I try to create a new model in web2py for scheduller I get an error. >> The model is as follows >> >> `def f(): >> a = 2 >> return () >> >> from

[web2py] Re: An approach to initialize a linux running machine using web2py

2015-05-20 Thread Aydin S
Wednesday, May 20, 2015 at 12:28:37 PM UTC-7, Aydin S wrote: >> >> I want to initialize a few things on a linux machine running web2py >> server. Meaning that a init.py file to be run in the boot, things >> initilized in init.py will be used in web2py environment, can sch

[web2py] An approach to initialize a linux running machine using web2py

2015-05-20 Thread Aydin S
I want to initialize a few things on a linux machine running web2py server. Meaning that a init.py file to be run in the boot, things initilized in init.py will be used in web2py environment, can scheduler do it? If so, I should set the number of repeats to 1? -- Resources: - http://web2py.c

[web2py] Error in scheduler

2015-05-20 Thread Aydin S
When I try to create a new model in web2py for scheduller I get an error. The model is as follows `def f(): a = 2 return () from gluon.scheduler import Scheduler scheduler = Scheduler(db,dict(our_function=f)) I get the following error: ` Traceback (most recent call last): File "/h

[web2py] Re: Form to get a value and process

2015-04-29 Thread Aydin S
I double checked my scheduler and found out a problem and fixed; right now it is working as expected. Thanks for the help and guidance. On Wednesday, 29 April 2015 17:19:44 UTC-4, Aydin S wrote: > > Yes, I got it, thanks. There is one problem regarding scheduler though. > In my con

[web2py] Re: Form to get a value and process

2015-04-29 Thread Aydin S
t; > Anthony > > On Wednesday, April 29, 2015 at 2:38:05 PM UTC-4, Aydin S wrote: >> >> Thanks Anthony, This works fine, I also added the field name because I >> want to get only the value of X, so I used: >> db(db.Table1).select(db.Table1.X, orderby=~db.Table1.i

[web2py] Re: Form to get a value and process

2015-04-29 Thread Aydin S
able1.id, limitby=(0, 1)) > > That sorts in reverse order based on ID and takes the first record. > Alternatively, you could include a record creation timestamp and sort based > on that. > > Anthony > > On Wednesday, April 29, 2015 at 9:31:50 AM UTC-4, Aydin S wrote: >> >&g

[web2py] Re: Form to get a value and process

2015-04-29 Thread Aydin S
it use the last entered row? On Wednesday, 29 April 2015 08:27:22 UTC-4, Anthony wrote: > > See answer on SO: http://stackoverflow.com/a/29932995/440323 > > On Tuesday, April 28, 2015 at 9:35:31 PM UTC-4, Aydin S wrote: >> >> It looks like the scheduler which is a model file

[web2py] Re: Form to get a value and process

2015-04-28 Thread Aydin S
It looks like the scheduler which is a model file does not see variable X in the database! On Tuesday, 28 April 2015 21:19:14 UTC-4, Aydin S wrote: > > No, the value of the form gets processed every time the scheduler runs. > > On Tuesday, 28 April 2015 21:07:42 UTC-4,

[web2py] Re: Form to get a value and process

2015-04-28 Thread Aydin S
No, the value of the form gets processed every time the scheduler runs. On Tuesday, 28 April 2015 21:07:42 UTC-4, Dave S wrote: > > > > On Tuesday, April 28, 2015 at 6:01:04 PM UTC-7, Aydin S wrote: >> >> This is probably very simple, sorry in advance! >> I have

[web2py] Form to get a value and process

2015-04-28 Thread Aydin S
This is probably very simple, sorry in advance! I have a form defined in a model file: db.define_table('table1', Field('X', 'integer')) I have a controller that is also defined as: def index(): form = SQLFORM(db.X) return dict(form=form) In my index view file I have: Input form {{=form

[web2py] ATTENTION: Login requires a secure (HTTPS) connection or running on localhost.

2015-04-23 Thread Aydin S
I read the solutions for this error, could not resolve it. Before, I had the following code in the access.py deleted and everything worked fine. if request.is_https: session.secure() elif not request.is_local and not DEMO_MODE: raise HTTP(200, T('Admin is disabled because insecure channel'

[web2py] Scheduler on Debian (Beaglebone)

2015-04-22 Thread Aydin S
Hi, Upstart does not exist in the debian on beaglebone and i do not want to mess with that. There is a script developed in https://github.com/web2py/web2py/blob/master/scripts/setup-scheduler-centos.sh which uses chkconfig to add the service to the start up. chkconfig also does not exist in the

[web2py] web2py on debian run on startup

2015-02-09 Thread Aydin S
I've installed web2py using sudo ./setup-web2py-ubuntu.sh on Debian (BBB) However, web2py does not start on startup. I did a test I did service web2py start, it did not start. In another test I did service web2py stop and then service web2py start and it worked. Does anyone have any idea what

[web2py] Error using update-rc.d trying to get web2py run on startup

2015-02-08 Thread Aydin S
I appreciate if anyone can help with the following issue: I'm trying to run web2py in startup on beaglebone (linux Debian). The problem is that it does not start on the boot; however when i do service web2py start, it starts and works. The reason I know it does not start on the boot is that b

[web2py] Re: Error while trying to run web2py in startup linux

2015-02-01 Thread Aydin S
process exited, code=exited status=2 systemd[1]: Unit web2py.service entered failed state. Any idea what's going on? On Sunday, 1 February 2015 16:12:04 UTC-5, Aydin S wrote: > > Hi, I finally got to know that web2py is best to be used in the startup > using system level configu

Re: [web2py] Trying to run web2py from linux, all ports fail

2015-02-01 Thread Aydin S
Yes, I got it thanks. On Friday, 30 January 2015 09:16:51 UTC-5, Michele Comitini wrote: > > One trick that could somewhat accelerate the release of a port not > properly closed by a server is trying to connect to it. > for instance: > > nc 127.0.0.1 8000 > > and then CTRL-C > > the trick awakes

[web2py] Re: Run web2py in public IP without explicit IP address - linux

2015-02-01 Thread Aydin S
Thanks that was useful. On Friday, 30 January 2015 22:34:30 UTC-5, Massimo Di Pierro wrote: > > This should not be the case. > > > http://stackoverflow.com/questions/20778771/what-is-the-difference-between-0-0-0-0-127-0-0-1-and-localhost > > On Friday, 30 January 2015 16

[web2py] Error while trying to run web2py in startup linux

2015-02-01 Thread Aydin S
Hi, I finally got to know that web2py is best to be used in the startup using system level configuration not as cron. I gave up running it from crontab because it didn't work. I read http://web2py.com/books/default/chapter/29/13#One-step-production-deployment and implemented what is said in th

[web2py] Why web2py does not run on startup using crontab

2015-01-31 Thread Aydin S
Hi, does anyone know why web2py does not run on startup using crantab? (linux machine) When I call web2py.py normally in terminal it works fine, python web2py.py. When I put the following command in the crantab it does not run. @reboot python /root/web2py.py & I've tested to see if the cronta

[web2py] Re: Run web2py in public IP without explicit IP address - linux

2015-01-30 Thread Aydin S
, 2015 at 2:43:02 PM UTC+1, Aydin S wrote: >> >> Hi, i tried to run web2py from public IP in linux like this: web2py -i >> hostname -a pass >> It did not work. I realized it was due to using hostname; it works fine >> when doing web2py -i 192.168.0.0(for example) -a

[web2py] Run web2py in public IP without explicit IP address - linux

2015-01-30 Thread Aydin S
Hi, i tried to run web2py from public IP in linux like this: web2py -i hostname -a pass It did not work. I realized it was due to using hostname; it works fine when doing web2py -i 192.168.0.0(for example) -a pass Is there any way to not enter the IP address every time? I know web2py itself rea

Re: [web2py] Trying to run web2py from linux, all ports fail

2015-01-30 Thread Aydin S
Now the question is, my IP is dynamic, is there any way to run web2py from public IP always without the need to enter the IP address? Web2py it self gets the IP address, is there anyway to use that? sexta-feira, 30 de Janeiro de 2015 às 08:14:48 UTC-5, Aydin S escreveu: > > I found ou

Re: [web2py] Trying to run web2py from linux, all ports fail

2015-01-30 Thread Aydin S
, in windows it works fine with the public IP. Any idea what's going on? sexta-feira, 30 de Janeiro de 2015 às 08:06:26 UTC-5, Aydin S escreveu: > > Thanks for the replies. > > Mirko, do you mean I should wait for couple of minutes and run web2py and > it will work? >

Re: [web2py] Trying to run web2py from linux, all ports fail

2015-01-30 Thread Aydin S
typically ties up the port for several >> minutes after the process has completed.*The length of the associated >> timeout varies on different operating systems, and may be dynamic on some >> operating systems, however typical values are in the range of one to four >> min

[web2py] Trying to run web2py from linux, all ports fail

2015-01-29 Thread Aydin S
Hi, I'm trying to run web2py from linux. However, it fails with this error: ERROR:Rocket.Errors.Port8000:Socket hostname:8000 in use by other process and it won't share. WARNING:Rocket.Errors.Port8000:Listener started when not ready. I have tried various ports like 8001, and it fails still. Ther

[web2py] Re: Modify source to run web2py server with a pre-selected server IP

2015-01-29 Thread Aydin S
I found it out. Just used the hostname after -i. quinta-feira, 29 de Janeiro de 2015 às 21:33:08 UTC-5, Aydin S escreveu: > > Thanks so much for the very useful and precise answer. I understood, > however, what I meant with public IP was not 0.0.0.0, I mean public IP > assigned t

[web2py] Re: Modify source to run web2py server with a pre-selected server IP

2015-01-29 Thread Aydin S
e). From now on, you can start web2py simply > issuing > > web2py.py -i 0.0.0.0 -p 8000 -a '' > > and web2py won't ask for a single thing. > > BTW: all commandline options are documented here > <http://web2py.com/books/default/chapter/29/04/the-core#Command

[web2py] Modify source to run web2py server with a pre-selected server IP

2015-01-29 Thread Aydin S
Hi, how to run web2py without a need to specify the IP? Running machine is linux. I know how to modify the file widget.py to eleminate the need for password, but I'm stuck to get it work with an pre-selected IP, meaning that to get web2py server to run from public IP always and not to ask me to

[web2py] Re: show title and some text of a link

2013-09-02 Thread Aydin S
er it when the link is entered. > > For scraping, look into the > http://docs.python-requests.org/en/latest/(requests library) and go from > there. > > Regards, > Ales > > On Monday, September 2, 2013 7:41:57 PM UTC+2, Aydin S wrote: >> >> How can title and s

[web2py] show title and some text of a link

2013-09-02 Thread Aydin S
How can title and some text of a link be displayed under it? For example, if a link is posted to the website, it can show the title and some of the first characters in its body. Take a news link for an example... -- --- You received this message because you are subscribed to the Google Groups

[web2py] Customizing login form

2013-04-17 Thread Aydin S
I am trying to customize the location and appearance of the login form. I am looking for the easiest way to do this. I am using return dict(login=auth.login()) in my default.py and {{=login} in my html. I have tried couple of things posted in here, but I found them vague and not quite understan