[web2py] Error with Janrain integration

2012-07-01 Thread Hassan Alnatour
Dear ALL,

I am using Janrain with the normal login in my site it works well 
but lately i have notice that if i am login in using it and using use 
normal links on the site like : *www.i3zif.com/PlayVideo/18*  , it logs out 
but if i am using the normal login it works well , what do you think the 
problem is ?


Best Regards,


[web2py] Re: Error with Janrain integration

2012-07-01 Thread Hassan Alnatour
i Tried using this link , it 
works fine now , but why is this happening  ???


regards,

On Sunday, July 1, 2012 12:01:25 PM UTC+3, Hassan Alnatour wrote:
>
> Dear ALL,
>
> I am using Janrain with the normal login in my site it works well 
> but lately i have notice that if i am login in using it and using use 
> normal links on the site like : *www.i3zif.com/PlayVideo/18*  , it logs 
> out but if i am using the normal login it works well , what do you think 
> the problem is ?
>
>
> Best Regards,
>


[web2py] Connection with DB not Working... Help!

2012-07-01 Thread Yannick
Hello Mate,

I can't seems to connect to my DB postgres from my application in  a linux 
box... Here is the error message I have:

File "/home/www-data/web2py/gluon/dal.py", line 3665, in __init__
raise RuntimeError, "Failure to connect, tried 5 times:\n%s" % error
RuntimeError: Failure to connect, tried 5 times:
could not connect to server: Connection refused
Is the server running on host "localhost" and accepting
TCP/IP connections on port 5432?


Please let me know if you have any idea why... 

Thanks




[web2py] {{=LOAD()}} and JavaScript function

2012-07-01 Thread Annet
I am using this JavaScript to equalize column heights:


$(document).ready(function(){

  $('a[href=#{{=tab}}]').tab('show');
  
  $(function() {
$('#equalize1').equalHeights();
  });
  
  $(function() {
$('#equalize2').equalHeights();
  });
  
});





  ...
 


  ...
 

The problem is that #equalize1 contains tabs that load their content as 
follows:

{{=LOAD('site','classes.load',args=session.id,ajax=True,target='tab-1')}}


What I am looking for is a way to execute this function:

$(function() {
$('#equalize1').equalHeights();
  });

after classes have been loaded.


Kind regards,

Annet 


[web2py] How does keepvalues work?

2012-07-01 Thread Keith Edmunds
What is the mechanism that 'keepvalues=True' uses?

I have a form that uses keepvalues=True, and it includes combo box.
Occasionally the values in the combo change, and the previous value is
missing. I want to check for that and reset the default value for the
combo box if it isn't valid.

Thanks,
Keith
-- 
We're looking for good Linux people:
http://www.tiger-computing.co.uk/jobs


[web2py] web2pyslices seems to be down

2012-07-01 Thread Jose C
Just starting on a project and been trying to access web2pyslices.com 
occasionally.  It's been returning 504 errors since Friday (since I started 
on this project).  Does anyone know if this site is still active or who is 
responsible for it?


Re: [web2py] web2pyslices seems to be down

2012-07-01 Thread Bruno Rocha
Thats ok now!

It was a problem with notification system, I am using a background task
queue and for some reason it has blocked postgres.

Thank you for reporting!

 *Bruno Cezar Rocha*

http://www.CursoDePython.com.br
[image: Facebook]  [image:
Twitter] [image:
LinkedIn]  [image:
about.me] [image:
Amazon]  [image:
AngelList] [image:
Blog RSS]  [image:
Facebook Page]  [image:
foursquare] [image:
Google Plus]  [image:
pinterest]  [image:
SlideShare] [image:
YouTube] 
 [image: Google Talk] rochacbruno [image: Skype] blouweb
  Get a signature like this.

Click
here.



On Sun, Jul 1, 2012 at 8:36 AM, Jose C  wrote:

> Just starting on a project and been trying to access 
> web2pyslices.comoccasionally.  It's been returning 504 errors since Friday 
> (since I started
> on this project).  Does anyone know if this site is still active or who is
> responsible for it?
>


Re: [web2py] web2pyslices seems to be down

2012-07-01 Thread Jose C
> Thank you for reporting!

No problem, thanks for the quick response.  I'll let you know sooner if it 
happens again.


Re: [web2py] web2pyslices seems to be down

2012-07-01 Thread vinicius...@gmail.com

It's up and running here, in Brazil.

On 07/01/2012 08:36 AM, Jose C wrote:

Just starting on a project and been trying to access web2pyslices.com
occasionally.  It's been returning 504 errors since Friday (since I
started on this project).  Does anyone know if this site is still active
or who is responsible for it?




[web2py] Re: {{=LOAD()}} and JavaScript function

2012-07-01 Thread Anthony
If the tabs are the only Ajax requests on the page (at least during initial 
page load), you can use a jQuery 
ajaxSuccess()handler to count the number of 
Ajax calls and equalize the heights after 
the third Ajax call. Something like this (not tested):

var num_tabs = 3;
var tabs_loaded = 0;
$('#equalize1').ajaxSuccess(function() {
  tabs_loaded += tabs_loaded;
  if (tabs_loaded === num_tabs) {
$(this).equalHeights();
  };
});

