Re: [web2py] Re: Web2py: Update table content after submit action

2019-05-27 Thread Dave S


On Sunday, May 26, 2019 at 4:44:06 AM UTC-7, Lovedie JC wrote:
>
> Hi Dave. I have struggled with this for long but never got a good answer.
> Do you have an example where in the view page:
> {{=form}}
> in the primary page is used but the page is not refreshing 
>
>
 No.  If your  page is primarily the table, then you might look at the 
Datatables library, as I understand it works well with jQuery.  I haven't 
tried this yet.  Or scan the archives for "single page app",  You might 
also look at Massimo's examples for web3py.

/dps


On Sun, 26 May 2019, 11:16 Dave S > wrote:
>
>>
>>
>> On Saturday, May 25, 2019 at 6:59:44 PM UTC-7, Cristina Sig wrote:
>>>
>>> Hello everyone,
>>>
>>> I have a table filled with records from a database. 
>>>
>>> Also, I have a button to add a new record. Once I enter all the data for 
>>> the new record and press the submit button, I want to update the content of 
>>> the table without reloading the page (without F5).
>>>
>>> I'm struggling to find a solution to this so any suggestions would be 
>>> welcomed.
>>>
>>>
>>>
>> Sounds like a job for jQuery or for the LOAD() helper .  I use one to 
>> have a secondary form on the same page as another; the DIV used by the LOAD 
>> gets refreshed when I submit the secondayr form, but the page doesn't 
>> relaod.
>>
>> https://web2py.com/books/default/chapter/29/11/jquery-and-ajax#>
>> > https://web2py.com/books/default/chapter/29/12/components-and-plugins#Components-LOAD-and-Ajax
>> >
>>
>> Good luck!
>>
>> /dps
>>
>> [original post continues]
>>
>> Database
>>>
>>> db.define_table('Student',
>>> Field('name', 'string', label='Name'),
>>> Field('last_Name', 'string', label='Last Name'),
>>> Field('age', 'integer', label='Age'),
>>> Field('nationality', 'string', label='Nationality'),
>>>)
>>>
>>>
>>> Controller (Tools.py)
>>>
>>> def studentNew():
>>> formStudent=crud.create(db.Student)
>>> if formStudent.accepted:
>>> response.js = '(function($) 
>>> {$("#myModalADD").modal("hide");}(jQuery));'  //hide modal after press 
>>> submit button
>>> response.flash = 'Record added successfully!' //displays message 
>>> after press submit
>>> return dict(formStudent=formStudent)
>>>
>>>
>>> View
>>>
>>> 
>>> $(document).ready(function(){
>>>tabla= $('#table').DataTable( {
>>>'scrollX': true,
>>>'responsive':true,
>>>'sRowSelect': "single",
>>>   });
>>> 
>>>
>>> >> data-target="#myModalADD" data-toggle="modal" 
>>> data-backdrop="static" data-keyboard="false">Add New Student
>>>
>>> >> cellspacing="0" width="100%" >
>>>
>>>
>>>   Name
>>>   Last Name
>>>   Age
>>>   Nationality
>>>
>>> 
>>> 
>>> {{for student in formListar:}}
>>> 
>>> {{=student.Student.name}}
>>> {{=student.Student.last_name}}
>>> {{=student.Student.age}}
>>> {{=student.Student.nationality}}
>>> 
>>> {{pass}}
>>> 
>>> 
>>>
>>>  //Modal that contains the Add New 
>>> Student Form and Submit button
>>>   
>>> 
>>>   
>>>Add New Student
>>>   
>>>{{=LOAD('Tools','studentNew', ajax=True, 
>>> ajax_trap=True)}}
>>>   
>>>   
>>> >> data-dismiss="modal">Cancel
>>>  
>>>   
>>> 
>>>   
>>> 
>>>
>>>
>>>
>>> -- 
>> 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 Groups 
>> "web2py-users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to web...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/web2py/aa06f194-1787-4551-abc0-204e03b15146%40googlegroups.com
>>  
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
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 Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/8901bfb3-f2cd-4e82-b805-fec1902eef1b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


RE: [web2py] Re: Web2py: Update table content after submit action

2019-05-26 Thread John Bannister
Hi Lovedie JC,

 

Is there any reason why you don’t just use the SQLFORM.gird? You can check for 
the ‘new’ , ‘edit’ etc in request.args in the view and put the form in a modal 
or whatever styling you want to use.

 

The alternative if you need to use the LOAD helper is probably to put both the 
form and the grid in the same function you are loading from the view. 

 

My personal preference is to use the standard Web2py SQLFORM.grid which has all 
the crud functionality already embedded which greatly simplifies coding.

 

BR

John 

 

From: web2py@googlegroups.com [mailto:web2py@googlegroups.com] On Behalf Of 
Lovedie JC
Sent: 26 May 2019 14:00
To: web2py@googlegroups.com
Subject: Re: [web2py] Re: Web2py: Update table content after submit action

 

I tried with www.web2py.com/AlterEgo/default/show/252

I have to keep refreshing the page for the form to reappear. 

 

 

On Sun, 26 May 2019, 14:43 Lovedie JC  wrote:

Hi Dave. I have struggled with this for long but never got a good answer.

Do you have an example where in the view page:

{{=form}}

in the primary page is used but the page is not refreshing 

 

On Sun, 26 May 2019, 11:16 Dave S  wrote:



On Saturday, May 25, 2019 at 6:59:44 PM UTC-7, Cristina Sig wrote:

Hello everyone,

I have a table filled with records from a database. 

Also, I have a button to add a new record. Once I enter all the data for the 
new record and press the submit button, I want to update the content of the 
table without reloading the page (without F5).

I'm struggling to find a solution to this so any suggestions would be welcomed.

 

 

Sounds like a job for jQuery or for the LOAD() helper .  I use one to have a 
secondary form on the same page as another; the DIV used by the LOAD gets 
refreshed when I submit the secondayr form, but the page doesn't relaod.

 

https://web2py.com/books/default/chapter/29/11/jquery-and-ajax# 
<https://web2py.com/books/default/chapter/29/11/jquery-and-ajax> >

https://web2py.com/books/default/chapter/29/12/components-and-plugins#Components-LOAD-and-Ajax>

 

Good luck!

 

/dps

 

[original post continues]

 

Database

db.define_table('Student',
Field('name', 'string', label='Name'),
Field('last_Name', 'string', label='Last Name'),
Field('age', 'integer', label='Age'),
Field('nationality', 'string', label='Nationality'),
   )

 

Controller (Tools.py)

def studentNew():
formStudent=crud.create(db.Student)
if formStudent.accepted:
response.js = '(function($) 
{$("#myModalADD").modal("hide");}(jQuery));'  //hide modal after press submit 
button
response.flash = 'Record added successfully!' //displays message after 
press submit
return dict(formStudent=formStudent)

 

View


$(document).ready(function(){
   tabla= $('#table').DataTable( {
   'scrollX': true,
   'responsive':true,
   'sRowSelect': "single",
  });


Add New Student


   
   
  Name
  Last Name
  Age
  Nationality
   


{{for student in formListar:}}

{{=student.Student.name}}
{{=student.Student.last_name}}
{{=student.Student.age}}
{{=student.Student.nationality}}

{{pass}}



 //Modal that contains the Add New 
Student Form and Submit button
  

  
   Add New Student
  
   {{=LOAD('Tools','studentNew', ajax=True, 
ajax_trap=True)}}
  
  
Cancel
 
  

  


 

-- 
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 Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/aa06f194-1787-4551-abc0-204e03b15146%40googlegroups.com
 
<https://groups.google.com/d/msgid/web2py/aa06f194-1787-4551-abc0-204e03b15146%40googlegroups.com?utm_medium=email_source=footer>
 .
For more options, visit https://groups.google.com/d/optout.

-- 
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 Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/CAAcHJF934Qw%2BpLYwKDTRMVxuZ38aFbnafWSS%2BDMrcM7Rp3WGdA%40mai

Re: [web2py] Re: Web2py: Update table content after submit action

2019-05-26 Thread Lovedie JC
I tried with www.web2py.com/AlterEgo/default/show/252
I have to keep refreshing the page for the form to reappear.


On Sun, 26 May 2019, 14:43 Lovedie JC  wrote:

> Hi Dave. I have struggled with this for long but never got a good answer.
> Do you have an example where in the view page:
> {{=form}}
> in the primary page is used but the page is not refreshing
>
> On Sun, 26 May 2019, 11:16 Dave S  wrote:
>
>>
>>
>> On Saturday, May 25, 2019 at 6:59:44 PM UTC-7, Cristina Sig wrote:
>>>
>>> Hello everyone,
>>>
>>> I have a table filled with records from a database.
>>>
>>> Also, I have a button to add a new record. Once I enter all the data for
>>> the new record and press the submit button, I want to update the content of
>>> the table without reloading the page (without F5).
>>>
>>> I'm struggling to find a solution to this so any suggestions would be
>>> welcomed.
>>>
>>>
>>>
>> Sounds like a job for jQuery or for the LOAD() helper .  I use one to
>> have a secondary form on the same page as another; the DIV used by the LOAD
>> gets refreshed when I submit the secondayr form, but the page doesn't
>> relaod.
>>
>> https://web2py.com/books/default/chapter/29/11/jquery-and-ajax#>
>> > https://web2py.com/books/default/chapter/29/12/components-and-plugins#Components-LOAD-and-Ajax
>> >
>>
>> Good luck!
>>
>> /dps
>>
>> [original post continues]
>>
>> Database
>>>
>>> db.define_table('Student',
>>> Field('name', 'string', label='Name'),
>>> Field('last_Name', 'string', label='Last Name'),
>>> Field('age', 'integer', label='Age'),
>>> Field('nationality', 'string', label='Nationality'),
>>>)
>>>
>>>
>>> Controller (Tools.py)
>>>
>>> def studentNew():
>>> formStudent=crud.create(db.Student)
>>> if formStudent.accepted:
>>> response.js = '(function($) 
>>> {$("#myModalADD").modal("hide");}(jQuery));'  //hide modal after press 
>>> submit button
>>> response.flash = 'Record added successfully!' //displays message 
>>> after press submit
>>> return dict(formStudent=formStudent)
>>>
>>>
>>> View
>>>
>>> 
>>> $(document).ready(function(){
>>>tabla= $('#table').DataTable( {
>>>'scrollX': true,
>>>'responsive':true,
>>>'sRowSelect': "single",
>>>   });
>>> 
>>>
>>> >> data-target="#myModalADD" data-toggle="modal"
>>> data-backdrop="static" data-keyboard="false">Add New Student
>>>
>>> >> cellspacing="0" width="100%" >
>>>
>>>
>>>   Name
>>>   Last Name
>>>   Age
>>>   Nationality
>>>
>>> 
>>> 
>>> {{for student in formListar:}}
>>> 
>>> {{=student.Student.name}}
>>> {{=student.Student.last_name}}
>>> {{=student.Student.age}}
>>> {{=student.Student.nationality}}
>>> 
>>> {{pass}}
>>> 
>>> 
>>>
>>>  //Modal that contains the Add New 
>>> Student Form and Submit button
>>>   
>>> 
>>>   
>>>Add New Student
>>>   
>>>{{=LOAD('Tools','studentNew', ajax=True, 
>>> ajax_trap=True)}}
>>>   
>>>   
>>> >> data-dismiss="modal">Cancel
>>>  
>>>   
>>> 
>>>   
>>> 
>>>
>>>
>>>
>>> --
>> 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 Groups
>> "web2py-users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to web2py+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/web2py/aa06f194-1787-4551-abc0-204e03b15146%40googlegroups.com
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
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 Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/CAAcHJF934Qw%2BpLYwKDTRMVxuZ38aFbnafWSS%2BDMrcM7Rp3WGdA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: Web2py: Update table content after submit action

2019-05-26 Thread Lovedie JC
Hi Dave. I have struggled with this for long but never got a good answer.
Do you have an example where in the view page:
{{=form}}
in the primary page is used but the page is not refreshing

On Sun, 26 May 2019, 11:16 Dave S  wrote:

>
>
> On Saturday, May 25, 2019 at 6:59:44 PM UTC-7, Cristina Sig wrote:
>>
>> Hello everyone,
>>
>> I have a table filled with records from a database.
>>
>> Also, I have a button to add a new record. Once I enter all the data for
>> the new record and press the submit button, I want to update the content of
>> the table without reloading the page (without F5).
>>
>> I'm struggling to find a solution to this so any suggestions would be
>> welcomed.
>>
>>
>>
> Sounds like a job for jQuery or for the LOAD() helper .  I use one to have
> a secondary form on the same page as another; the DIV used by the LOAD gets
> refreshed when I submit the secondayr form, but the page doesn't relaod.
>
> https://web2py.com/books/default/chapter/29/11/jquery-and-ajax#>
>  https://web2py.com/books/default/chapter/29/12/components-and-plugins#Components-LOAD-and-Ajax
> >
>
> Good luck!
>
> /dps
>
> [original post continues]
>
> Database
>>
>> db.define_table('Student',
>> Field('name', 'string', label='Name'),
>> Field('last_Name', 'string', label='Last Name'),
>> Field('age', 'integer', label='Age'),
>> Field('nationality', 'string', label='Nationality'),
>>)
>>
>>
>> Controller (Tools.py)
>>
>> def studentNew():
>> formStudent=crud.create(db.Student)
>> if formStudent.accepted:
>> response.js = '(function($) 
>> {$("#myModalADD").modal("hide");}(jQuery));'  //hide modal after press 
>> submit button
>> response.flash = 'Record added successfully!' //displays message 
>> after press submit
>> return dict(formStudent=formStudent)
>>
>>
>> View
>>
>> 
>> $(document).ready(function(){
>>tabla= $('#table').DataTable( {
>>'scrollX': true,
>>'responsive':true,
>>'sRowSelect': "single",
>>   });
>> 
>>
>> > data-target="#myModalADD" data-toggle="modal"
>> data-backdrop="static" data-keyboard="false">Add New Student
>>
>> > cellspacing="0" width="100%" >
>>
>>
>>   Name
>>   Last Name
>>   Age
>>   Nationality
>>
>> 
>> 
>> {{for student in formListar:}}
>> 
>> {{=student.Student.name}}
>> {{=student.Student.last_name}}
>> {{=student.Student.age}}
>> {{=student.Student.nationality}}
>> 
>> {{pass}}
>> 
>> 
>>
>>  //Modal that contains the Add New 
>> Student Form and Submit button
>>   
>> 
>>   
>>Add New Student
>>   
>>{{=LOAD('Tools','studentNew', ajax=True, 
>> ajax_trap=True)}}
>>   
>>   
>> > data-dismiss="modal">Cancel
>>  
>>   
>> 
>>   
>> 
>>
>>
>>
>> --
> 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 Groups
> "web2py-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to web2py+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/web2py/aa06f194-1787-4551-abc0-204e03b15146%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/CAAcHJF-ozX%2BJ1i27vZ5u9DhsW6c7XFM%3DiBwcZpEZWTiHakfD7Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: Web2py: Update table content after submit action

2019-05-26 Thread Dave S


On Saturday, May 25, 2019 at 6:59:44 PM UTC-7, Cristina Sig wrote:
>
> Hello everyone,
>
> I have a table filled with records from a database. 
>
> Also, I have a button to add a new record. Once I enter all the data for 
> the new record and press the submit button, I want to update the content of 
> the table without reloading the page (without F5).
>
> I'm struggling to find a solution to this so any suggestions would be 
> welcomed.
>
>
>
Sounds like a job for jQuery or for the LOAD() helper .  I use one to have 
a secondary form on the same page as another; the DIV used by the LOAD gets 
refreshed when I submit the secondayr form, but the page doesn't relaod.

https://web2py.com/books/default/chapter/29/11/jquery-and-ajax#>
https://web2py.com/books/default/chapter/29/12/components-and-plugins#Components-LOAD-and-Ajax>

Good luck!

/dps

[original post continues]

Database
>
> db.define_table('Student',
> Field('name', 'string', label='Name'),
> Field('last_Name', 'string', label='Last Name'),
> Field('age', 'integer', label='Age'),
> Field('nationality', 'string', label='Nationality'),
>)
>
>
> Controller (Tools.py)
>
> def studentNew():
> formStudent=crud.create(db.Student)
> if formStudent.accepted:
> response.js = '(function($) 
> {$("#myModalADD").modal("hide");}(jQuery));'  //hide modal after press submit 
> button
> response.flash = 'Record added successfully!' //displays message 
> after press submit
> return dict(formStudent=formStudent)
>
>
> View
>
> 
> $(document).ready(function(){
>tabla= $('#table').DataTable( {
>'scrollX': true,
>'responsive':true,
>'sRowSelect': "single",
>   });
> 
>
>  data-target="#myModalADD" data-toggle="modal" 
> data-backdrop="static" data-keyboard="false">Add New Student
>
>  cellspacing="0" width="100%" >
>
>
>   Name
>   Last Name
>   Age
>   Nationality
>
> 
> 
> {{for student in formListar:}}
> 
> {{=student.Student.name}}
> {{=student.Student.last_name}}
> {{=student.Student.age}}
> {{=student.Student.nationality}}
> 
> {{pass}}
> 
> 
>
>  //Modal that contains the Add New 
> Student Form and Submit button
>   
> 
>   
>Add New Student
>   
>{{=LOAD('Tools','studentNew', ajax=True, 
> ajax_trap=True)}}
>   
>   
>  data-dismiss="modal">Cancel
>  
>   
> 
>   
> 
>
>
>
>

-- 
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 Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/aa06f194-1787-4551-abc0-204e03b15146%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: Web2py Update records only if user is signed in with a different session from previous

2016-10-06 Thread Dave S


On Wednesday, October 5, 2016 at 10:44:30 PM UTC-7, Meinolf wrote:
>
> Ok, i was first storing the current session id from some insert statement, 
> thanks now i can just access it directly from response.session_id.
>
> I guess my logic is wrong since i am running all these queries in the same 
> function, i end up inserting the current session_id and testing it against 
> itself (expecting it to be different sometimes), which will not happen for 
> any user session. Any idea of how i could set it up such that the next time 
> a user logs in with a different session, then i can trigger some operation??
>
>
Can you use auth.settings.login_onaccept()?


It takes the form object from the login page, but I would think you could 
leave that alone and just set a flag in the session, then clear it when you 
do your "first time" operation.

/dps

 

> On Tuesday, October 4, 2016 at 6:13:24 PM UTC+2, Anthony wrote:
>>
>> On Tuesday, October 4, 2016 at 3:16:06 AM UTC-4, Meinolf wrote:
>>>
>>> Hi there,
>>>
>>> I need to update my table record only if the user is logged in with a 
>>> different session from the previous, but with the code i have, it keeps 
>>> updating when i thought the user still logged in with the same session. 
>>> problem is i can't view the session id which seem to be encrypted, i can't 
>>> tell when its the same and when its not. Did i miss something? below is my 
>>> code:
>>>
>>> prev_ses_id = db((db.rates.user_id==auth.user.id) & 
>>> (db.rates.item_id==request.args(0))).select(db.rates.ses_id)
>>>
>>
>> How and where are you setting the value of db.rates.ses_id? Do you expect 
>> the above to return only a single record? Note, prev_ses_id is a Rows 
>> object, not a Row object, and not an individual session id value. If you 
>> want the value of the ses_id field, you need to do prev_ses_id[0].ses_id.
>>
>> Note, if you need the session id of the current session, it is in 
>> response.session_id.
>>
>> Anthony
>>
>

-- 
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 Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: Web2py Update records only if user is signed in with a different session from previous

2016-10-05 Thread Meinolf
Ok, i was first storing the current session id from some insert statement, 
thanks now i can just access it directly from response.session_id.

I guess my logic is wrong since i am running all these queries in the same 
function, i end up inserting the current session_id and testing it against 
itself (expecting it to be different sometimes), which will not happen for 
any user session. Any idea of how i could set it up such that the next time 
a user logs in with a different session, then i can trigger some operation??

On Tuesday, October 4, 2016 at 6:13:24 PM UTC+2, Anthony wrote:
>
> On Tuesday, October 4, 2016 at 3:16:06 AM UTC-4, Meinolf wrote:
>>
>> Hi there,
>>
>> I need to update my table record only if the user is logged in with a 
>> different session from the previous, but with the code i have, it keeps 
>> updating when i thought the user still logged in with the same session. 
>> problem is i can't view the session id which seem to be encrypted, i can't 
>> tell when its the same and when its not. Did i miss something? below is my 
>> code:
>>
>> prev_ses_id = db((db.rates.user_id==auth.user.id) & 
>> (db.rates.item_id==request.args(0))).select(db.rates.ses_id)
>>
>
> How and where are you setting the value of db.rates.ses_id? Do you expect 
> the above to return only a single record? Note, prev_ses_id is a Rows 
> object, not a Row object, and not an individual session id value. If you 
> want the value of the ses_id field, you need to do prev_ses_id[0].ses_id.
>
> Note, if you need the session id of the current session, it is in 
> response.session_id.
>
> Anthony
>

-- 
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 Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: Web2py Update records only if user is signed in with a different session from previous

2016-10-04 Thread Anthony
On Tuesday, October 4, 2016 at 3:16:06 AM UTC-4, Meinolf wrote:
>
> Hi there,
>
> I need to update my table record only if the user is logged in with a 
> different session from the previous, but with the code i have, it keeps 
> updating when i thought the user still logged in with the same session. 
> problem is i can't view the session id which seem to be encrypted, i can't 
> tell when its the same and when its not. Did i miss something? below is my 
> code:
>
> prev_ses_id = db((db.rates.user_id==auth.user.id) & 
> (db.rates.item_id==request.args(0))).select(db.rates.ses_id)
>

How and where are you setting the value of db.rates.ses_id? Do you expect 
the above to return only a single record? Note, prev_ses_id is a Rows 
object, not a Row object, and not an individual session id value. If you 
want the value of the ses_id field, you need to do prev_ses_id[0].ses_id.

Note, if you need the session id of the current session, it is in 
response.session_id.

Anthony

-- 
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 Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: Web2py Update

2016-02-07 Thread Niphlod
honestly you can find it yourself, but for the sake of recaps:
- small or none support for application's unittesting. up until now there 
have been a few experiments but no one landed in the code
- routes_onerror can be used to cook something that will display the error 
right away, and I'm not so sure it'll work fine but there was an extension 
for google chrome or firefox that opened errors right away. That being said 
nobody is telling that the admin app can't be improved, it's an app and 
totally customizable
- DAL is certainly improved in 6 years but still it won't ever be an ORM. 
That's the whole point of choosing a DAL over an ORM
- we can't faster IDE adoption but there are a few that work fine with a 
little trick (web2pyslices holds the recipe)
- web2py is completely multiprocess-aware. I'm not a big user of other 
frameworks but they smell less multiprocess-friendly than web2py (e.g. the 
cache and sessions). Because of those choices it's probably a little slower 
in single-process performances but nowadays production always requires 
multiple processes.
 

On Sunday, February 7, 2016 at 9:26:02 AM UTC+1, Maurice Waka wrote:
>
> Hi
> I have been using web2py for about 1 yr now. I love it. I recently came 
> acros this crazy article about web2py advantages and disadvantages.
> My question is that have, these disadvantages been addressed since 6 yrs 
> ago in your updates? 
> Am working on and app and would love to launch it soon, in web2py and I 
> dont want programmers to come and discredit my work.
> Here is the link: 
> http://ahmedsoliman.com/2010/07/29/the-good-and-bad-about-web2py/
> Kind regards
>

-- 
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 Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: Web2py Update

2016-02-07 Thread Ron Chatterjee
You forgot to mention explicit vs. implicit Niphlod but pretty much you sum 
it up well. One thing I didn't understand is:

"DAL is certainly improved in 6 years but still it won't ever be an ORM"

In other words, ORM is better than DAL?  If that's the case, someone can 
also use sqlalchemy like they can use with django. Am I correct? 



On Sunday, February 7, 2016 at 5:42:15 AM UTC-5, Maurice Waka wrote:
>
> Thanks@Niphlod
>
> On Sun, Feb 7, 2016 at 12:21 PM, Niphlod  
> wrote:
>
>> honestly you can find it yourself, but for the sake of recaps:
>> - small or none support for application's unittesting. up until now there 
>> have been a few experiments but no one landed in the code
>> - routes_onerror can be used to cook something that will display the 
>> error right away, and I'm not so sure it'll work fine but there was an 
>> extension for google chrome or firefox that opened errors right away. That 
>> being said nobody is telling that the admin app can't be improved, it's an 
>> app and totally customizable
>> - DAL is certainly improved in 6 years but still it won't ever be an ORM. 
>> That's the whole point of choosing a DAL over an ORM
>> - we can't faster IDE adoption but there are a few that work fine with a 
>> little trick (web2pyslices holds the recipe)
>> - web2py is completely multiprocess-aware. I'm not a big user of other 
>> frameworks but they smell less multiprocess-friendly than web2py (e.g. the 
>> cache and sessions). Because of those choices it's probably a little slower 
>> in single-process performances but nowadays production always requires 
>> multiple processes.
>>  
>>
>> On Sunday, February 7, 2016 at 9:26:02 AM UTC+1, Maurice Waka wrote:
>>>
>>> Hi
>>> I have been using web2py for about 1 yr now. I love it. I recently came 
>>> acros this crazy article about web2py advantages and disadvantages.
>>> My question is that have, these disadvantages been addressed since 6 yrs 
>>> ago in your updates? 
>>> Am working on and app and would love to launch it soon, in web2py and I 
>>> dont want programmers to come and discredit my work.
>>> Here is the link: 
>>> http://ahmedsoliman.com/2010/07/29/the-good-and-bad-about-web2py/
>>> Kind regards
>>>
>> -- 
>> 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 a topic in the 
>> Google Groups "web2py-users" group.
>> To unsubscribe from this topic, visit 
>> https://groups.google.com/d/topic/web2py/Ol4YRkIsuew/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to 
>> web2py+un...@googlegroups.com .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
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 Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: Web2py Update

2016-02-07 Thread Maurice Waka
Thanks@Niphlod

On Sun, Feb 7, 2016 at 12:21 PM, Niphlod  wrote:

> honestly you can find it yourself, but for the sake of recaps:
> - small or none support for application's unittesting. up until now there
> have been a few experiments but no one landed in the code
> - routes_onerror can be used to cook something that will display the error
> right away, and I'm not so sure it'll work fine but there was an extension
> for google chrome or firefox that opened errors right away. That being said
> nobody is telling that the admin app can't be improved, it's an app and
> totally customizable
> - DAL is certainly improved in 6 years but still it won't ever be an ORM.
> That's the whole point of choosing a DAL over an ORM
> - we can't faster IDE adoption but there are a few that work fine with a
> little trick (web2pyslices holds the recipe)
> - web2py is completely multiprocess-aware. I'm not a big user of other
> frameworks but they smell less multiprocess-friendly than web2py (e.g. the
> cache and sessions). Because of those choices it's probably a little slower
> in single-process performances but nowadays production always requires
> multiple processes.
>
>
> On Sunday, February 7, 2016 at 9:26:02 AM UTC+1, Maurice Waka wrote:
>>
>> Hi
>> I have been using web2py for about 1 yr now. I love it. I recently came
>> acros this crazy article about web2py advantages and disadvantages.
>> My question is that have, these disadvantages been addressed since 6 yrs
>> ago in your updates?
>> Am working on and app and would love to launch it soon, in web2py and I
>> dont want programmers to come and discredit my work.
>> Here is the link:
>> http://ahmedsoliman.com/2010/07/29/the-good-and-bad-about-web2py/
>> Kind regards
>>
> --
> 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 a topic in the
> Google Groups "web2py-users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/web2py/Ol4YRkIsuew/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> web2py+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: Web2py Update

2016-02-07 Thread Ron Chatterjee
So in a way, ORM is supported. Okay, next...it says lot about unit testing. 
And some I do agree. Some of web2py error reporting is hard to figure out 
and it doesn't get very specific about exactly where the issue is (not 
criticizing but constructively put). Having said that there is a test 
module in the controller. Right? I haven't really played a lot with it. But 
what's the difference between unit test that you with django and other 
framework and the test in the controller module?



On Sunday, February 7, 2016 at 11:30:23 AM UTC-5, Marin Pranjić wrote:

>
>
> On Sun, Feb 7, 2016 at 4:49 PM, Ron Chatterjee  > wrote:
>
>> You forgot to mention explicit vs. implicit Niphlod but pretty much you 
>> sum it up well. One thing I didn't understand is:
>>
>> "DAL is certainly improved in 6 years but still it won't ever be an ORM"
>>
>> In other words, ORM is better than DAL?  If that's the case, someone can 
>> also use sqlalchemy like they can use with django. Am I correct? 
>>
>>
> No, it doesn't mean ORM is better. It just means they are different.
> Some people like DAL more, some like ORM.
> And sure, you can use sqlalchemy if you prefer an ORM.
>
> Marin
>  
>
>>
>>
>> On Sunday, February 7, 2016 at 5:42:15 AM UTC-5, Maurice Waka wrote:
>>>
>>> Thanks@Niphlod
>>>
>>> On Sun, Feb 7, 2016 at 12:21 PM, Niphlod  wrote:
>>>
 honestly you can find it yourself, but for the sake of recaps:
 - small or none support for application's unittesting. up until now 
 there have been a few experiments but no one landed in the code
 - routes_onerror can be used to cook something that will display the 
 error right away, and I'm not so sure it'll work fine but there was an 
 extension for google chrome or firefox that opened errors right away. That 
 being said nobody is telling that the admin app can't be improved, it's an 
 app and totally customizable
 - DAL is certainly improved in 6 years but still it won't ever be an 
 ORM. That's the whole point of choosing a DAL over an ORM
 - we can't faster IDE adoption but there are a few that work fine with 
 a little trick (web2pyslices holds the recipe)
 - web2py is completely multiprocess-aware. I'm not a big user of other 
 frameworks but they smell less multiprocess-friendly than web2py (e.g. the 
 cache and sessions). Because of those choices it's probably a little 
 slower 
 in single-process performances but nowadays production always requires 
 multiple processes.
  

 On Sunday, February 7, 2016 at 9:26:02 AM UTC+1, Maurice Waka wrote:
>
> Hi
> I have been using web2py for about 1 yr now. I love it. I recently 
> came acros this crazy article about web2py advantages and disadvantages.
> My question is that have, these disadvantages been addressed since 6 
> yrs ago in your updates? 
> Am working on and app and would love to launch it soon, in web2py and 
> I dont want programmers to come and discredit my work.
> Here is the link: 
> http://ahmedsoliman.com/2010/07/29/the-good-and-bad-about-web2py/
> Kind regards
>
 -- 
 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 a topic in the 
 Google Groups "web2py-users" group.
 To unsubscribe from this topic, visit 
 https://groups.google.com/d/topic/web2py/Ol4YRkIsuew/unsubscribe.
 To unsubscribe from this group and all its topics, send an email to 
 web2py+un...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.

>>>
>>> -- 
>> 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 Groups 
>> "web2py-users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to web2py+un...@googlegroups.com .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
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 Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: Web2py Update

2016-02-07 Thread Marin Pranjić
On Sun, Feb 7, 2016 at 4:49 PM, Ron Chatterjee 
wrote:

> You forgot to mention explicit vs. implicit Niphlod but pretty much you
> sum it up well. One thing I didn't understand is:
>
> "DAL is certainly improved in 6 years but still it won't ever be an ORM"
>
> In other words, ORM is better than DAL?  If that's the case, someone can
> also use sqlalchemy like they can use with django. Am I correct?
>
>
No, it doesn't mean ORM is better. It just means they are different.
Some people like DAL more, some like ORM.
And sure, you can use sqlalchemy if you prefer an ORM.

Marin


>
>
> On Sunday, February 7, 2016 at 5:42:15 AM UTC-5, Maurice Waka wrote:
>>
>> Thanks@Niphlod
>>
>> On Sun, Feb 7, 2016 at 12:21 PM, Niphlod  wrote:
>>
>>> honestly you can find it yourself, but for the sake of recaps:
>>> - small or none support for application's unittesting. up until now
>>> there have been a few experiments but no one landed in the code
>>> - routes_onerror can be used to cook something that will display the
>>> error right away, and I'm not so sure it'll work fine but there was an
>>> extension for google chrome or firefox that opened errors right away. That
>>> being said nobody is telling that the admin app can't be improved, it's an
>>> app and totally customizable
>>> - DAL is certainly improved in 6 years but still it won't ever be an
>>> ORM. That's the whole point of choosing a DAL over an ORM
>>> - we can't faster IDE adoption but there are a few that work fine with a
>>> little trick (web2pyslices holds the recipe)
>>> - web2py is completely multiprocess-aware. I'm not a big user of other
>>> frameworks but they smell less multiprocess-friendly than web2py (e.g. the
>>> cache and sessions). Because of those choices it's probably a little slower
>>> in single-process performances but nowadays production always requires
>>> multiple processes.
>>>
>>>
>>> On Sunday, February 7, 2016 at 9:26:02 AM UTC+1, Maurice Waka wrote:

 Hi
 I have been using web2py for about 1 yr now. I love it. I recently came
 acros this crazy article about web2py advantages and disadvantages.
 My question is that have, these disadvantages been addressed since 6
 yrs ago in your updates?
 Am working on and app and would love to launch it soon, in web2py and I
 dont want programmers to come and discredit my work.
 Here is the link:
 http://ahmedsoliman.com/2010/07/29/the-good-and-bad-about-web2py/
 Kind regards

>>> --
>>> 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 a topic in the
>>> Google Groups "web2py-users" group.
>>> To unsubscribe from this topic, visit
>>> https://groups.google.com/d/topic/web2py/Ol4YRkIsuew/unsubscribe.
>>> To unsubscribe from this group and all its topics, send an email to
>>> web2py+un...@googlegroups.com.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>> --
> 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 Groups
> "web2py-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to web2py+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: web2py update app admin doesn't work anymore

2015-04-25 Thread Kevin Bethke
thanks it worked perfectly

On Sat, Apr 25, 2015 at 6:18 PM, 黄祥 steve.van.chris...@gmail.com wrote:

 what version did you use right now?
 if i'm not wrong in the newest version got the pydal modules separate.
 please download and unzip from web2py website.

 ref:
 http://web2py.com/books/default/chapter/29/14/other-recipes#Upgrading
 http://web2py.com/init/default/download

 best regards,
 stifan

 --
 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 a topic in the
 Google Groups web2py-users group.
 To unsubscribe from this topic, visit
 https://groups.google.com/d/topic/web2py/Nze8LILg94M/unsubscribe.
 To unsubscribe from this group and all its topics, send an email to
 web2py+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.


-- 
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 Groups 
web2py-users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: web2py update app admin doesn't work anymore

2015-04-25 Thread 黄祥
what version did you use right now?
if i'm not wrong in the newest version got the pydal modules separate.
please download and unzip from web2py website.

ref:
http://web2py.com/books/default/chapter/29/14/other-recipes#Upgrading
http://web2py.com/init/default/download

best regards,
stifan

-- 
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 Groups 
web2py-users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: web2py update nothing is working anymore

2013-10-01 Thread BlueShadow
For some reason I don't know after the backup finished (the backup was with 
a non working admin panel) everything works again. I got no explanation 
because its the second time I used this backup. and last time it didn't 
work.

Am Dienstag, 1. Oktober 2013 14:33:07 UTC+2 schrieb BlueShadow:

 Hi
 i tried to upgrade the framework after using the experimental upgrading 
 button in the admin panel. I couldn't access the admin panel anymore. I got 
 an error page which I could not open.
 So I copied my application to some place on the server (cp -R ) deleted 
 web2py (rm -R) used the nginx install script. Now the admin panel is 
 working again. But once I copied my page to the web2py applications folder 
 the app isn't working anymore. (unknown error)
 I tried to put my app on a locale web2py (windows compiled) copy and it 
 doesn't work either. and gives me an error no auth_groups
 So I'm pretty much stuck I just used a backup to restore the part where at 
 least my page was running but I still don't have any access to the admin 
 panel.



-- 
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 Groups 
web2py-users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [web2py] Re: web2py update nothing is working anymore

2013-10-01 Thread Richard Vézina
With all what you did it is difficult to point what is not working now. At
least you should update the web2py reserved file in your app :

https://groups.google.com/d/msg/web2py/tVyL7z7WHkw/mce13Vh-k3UJ

Also, you should search the google group mailing list about admin, I think
there is files to update there too with the last update since the admin is
a app too... So it may possible that the same files should be update.

About your differents problem, I guess that when you delete your app, you
delete with it /database folder that content vital information for web2py.
Also, if the migration is not totally desactived (db = DAL(...,migrate
_enabled=False)) it may be possible that deleting your app have broke
web2py migration synchro... So you will have to do migrate=False,
fake_migrate=True, execute your app, then set it bat to migrate=True and
fake_migrate=False in order to let web2py be in sync again.

When you try on your local machine, the no auth_groups message may had
occure because there were missing records in your local database in this
case a group entry.

Hope it help. Hope for you that you did good back up of everything web2py
folder including you app. If you did that put back this in place should
work find. If you just have you app backed up, you will have to download a
old version of web2py the one your were using before update and restore
this web2py version, put your backed up app in place and try to see if it
works.

Good luck!!

Richard


On Tue, Oct 1, 2013 at 9:07 AM, BlueShadow kevin.bet...@gmail.com wrote:

 For some reason I don't know after the backup finished (the backup was
 with a non working admin panel) everything works again. I got no
 explanation because its the second time I used this backup. and last time
 it didn't work.

 Am Dienstag, 1. Oktober 2013 14:33:07 UTC+2 schrieb BlueShadow:

 Hi
 i tried to upgrade the framework after using the experimental upgrading
 button in the admin panel. I couldn't access the admin panel anymore. I got
 an error page which I could not open.
 So I copied my application to some place on the server (cp -R ) deleted
 web2py (rm -R) used the nginx install script. Now the admin panel is
 working again. But once I copied my page to the web2py applications folder
 the app isn't working anymore. (unknown error)
 I tried to put my app on a locale web2py (windows compiled) copy and it
 doesn't work either. and gives me an error no auth_groups
 So I'm pretty much stuck I just used a backup to restore the part where
 at least my page was running but I still don't have any access to the admin
 panel.

  --
 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 Groups
 web2py-users group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to web2py+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.


-- 
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 Groups 
web2py-users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [web2py] Re: Web2py Update

2012-03-19 Thread Ovidio Marinho
Im use linux ubuntu 11.10



   Ovidio Marinho Falcao Neto
Web Developer
 ovidio...@gmail.com
  ovidiomari...@itjp.net.br
 ITJP - itjp.net.br
   83   8826 9088 - Oi
   83   9334 0266 - Claro
Brasil




2012/3/18 Massimo Di Pierro massimo.dipie...@gmail.com

 which os? We know there is a problem on winodows. Download the latest,
 unzip and copy over the older one.


 On Sunday, 18 March 2012 16:39:19 UTC-5, Ovidio Marinho wrote:

 Check for update web2py 1.99.4 does not work, someone has a solution?




Ovidio Marinho Falcao Neto
 Web Developer
  ovidio...@gmail.com
   ovidiomari...@itjp.net.br
  ITJP - itjp.net.br
83   8826 9088 - Oi
83   9334 0266 - Claro
 Brasil





[web2py] Re: Web2py Update

2012-03-18 Thread Alan Etkin
What does it do? Can you debug the javascript code? (I think it uses
some ajax in the background)

On 18 mar, 18:39, Ovidio Marinho ovidio...@gmail.com wrote:
 Check for update web2py 1.99.4 does not work, someone has a solution?

        Ovidio Marinho Falcao Neto
                 Web Developer
              ovidio...@gmail.com
           ovidiomari...@itjp.net.br
                  ITJP - itjp.net.br
                83   8826 9088 - Oi
                83   9334 0266 - Claro
                         Brasil


[web2py] Re: Web2py Update

2012-03-18 Thread Massimo Di Pierro
which os? We know there is a problem on winodows. Download the latest, 
unzip and copy over the older one.

On Sunday, 18 March 2012 16:39:19 UTC-5, Ovidio Marinho wrote:

 Check for update web2py 1.99.4 does not work, someone has a solution?

   


Ovidio Marinho Falcao Neto
 Web Developer
  ovidio...@gmail.com 
   ovidiomari...@itjp.net.br
  ITJP - itjp.net.br
83   8826 9088 - Oi
83   9334 0266 - Claro
 Brasil