That goes inside your document ready handler. If you have other Ajax calls 
on the page and you need to distinguish only the calls for the tabs, note 
that the ajaxSuccess event will pass the Ajax settings object as the third 
argument to the handler, so you can checking settings.url to see if the URL 
of the action is one of the tabs.

Anthony

On Sunday, July 1, 2012 5:51:48 AM UTC-4, Annet wrote:
>
> I am using this JavaScript to equalize column heights:
>
> 
> $(document).ready(function(){
>
>   $('a[href=#{{=tab}}]').tab('show');
>   
>   $(function() {
> $('#equalize1').equalHeights();
>   });
>   
>   $(function() {
> $('#equalize2').equalHeights();
>   });
>   
> });
>
> 
>
>
> 
>   ...
>  
>
> 
>   ...
>  
>
> The problem is that #equalize1 contains tabs that load their content as 
> follows:
>
> {{=LOAD('site','classes.load',args=session.id,ajax=True,target='tab-1')}}
>
>
> What I am looking for is a way to execute this function:
>
> $(function() {
> $('#equalize1').equalHeights();
>   });
>
> after classes have been loaded.
>
>
> Kind regards,
>
> Annet 
>


[web2py] Re: debugging procedure

2012-07-01 Thread Vineet
This link might help.

https://groups.google.com/forum/?fromgroups#!searchin/web2py/eclipse$20debug$20vineet/web2py/zIOn-NZzuTo/U5hYaI8jJUQJ

On Saturday, 30 June 2012 02:43:06 UTC+5:30, Janath wrote:
>
> Hi,
>
> So far I have connected the algorithms that I developed in python IDLE to 
> web2py. 
>
> I would like to debug from web2py as I need to find out some errors that I 
> do not see in IDLE.
>
> I have tried setting breakpoints, but couldn't figure out the proper way 
> of doing it. I need to check the variable values at a breakpoint.
>
> Appreciate if someone points me to an article or a screen captured video 
> or etc.
>
> Janath 
>


Re: [web2py] web2pyslices seems to be down

2012-07-01 Thread Michele Comitini
Must be an open transaction somewhere (in the queue consumer script?)  that
never closes.
Il giorno 01/lug/2012 14:04, "Bruno Rocha"  ha
scritto:

> Thats ok now!
>
> It was a problem with notification system, I am using a background task
> queue and for some reason it has blocked postgres.
>
> Thank you for reporting!
>
>  *Bruno Cezar Rocha*
>
> http://www.CursoDePython.com.br
> [image: Facebook]  [image: 
> Twitter] [image:
> LinkedIn]  [image: 
> about.me] [image:
> Amazon]  [image: 
> AngelList] [image:
> Blog RSS]  [image:
> Facebook Page]  [image: 
> foursquare] [image:
> Google Plus]  [image:
> pinterest]  [image: 
> SlideShare] [image:
> YouTube] 
>  [image: Google Talk] rochacbruno [image: Skype] blouweb
>   Get a signature like this.
> 
>  Click
> here.
>
>
>
> On Sun, Jul 1, 2012 at 8:36 AM, Jose C  wrote:
>
>> Just starting on a project and been trying to access 
>> web2pyslices.comoccasionally.  It's been returning 504 errors since Friday 
>> (since I started
>> on this project).  Does anyone know if this site is still active or who is
>> responsible for it?
>>
>
>


Re: [web2py] Connection with DB not Working... Help!

2012-07-01 Thread Michele Comitini
Seems that no service is listening on port 5432.  Check that postgres is
running and check the port number where it is listening.

mic
Il giorno 01/lug/2012 11:33, "Yannick"  ha scritto:

> Hello Mate,
>
> I can't seems to connect to my DB postgres from my application in  a linux
> box... Here is the error message I have:
>
> File "/home/www-data/web2py/gluon/dal.py", line 3665, in __init__
> raise RuntimeError, "Failure to connect, tried 5 times:\n%s" % error
> RuntimeError: Failure to connect, tried 5 times:
> could not connect to server: Connection refused
> Is the server running on host "localhost" and accepting
> TCP/IP connections on port 5432?
>
>
> Please let me know if you have any idea why...
>
> Thanks
>
>
>


Re: [web2py] web2pyslices seems to be down

2012-07-01 Thread Bruno Rocha
Thats the Movuca notification worker script:
https://github.com/rochacbruno/Movuca/blob/master/private/notification_worker.py

I used the /book example, and I know it needs to be improved. Maybe It can
use w2p scheduler for that...



*Bruno Cezar Rocha*

http://www.CursoDePython.com.br
[image: Facebook]  [image:
Twitter] [image:
LinkedIn]  [image:
about.me] [image:
Amazon]  [image:
AngelList] [image:
Blog RSS]  [image:
Facebook Page]  [image:
foursquare] [image:
Google Plus]  [image:
pinterest]  [image:
SlideShare] [image:
YouTube] 
 [image: Google Talk] rochacbruno [image: Skype] blouweb
Blog: Generate a thumbnail that fits in a
box
  Get a signature like this.

Click
here.



On Sun, Jul 1, 2012 at 10:29 AM, Michele Comitini <
michele.comit...@gmail.com> wrote:

> Must be an open transaction somewhere (in the queue consumer script?)
> that never closes.
> Il giorno 01/lug/2012 14:04, "Bruno Rocha"  ha
> scritto:
>
>  Thats ok now!
>>
>> It was a problem with notification system, I am using a background task
>> queue and for some reason it has blocked postgres.
>>
>> Thank you for reporting!
>>
>>  *Bruno Cezar Rocha*
>>
>> http://www.CursoDePython.com.br
>> [image: Facebook]  [image: 
>> Twitter] [image:
>> LinkedIn]  [image: 
>> about.me] [image:
>> Amazon]  [image: 
>> AngelList] [image:
>> Blog RSS]  [image:
>> Facebook Page]  [image: 
>> foursquare] [image:
>> Google Plus]  
>> [image:
>> pinterest]  [image: 
>> SlideShare] [image:
>> YouTube] 
>>  [image: Google Talk] rochacbruno [image: Skype] blouweb
>>   Get a signature like this.
>> 
>>  Click
>> here.
>>
>>
>>
>> On Sun, Jul 1, 2012 at 8:36 AM, Jose C  wrote:
>>
>>> Just starting on a project and been trying to access 
>>> web2pyslices.comoccasionally.  It's been returning 504 errors since Friday 
>>> (since I started
>>> on this project).  Does anyone know if this site is still active or who is
>>> responsible for it?
>>>
>>
>>


Re: [web2py] Re: Multi_tenant

2012-07-01 Thread Cliff Kachinske
Ovidio,

The snippet in my post is Web2py.

I referred to PHP only to show that the technique is well established and 
workable.



On Saturday, June 30, 2012 11:51:07 AM UTC-4, Ovidio Marinho wrote:
>
> sorrry, im not user PHP programin, is web2py/Python. 
>
> Thanks. 
>
>
>
>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/6/30 Cliff Kachinske : 
> > I implemented something similar using PHP years ago. 
> > 
> > The only advantage to using request_tenant is you don't have to type two 
> > lines in every query: 
> > 
> > (db.mytable.identifier==session.auth.user.identifier) & 
> > (db.mytable.is_active==True) 
> > 
> > But since we have snippets, it's not too hard :) 
> > 
> > 
> > On Saturday, June 30, 2012 7:45:02 AM UTC-4, Ovidio Marinho wrote: 
> >> 
> >> Yes, I would like to Usai Id and not the host / ip. 
> >> 
> >> We know that multi-tentant came to automating a service saas in 
> >> web2py, but as literature, and we lack a bit of a hurry to create one 
> >> field in the table auth.user.hospital and popular with the same 
> >> content of created_by, so we have a function in the controller 
> >> 
> >> def testegrupo (): 
> >>  rows = db (db.t_medico.f_hospital == auth.user.hospital). select 
> () 
> >>  return dict (rows = rows) 
> >> 
> >> we know this is a hack of the tenant for web2py but it works. But I 
> >> will implement the changes proposed in this DISCUSSION for the tenant 
> >> to operate as a service saas. 
> >> 
> >> 
> >> 
> >>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/6/29 Michele Comitini : 
> >> > Ovidio, 
> >> > 
> >> > I wonder if you could use auth.user.id or auth.membership.id as key 
> >> > instead of host/ip? 
> >> > 
> >> > If the above is not viable, Massimo suggestion to have separate 
> >> > databases is very good IMHO and you can build a Data Warehouse 
> >> > http://en.wikipedia.org/wiki/Data_warehouse by using postgresql 
> >> > clustering capabilities or one of many postgresql synchronization 
> >> > tools. 
> >> > 
> >> > mic 
> >> > 
> >> > 
> >> > 2012/6/29 Ovidio Marinho : 
> >> >> Well now after my DAL I have Instructions 
> >> >> db = DAL ('postgres :/ / postgres: passwd @ localhost: 5432/mybd') 
> >> >> 
> >> >> 
> db._common_fields=Field('request_tenant',default=request.env.http_host,writable=False,readable=False)]
>  
>
> >> >> 
> >> >> What happened? in all my tables I have request_tenant the field, and 
> >> >> when I do a drive automatically writes the localhost: 8000. But now 
> >> >> how is that several users with different hosts with dhcp changing 
> its 
> >> >> access each time with a different ip that can work? 
> >> >> 
> >> >> this post from Massimo does exactly what I want with the school he 
> has 
> >> >> provided for various and simultaneous access, I could spend the 
> >> >> Massimo setting this app? 
> >> >> 
> >> >> http://www.mail-archive.com/web2py@googlegroups.com/msg64351.html 
> >> >> 
> >> >>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/6/28 Massimo Di Pierro : 
> >> >>> Do me the issue is, should all data always be filtered by hospital. 
> >> >>> If there should only be filtered in some cases and not in other, 
> use 
> >> >>> explicit queries 
> >> >>> If some tables are always filtered and some are not, you may want 
> to 
> >> >>> use the 
> >> >>> tenant feature. 
> >> >>> 
> >> >>> 
> >> >>> On Thursday, 28 June 2012 05:45:13 UTC-5, Ovidio Marinho wrote: 
> >>  
> >>  I can not split into separate database, as the management reports 
> >>  need 
> >>  to filter all information. What I need is that the data are shown 
> to 
> >>  hosptal (1) is only seen by him. No problem if all hospitals being 
> in 
> >>  the same database, so is the question of security in view. When 
> the 
> >>  login Hospital (1) is made only data related to hospital (1) 
> should 
> >>  appear on the screen. 
> >>  
> >>  
> >>  
> >>  
> >> Ovidio Marinho Falcao Neto 
> >>  Web Developer 
> >>   ovidio...@gmail.com 
> >>    ovidiomari...@itjp.net.br 
> >>    

[web2py] Invalid Query when trying to export a CVS file

2012-07-01 Thread Yannick
Hello mate,

I'm trying to export a CVS file and I have an error message in the screen 
saying:

invalid query : current transaction is aborted, commands ignored until end 
of transaction block

Any idea why ?

Thanks


Re: [web2py] Connection with DB not Working... Help!

2012-07-01 Thread Marco Tulio Cicero de M. Porto
Just to be sure,

is your postgres configured properly? Postgres need a few adjustments on
some config files in order to grant access to the database (specially if
it's an external access - other than localhost).

Just check that first, ok ?

Good Luck!


2012/7/1 Yannick 

> Hello Mate,
>
> I can't seems to connect to my DB postgres from my application in  a linux
> box... Here is the error message I have:
>
> File "/home/www-data/web2py/gluon/dal.py", line 3665, in __init__
> raise RuntimeError, "Failure to connect, tried 5 times:\n%s" % error
> RuntimeError: Failure to connect, tried 5 times:
> could not connect to server: Connection refused
> Is the server running on host "localhost" and accepting
> TCP/IP connections on port 5432?
>
>
> Please let me know if you have any idea why...
>
> Thanks
>
>
>


-- 
[]'s
Marco Tulio


Re: [web2py] How does keepvalues work?

2012-07-01 Thread Marin Pranjić
Form values are stored in session


Marin

On Sun, Jul 1, 2012 at 12:47 PM, Keith Edmunds  wrote:

> What is the mechanism that 'keepvalues=True' uses?
>
> I have a form that uses keepvalues=True, and it includes combo box.
> Occasionally the values in the combo change, and the previous value is
> missing. I want to check for that and reset the default value for the
> combo box if it isn't valid.
>
> Thanks,
> Keith
> --
> We're looking for good Linux people:
> http://www.tiger-computing.co.uk/jobs
>


[web2py] Re: Invalid Query when trying to export a CVS file

2012-07-01 Thread Niphlod
without any code noone can say if this is an error in our query or perhaps 
a web2py limitation

please show us your query and/or your model of what you're trying to do 
when the error is raised 

On Sunday, July 1, 2012 6:12:12 PM UTC+2, Yannick wrote:
>
> Hello mate,
>
> I'm trying to export a CVS file and I have an error message in the screen 
> saying:
>
> invalid query : current transaction is aborted, commands ignored until end 
> of transaction block
>
> Any idea why ?
>
> Thanks
>


[web2py] Re: Error with Janrain integration

2012-07-01 Thread Massimo Di Pierro
Sorry, I do not understand the problem.

On Sunday, 1 July 2012 04:01:25 UTC-5, Hassan Alnatour wrote:
>
> Dear ALL,
>
> I am using Janrain with the normal login in my site it works well 
> but lately i have notice that if i am login in using it and using use 
> normal links on the site like : *www.i3zif.com/PlayVideo/18*  , it logs 
> out but if i am using the normal login it works well , what do you think 
> the problem is ?
>
>
> Best Regards,
>


[web2py] String encoding and cp1252 issues

2012-07-01 Thread Matt
Hi there,

I'm using web2py on GAE and have recently run into some problems with 
cp1252 characters being submitted via cut and posted text in forms.

At present whenever this happens I get exceptions complaining that the 
string isn't valid unicode.

Looking through the web2py codebase I can see that some contrib code (like 
feedburner.py for example) is checking and replacing offending cp1252 
characters.

I know I can potentially use the onvalidation method on my forms to perform 
something similar to feedburner however I would prefer that I can control 
this on a "global" form level.

Does anyone have any suggestions on how I might be able to achieve this? or 
is it best to raise this as a feature request / bug?

Thanks in advance,
Matt

More info: http://effbot.org/zone/unicode-gremlins.htm


[web2py] String encoding and cp1252 issues

2012-07-01 Thread Matt
Hi there,

I'm using web2py on GAE and have recently run into some problems with 
cp1252 characters being submitted via cut and posted text in forms.

At present whenever this happens I get exceptions complaining that the 
string isn't valid unicode.

Looking through the web2py codebase I can see that some contrib code (like 
feedburner.py for example) is checking and replacing offending cp1252 
characters.

I know I can potentially use the onvalidation method on my forms to perform 
something similar to feedburner however I would prefer that I can control 
this on a "global" form level.

Does anyone have any suggestions on how I might be able to achieve this? or 
is it best to raise this as a feature request / bug?

Thanks in advance,
Matt

More info: http://effbot.org/zone/unicode-gremlins.htm


[web2py] Encoding and cp1252

2012-07-01 Thread Matt
Hi there,

I'm using web2py on GAE and have recently run into some problems with 
cp1252 characters being submitted via cut and posted text in forms.

At present whenever this happens I get exceptions complaining that the 
string isn't valid unicode.

Looking through the web2py codebase I can see that some contrib code (like 
feedburner.py for example) is checking and replacing offending cp1252 
characters.

I know I can potentially use the onvalidation method on my forms to perform 
something similar to feedburner however I would prefer that I can control 
this on a "global" form level.

Does anyone have any suggestions on how I might be able to achieve this? or 
is it best to raise this as a feature request / bug?

Thanks in advance,
Matt

More info: http://effbot.org/zone/unicode-gremlins.htm


[web2py] Encoding and cp1252

2012-07-01 Thread Matt
Hi there,

I'm using web2py on GAE and have recently run into some problems with 
cp1252 characters being submitted via cut and posted text in forms.

At present whenever this happens I get exceptions complaining that the 
string isn't valid unicode.

Looking through the web2py codebase I can see that some contrib code (like 
feedburner.py for example) is checking and replacing offending cp1252 
characters.

I know I can potentially use the onvalidation method on my forms to perform 
something similar to feedburner however I would prefer that I can control 
this on a "global" form level.

Does anyone have any suggestions on how I might be able to achieve this? or 
is it best to raise this as a feature request / bug?

Thanks in advance,
Matt

More info: http://effbot.org/zone/unicode-gremlins.htm


Re: [web2py] Re: Getting auth.settings.register_next to work...

2012-07-01 Thread Doug Philips
On Sat, Jun 30, 2012 at 11:11 AM, Anthony  wrote:
> I don't think it's a bug, per se, but the behavior (and documentation) could
> be improved.

??? The documentation is quite direct and clear that you can set
auth.settings.register_next to control where the user goes next. It
doesn't work. It's not even clear that it can work given the current
code base. I've just created a bug report for it
http://code.google.com/p/web2py/issues/detail?id=869.

login_next and register_next are mentioned exactly once in the
documentation and there is no indication why login_next should work,
but register_next not.

Thanks,
 -Doug


[web2py] using deck.js with web2py?

2012-07-01 Thread Doug Philips
>From my 'search engine' results, it looks as if the last this was
discussed was back in Sept of last year.
Including a very intriguing comment from Massimo on Sept 9, 2011:
> This is really nice. I can see this integrated with markmin in a
> simple web app that we can all use... I need such a thing so I am
> going to build one soon.

Did anything ever happen with that?
I'd like to use deck.js to display some of the content my app is
gathering, and am wondering what issues might crop up.
Thanks!
 --Doug


[web2py] Re: using deck.js with web2py?

2012-07-01 Thread Massimo Di Pierro
In the end I preferred reveal.js to deck.js

This integrates reveal.js with markmin.
https://github.com/mdipierro/markmin-reveal-slides

python libs/make.py test.mm 

makes the test.html example which you can try here:
https://github.com/mdipierro/markmin-reveal-slides

Hope this is useful. It would be nice to make a web app for it where the 
source is stored in DB and can be edited online.

On Sunday, 1 July 2012 20:57:52 UTC-5, Doug Philips wrote:
>
> From my 'search engine' results, it looks as if the last this was 
> discussed was back in Sept of last year. 
> Including a very intriguing comment from Massimo on Sept 9, 2011: 
> > This is really nice. I can see this integrated with markmin in a 
> > simple web app that we can all use... I need such a thing so I am 
> > going to build one soon. 
>
> Did anything ever happen with that? 
> I'd like to use deck.js to display some of the content my app is 
> gathering, and am wondering what issues might crop up. 
> Thanks! 
>  --Doug 
>


[web2py] Re: using deck.js with web2py?

2012-07-01 Thread Massimo Di Pierro
Sorry the second link was supposed to be:
https://dl.dropbox.com/u/18065445/MarkminSlides/test.html

On Sunday, 1 July 2012 22:14:51 UTC-5, Massimo Di Pierro wrote:
>
> In the end I preferred reveal.js to deck.js
>
> This integrates reveal.js with markmin.
> https://github.com/mdipierro/markmin-reveal-slides
>
> python libs/make.py test.mm 
>
> makes the test.html example which you can try here:
> https://github.com/mdipierro/markmin-reveal-slides
>
> Hope this is useful. It would be nice to make a web app for it where the 
> source is stored in DB and can be edited online.
>
> On Sunday, 1 July 2012 20:57:52 UTC-5, Doug Philips wrote:
>>
>> From my 'search engine' results, it looks as if the last this was 
>> discussed was back in Sept of last year. 
>> Including a very intriguing comment from Massimo on Sept 9, 2011: 
>> > This is really nice. I can see this integrated with markmin in a 
>> > simple web app that we can all use... I need such a thing so I am 
>> > going to build one soon. 
>>
>> Did anything ever happen with that? 
>> I'd like to use deck.js to display some of the content my app is 
>> gathering, and am wondering what issues might crop up. 
>> Thanks! 
>>  --Doug 
>>
>

[web2py] Learning web2py need advise

2012-07-01 Thread ACK
hello people i have worked with Ruby on Rails / PHP / Html and Css
currently i m learning python for web2py
so my question it is possible to learn python and web2py side by side if 
yes then please guide me 
well my vacation is going on, so i m willing to give full time to my 
learning
and my other question is it is possible to make huge site like Scribd / 
Slideshare / Youtube etc with web2py
i know the question is some what silly but around the web i have read it is 
a micro framework.

Thanks in Advance 


[web2py] How much Python is needed to learn to learn web2py?

2012-07-01 Thread Aniket Kadam
hi i want to build a fully funtional website i know Ruby on Rails but i 
work on windows and u know its terrible to run rails on windows
so i m looking at web2py currently learning python so how much one should 
master python to enter the whole new world of web2py

Please help

thank you


Re: [web2py] Re: develop iphone apps with web2py with this plugin

2012-07-01 Thread samrat kafle
 I tried this but not worked well I am searching a complete guide for 
developing iphone apps and i have found one cool articles which i recommend 
ofr dummies  here's a link "developing iphone 
apps" 
if you are really searching for developing iPhone apps with zero coding 
skills.


[web2py] How much python is needed to learn web2py

2012-07-01 Thread priyanka kadam
i want to focus on developing world class web app i started python but can 
i learn web2py side by side
what you say people advise me
thank you


Re: [web2py] web2pyslices seems to be down

2012-07-01 Thread ANIKET KADAM
its working in India

On Sun, Jul 1, 2012 at 5:59 PM, Michele Comitini  wrote:

> Must be an open transaction somewhere (in the queue consumer script?)
> that never closes.
> Il giorno 01/lug/2012 14:04, "Bruno Rocha"  ha
> scritto:
>
> Thats ok now!
>>
>> It was a problem with notification system, I am using a background task
>> queue and for some reason it has blocked postgres.
>>
>> Thank you for reporting!
>>
>>  *Bruno Cezar Rocha*
>>
>> http://www.CursoDePython.com.br
>> [image: Facebook]  [image: 
>> Twitter] [image:
>> LinkedIn]  [image: 
>> about.me] [image:
>> Amazon]  [image: 
>> AngelList] [image:
>> Blog RSS]  [image:
>> Facebook Page]  [image: 
>> foursquare] [image:
>> Google Plus]  
>> [image:
>> pinterest]  [image: 
>> SlideShare] [image:
>> YouTube] 
>>  [image: Google Talk] rochacbruno [image: Skype] blouweb
>>   Get a signature like this.
>> 
>>  Click
>> here.
>>
>>
>>
>> On Sun, Jul 1, 2012 at 8:36 AM, Jose C  wrote:
>>
>>> Just starting on a project and been trying to access 
>>> web2pyslices.comoccasionally.  It's been returning 504 errors since Friday 
>>> (since I started
>>> on this project).  Does anyone know if this site is still active or who is
>>> responsible for it?
>>>
>>
>>


[web2py] Re: web2py book now free in PDF

2012-07-01 Thread Aniket Kadam
good

On Tuesday, June 12, 2012 5:47:46 PM UTC+4:30, Massimo Di Pierro wrote:
>
> The official web2py book is now free for everybody:
>
> https://dl.dropbox.com/u/18065445/web2py/web2py_manual_4th.1.pdf
>
> Massimo
>


Re: [web2py] standalone we-app example

2012-07-01 Thread Gianni
See
https://github.com/mdipierro/web2py-recipes-source/blob/master/source/11_Other_Tips_and_Tricks/13_Making_standalone_apps_with_web2py_and_wxPython/my_gui2py_app.py
from "web2py Application Development Cookbook".
It's a web2py+wxPython solution.
Hope that could help you.

Unfortunately I'm more Qt/Pyside biased. I tried to convert the example
(using the QtWebKit) but I was not able to catch the web2py FORM submit
event and have not found any help to solve this.

Giovanni

Il giorno ven, 29/06/2012 alle 17.29 +0200, orsomannaro ha scritto:
> How can I dowload a web2py standalone web-app example?
> 
> Tnk.




[web2py] Re: image thumb

2012-07-01 Thread pbreit
Have a look at the slices:
http://www.web2pyslices.com/slice/search?q=thumbnail


[web2py] Re: Launch of Web2py 2

2012-07-01 Thread pbreit
The most current changeset from Google Code is probably the most stable 
version of Web2py:
http://code.google.com/p/web2py/source/checkout

I'm not sure how mission critical your app is but you can generally feel 
comfortably using the most recent version of the source code.




[web2py] GAE supports SSL for custom domains now

2012-07-01 Thread chinakr
GAE supports SSL for custom domains now. We can choose Server Name 
Indication (SNI) with 5 certificates for $9/month, or Virtual IP (VIP) with 
multi domain certificate for $99/month.

Is there anything that web2py can do with it?

Reference:

(Google App Engine 1.7.0 Released at Google 
I/O](http://googleappengine.blogspot.kr/2012/06/google-app-engine-170-released-at.html)

Re: [web2py] Re: uWSGI + Cherokee + web2py - a howto.

2012-07-01 Thread pbreit
It's pointing to: /etc/alternatives/uwsgi-plugin-python

Is there anything there?

Are the permissions OK? I run my Ubuntu server under www-data:www-data.


Re: [web2py] Learning web2py need advise

2012-07-01 Thread Bruce Wade
My suggestion is read the online manual front-back.

Creating a large site is going to be very challenging as I am running into
some problems. Some tips I have learned.

1) Separate your models into modules, then instead of importing modules for
every action use web2pys model folder structure system to import the models
you need per action.
2) Don't use the HTML helpers for rendering simple HTML like  
 etc... If you use the functions provided by web2py it will slow
down your rendering dramatically on high load websites. Try to keep all
your HTML in HTML/view files where they belong.

We made the mistake of using the HTML helpers all over the place and now it
is one of the bottle necks on the site. So we are going through and
removing all of them in favor of pure HTML. It also makes the code a lot
harder to read then plain HTML.

Besides the 2 tips above getting the site developed using web2py will be
very fast, you will have to work hard at scaling though so be prepared for
that if your site becomes very popular and you offer a lot of
functionality. (Note: Scaling is an issue that every popular site will have
to go through regardless of the framework)

--
Regards,
Bruce


On Sun, Jul 1, 2012 at 6:15 AM, ACK  wrote:

> hello people i have worked with Ruby on Rails / PHP / Html and Css
> currently i m learning python for web2py
> so my question it is possible to learn python and web2py side by side if
> yes then please guide me
> well my vacation is going on, so i m willing to give full time to my
> learning
> and my other question is it is possible to make huge site like Scribd /
> Slideshare / Youtube etc with web2py
> i know the question is some what silly but around the web i have read it
> is a micro framework.
>
> Thanks in Advance
>



-- 
-- 
Regards,
Bruce Wade
http://ca.linkedin.com/in/brucelwade
http://www.wadecybertech.com
http://www.fittraineronline.com - Fitness Personal Trainers Online
http://www.warplydesigned.com


Re: [web2py] How much Python is needed to learn to learn web2py?

2012-07-01 Thread Bruce Wade
Just to start developing sites with web2py you must know basic python which
is covered in the manual. To build very complicated efficient sites that is
a different story and you will have to become very good with python and for
some situations c/c++.

On Sun, Jul 1, 2012 at 8:23 AM, Aniket Kadam wrote:

> hi i want to build a fully funtional website i know Ruby on Rails but i
> work on windows and u know its terrible to run rails on windows
> so i m looking at web2py currently learning python so how much one should
> master python to enter the whole new world of web2py
>
> Please help
>
> thank you
>



-- 
-- 
Regards,
Bruce Wade
http://ca.linkedin.com/in/brucelwade
http://www.wadecybertech.com
http://www.fittraineronline.com - Fitness Personal Trainers Online
http://www.warplydesigned.com


[web2py] new feature in trunk, redirects via routes

2012-07-01 Thread Massimo Di Pierro
Please help me test this

in routes.py you can do

routes_in = [
   ('/google', '303->http://google.com'),
   ('/yahoo', '303->http://yahoo.com'),
   ('/search/$anything', '303->http://google.com?q=$anything'),
   ('/hello/$anything','303->/welcome/$anything'
]




Re: [web2py] new feature in trunk, redirects via routes

2012-07-01 Thread Alec Taylor
Wow, that looks rather useful =D

On Mon, Jul 2, 2012 at 1:46 PM, Massimo Di Pierro
 wrote:
> Please help me test this
>
> in routes.py you can do
>
> routes_in = [
>('/google', '303->http://google.com'),
>('/yahoo', '303->http://yahoo.com'),
>('/search/$anything', '303->http://google.com?q=$anything'),
>('/hello/$anything','303->/welcome/$anything'
> ]
>
>


Re: [web2py] Re: Launch of Web2py 2

2012-07-01 Thread Kevin Miller
Thank you pbreit.
Since web2py is the easiest web framework to move your app around, I will
definately try this version shortly.

On Sun, Jul 1, 2012 at 10:35 PM, pbreit  wrote:

> The most current changeset from Google Code is probably the most stable
> version of Web2py:
> http://code.google.com/p/web2py/source/checkout
>
> I'm not sure how mission critical your app is but you can generally feel
> comfortably using the most recent version of the source code.
>
>
>


Re: [web2py] Re: Getting auth.settings.register_next to work...

2012-07-01 Thread Anthony

>
> > I don't think it's a bug, per se, but the behavior (and documentation) 
> could 
> > be improved. 
>
> ??? The documentation is quite direct and clear that you can set 
> auth.settings.register_next to control where the user goes next. It 
> doesn't work. It's not even clear that it can work given the current 
> code base.


Here's what the book says:

These must point to the URL you want to redirect your users to after the 
various possible auth actions (in case there is no referrer):


Notice the highlighted text. The _next URLs are default redirect URLs *when 
there is no referring page*, and auth.settings.register_next does in fact 
work when there is no referring page (i.e., when there is no _next var in 
the URL). The issue is not with auth.settings.register_next, but with the 
auth.navbar() helper. The navbar helper always adds the current page URL as 
the _next var in the register link, so if you use the navbar to get to the 
registration page, you will be redirected back to the page from which you 
clicked the link.

Note, you do not have to use the navbar to generate your Auth links. If you 
do want to use it, there is an easy workaround. If you don't want to have 
to use a workaround, then as I suggested, perhaps we can improve the navbar 
by enabling some redirect options. But I still don't see a bug with 
auth.settings.register_next. The intended behavior is that a referrer takes 
precedence, and auth.settings.register_next is the default when there is no 
referrer -- and that's how it works. We now just need an easy way to 
prevent the navbar from automatically adding a referrer.

Anthony


[web2py] Re: {{=LOAD()}} and JavaScript function

2012-07-01 Thread Anthony
Sorry, misunderstood the requirement -- edited my original response.

On Sunday, July 1, 2012 9:11:53 AM UTC-4, Anthony wrote:
>
> You can use a jQuery ajaxSuccess() 
> handler to determine when the classes 
> component has loaded. Something like 
> this inside your document ready handler (not tested):
>
> $('#equalize1').ajaxSuccess(function(e, xhr, settings) {
>   if (settings.url === '{{=URL('site', 'classes.load', args=session.id)}}'
> ) {
> $(this).equalHeights();
>   };
> });
>
> Anthony
>
> On Sunday, July 1, 2012 5:51:48 AM UTC-4, Annet wrote:
>>
>> I am using this JavaScript to equalize column heights:
>>
>> 
>> $(document).ready(function(){
>>
>>   $('a[href=#{{=tab}}]').tab('show');
>>   
>>   $(function() {
>> $('#equalize1').equalHeights();
>>   });
>>   
>>   $(function() {
>> $('#equalize2').equalHeights();
>>   });
>>   
>> });
>>
>> 
>>
>>
>> 
>>   ...
>>  
>>
>> 
>>   ...
>>  
>>
>> The problem is that #equalize1 contains tabs that load their content as 
>> follows:
>>
>> {{=LOAD('site','classes.load',args=session.id,ajax=True,target='tab-1')}}
>>
>>
>> What I am looking for is a way to execute this function:
>>
>> $(function() {
>> $('#equalize1').equalHeights();
>>   });
>>
>> after classes have been loaded.
>>
>>
>> Kind regards,
>>
>> Annet 
>>
>

[web2py] Re: web2py book now free in PDF

2012-07-01 Thread chinakr
Excellent work, thanks a lot, Massimo!

在 2012年6月12日星期二UTC+8下午9时17分46秒,Massimo Di Pierro写道:
>
> The official web2py book is now free for everybody:
>
> https://dl.dropbox.com/u/18065445/web2py/web2py_manual_4th.1.pdf
>
> Massimo
>


Re: [web2py] Re: Error with Janrain integration

2012-07-01 Thread hasan alnator
Dear Massimo,

when anyone is logged in  using Janrain  and use any "a href" that is when
a normal link like this "http://www.site.com/test"; the
user loges out automatically but if i use a link using the URL() it works
fine , why is that ??

Regards,

On Mon, Jul 2, 2012 at 1:21 AM, Massimo Di Pierro <
massimo.dipie...@gmail.com> wrote:

> Sorry, I do not understand the problem.
>
>
> On Sunday, 1 July 2012 04:01:25 UTC-5, Hassan Alnatour wrote:
>>
>> Dear ALL,
>>
>> I am using Janrain with the normal login in my site it works well
>> but lately i have notice that if i am login in using it and using use
>> normal links on the site like : *www.i3zif.com/PlayVideo/18*  , it logs
>> out but if i am using the normal login it works well , what do you think
>> the problem is ?
>>
>>
>> Best Regards,
>>
>


Re: [web2py] Re: advice and help on csv input

2012-07-01 Thread Johann Spies
On 30 June 2012 07:44, song  wrote:
>
>
>> country_iso,subcountry_code,**name,subcountry_level
>>
>> You need an id-column in the csv.

The easiest way to get that is to export an empty csv file of the table
from your appadmin.  That wil ensure the correct column headings.  Then
paste the data into the correct columns using a program like LibreOffice,
OpenOffice, Gnumeric or Excel.

Regards
Johann


-- 
Because experiencing your loyal love is better than life itself,
my lips will praise you.  (Psalm 63:3)


[web2py] Re: {{=LOAD()}} and JavaScript function

2012-07-01 Thread Annet
Hi Anthony,

I read the jQuery API doc and tried your solution, for some reason it 
doesn't work. I hope that when I provide you with more code, you'll be able 
to help me to get this to work.

This is the site/index.html view:


{{extend 'site/generic.html'}}


$(document).ready(function(){

  $('a[href=#{{=tab}}]').tab('show');
  
  $('#equalize1').ajaxSuccess(function(e, xhr, settings) {
if (settings.url === '{{=URL("site", "classes.load", 
args=session.id)}}') {
  $(this).equalHeights();
};
  });
  
});




  
{{include 'default/flash.html'}}
{{if row:}}
  {{=XML(row.text)}}
{{pass}}

   
  
{{if session.cal:}}
  {{include 'site/calendar.html'}}
{{pass}}
   
 


This is site/calendar.html:



  {{if session.cal.lesrooster:}}
Lessen
  {{pass}}
  {{if session.cal.event_list:}}
Events
  {{pass}}
  {{session.cal.cursusrooster}}
Cursussen
  {{pass}}

 

  {{if session.cal.lesrooster:}}

  
{{=LOAD('site','classes.load',args=session.id,ajax=True,target='tab-1')}}
 
  {{pass}}
  {{if session.cal.event_list:}}

  
{{=LOAD('site','events.load',args=session.id,ajax=True,target='tab-2')}}
 
  {{pass}}
  {{if session.cal.cursusrooster:}}

  
{{=LOAD('site','courses.load',args=session.id,ajax=True,target='tab-3')}}
 
  {{pass}}
 


I don't think the content of classes.load, events.load and courses.load 
influences the ajaxSuccess function.


Since all the ajax functionality of this view is contained in the tab I 
suppose this should work too?

$('#equalize1').ajaxSuccess(function() {
  $(this).equalHeights();
  });


Kind regards,

Annet.