[web2py] Re: Anthony was right... web3py has a big naming conflict

2019-07-22 Thread Ivica Kralj
I can't let gluon go :)  so how about


Gluonic


trademark seems to be available
https://www.trademarkia.com/trademarks-search.aspx?tn=gluonic

gluonic dot com is parked for the last 2000 days. However, some of the 
top-level domains are available .co, .net, .tech, .info, .online, .dev...

https://domains.google.com/m/registrar/search?searchTerm=gluonic&hl=en&_ga=2.204003988.549408078.1563812529-1656870076.1563812529&tab=1&availabilityFilter=

google search 
About 160,000 results 


On Monday, 22 July 2019 15:40:35 UTC+2, Ivica Kralj wrote:
>
> It needs to be changed for sure. 
>
> I really like gluon (even Microsoft joined this bandwagon)... 
>
> So maybe inspiration could come from quantum phisics again. Scrap that... 
> Most cool named subatomic particles are already used (muon)... 
>
> How about something relating to python species (sebae). not sure how to 
> pronounce this :) !! 
>
> Now that I contributed a tiny bit, in my humble opinion, I wouldn't go 
> 'web' or 'py' rute. 
>
>

-- 
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/70abbe6b-586e-42bd-ab35-038d686c454c%40googlegroups.com.


[web2py] Anthony was right... web3py has a big naming conflict

2019-07-22 Thread Ivica Kralj
It needs to be changed for sure. 

I really like gluon (even Microsoft joined this bandwagon)... 

So maybe inspiration could come from quantum phisics again. Scrap that... Most 
cool named subatomic particles are already used (muon)... 

How about something relating to python species (sebae). not sure how to 
pronounce this :) !! 

Now that I contributed a tiny bit, in my humble opinion, I wouldn't go 'web' or 
'py' rute. 

-- 
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/b80397d0-45d6-45f3-9355-e0e5e5d54f81%40googlegroups.com.


Re: [web2py] Re: Resource webservice built on web2py for web2py comunity [BETA]

2015-10-26 Thread Ivica Kralj
I've used gmail app password on one of my website (gmail two step auth is 
enabled) and I haven't experienced any issues. I guess... it could be insecure 
if somebody can access your web2py admin page (admin should be disabled in 
anyway) or somebody cracks your hosting account login (e.g. pythonanywhere) and 
obtain your gmail password this way. For everything else, I trust web2py can 
keep intruders out.

On most of my websites, I've set up my web2py app with my domain register's 
mail server (SMTP) settings. My domain regsiter (eurodns) provides one free 
email account. This email account is set up to auto-forward any emails to my 
main gmail address (web form over to register's mail and finaly to gmail). 
Also, from gmail account I have IMAP set up, it works like a charm.

-- 
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: Resource webservice built on web2py for web2py comunity [BETA]

2015-10-25 Thread Ivica Kralj
Hi,

The site is maintained but not actively as I would like.

I've just added new example for the contact form. 
http://www.web2pyref.com/example/contact-form-contact-form-with-recaptcha-and-gmail-smtp-service-app-1

My intention is to still continue adding new references and new examples 
but unfortunately I have other priorities going on at the moment.

On Friday, 23 October 2015 15:58:59 UTC+2, Ron Chatterjee wrote:
>
> Wondering if we can have more examples, source code and snippets gets put 
> into web2pyref. I don't know who is maintaining the page but few things I 
> wish I could use example of sending email using gmail SMTP and contact 
> form, voting, likes, paypal ecommerce, rating, bootstrap3 and social media 
> integration etc. Just some thoughts...
>
>
>
> On Monday, June 8, 2015 at 8:19:32 PM UTC-4, Carlos A. Armenta Castro 
> wrote:
>>
>> I don't know if web2pyslices is better than web2pyref and it doesn't care 
>> for me. My personal opinion is: We need a decent, powerful and usable 
>> website to collect all ours code snippets, examples, recipes, plugins, demo 
>> sites, templates (bs2, bs3, etc.) and for to be honest that is our 
>> Achilles' heel. We have a really great community, but a no optimal system 
>> to show our work to the world (and to motivate the newbies). 
>>
>> Finally, I appreciate the work of the web2pyref.com and web2pyslices.com, 
>> and I think we need to be part of that kind of projects contributing to the 
>> source code, promotion and with donations.
>>
>> Sorry for my bad english.
>>
>> El lunes, 8 de junio de 2015, 6:16:43 (UTC-7), Carlos Cesar Caballero 
>> Díaz escribió:
>>>
>>> Some months ago, because I can´t post anything to web2pyslices (others 
>>> have the same problem and no one knows why) I post that I could motivate 
>>> some of my team (including a designer) for building (and maintain) a new 
>>> web2pyslices, and the proposal remains on the table. Right now I have two 
>>> ideas, first, open source the site, and motivate the comunity to 
>>> contribute, the other thing is, taking advantage of the web2pyslices 
>>> maintenance problems, mix everything in a improved new web2py site, and 
>>> web2pyslices could continue alive, for consulting, in some kind of read 
>>> only mode.
>>>
>>>
>>> El 07/06/15 a las 20:49, Massimo Di Pierro escribió:
>>>
>>> The maintainers of web2pyslices do not want to do it any more. The 
>>> domain has been donated to me (although we are in the process of 
>>> transferring it) so if Ivica want to put the effort of maintaining an 
>>> alternate site, that is better for me than maintaining web2pyslices, as 
>>> long as info is not lost. 
>>>
>>>
>>> On Saturday, 6 June 2015 04:52:56 UTC-5, Ivica Kralj wrote: 
>>>>
>>>> That is fine Niphlod. I created this project, primary for personal 
>>>> reason to have quick resource to examples when I 'm working on my small 
>>>> projects,. I think people, specially newbies, might find it useful. 
>>>> Comparing myself to allot of members here, I do consider myself a newbie, 
>>>> although I have joined this group over 4-5 years ago or so. 
>>>>
>>>> Any feature can be added if its needed or requested. 
>>>>
>>>> I agree, over the years there were number of resources,  most of them 
>>>> got abandoned, but their resources are still out here (alter ego for 
>>>> example), and I still regularly visit them. Even if they might not work 
>>>> with current web2py version, we can still learn from them, well I do.
>>>>
>>>>
>>>> On Friday, 5 June 2015 21:35:08 UTC+2, Niphlod wrote: 
>>>>>
>>>>> not to be the buzzkiller but I won't post any example there that 
>>>>> exists on web2pyslices.com that ATM has at least 2 killer features: 
>>>>> social login and packages uploads.  
>>>>>
>>>>> BTW: until all snippets are continously tested, this is going to 
>>>>> become the 4th incarnation of a "web2py snippet blog/container/etc" with 
>>>>> outdated pieces of code within the next year, when the buzz wears off.
>>>>>
>>>> -- 
>>> 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.


[web2py] Re: Resource webservice built on web2py for web2py comunity [BETA]

2015-06-06 Thread Ivica Kralj
That is fine Niphlod. I created this project, primary for personal reason 
to have quick resource to examples when I 'm working on my small projects,. 
I think people, specially newbies, might find it useful. Comparing myself 
to allot of members here, I do consider myself a newbie, although I have 
joined this group over 4-5 years ago or so.

Any feature can be added if its needed or requested. 

I agree, over the years there were number of resources,  most of them got 
abandoned, but their resources are still out here (alter ego for example), 
and I still regularly visit them. Even if they might not work with current 
web2py version, we can still learn from them, well I do.


On Friday, 5 June 2015 21:35:08 UTC+2, Niphlod wrote:
>
> not to be the buzzkiller but I won't post any example there that exists on 
> web2pyslices.com that ATM has at least 2 killer features: social login 
> and packages uploads. 
>
> BTW: until all snippets are continously tested, this is going to become 
> the 4th incarnation of a "web2py snippet blog/container/etc" with outdated 
> pieces of code within the next year, when the buzz wears off.
>

-- 
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: Resource webservice built on web2py for web2py comunity [BETA]

2015-06-06 Thread Ivica Kralj
At the moment users can mark examples as depreciated  since which web2py 
version. I will just need to enable tested_on field. This will all be shown 
on example page.


On Friday, 5 June 2015 22:17:36 UTC+2, Rufus wrote:
>
> On Friday, June 5, 2015 at 3:35:08 PM UTC-4, Niphlod wrote:
>
>> BTW: until all snippets are continously tested, this is going to become 
>> the 4th incarnation of a "web2py snippet blog/container/etc" with outdated 
>> pieces of code within the next year, when the buzz wears off.
>>
>
> Nothing worse than getting broken code samples off the web, is there?   
> (Well, there are worse things...) 
> Maybe we can add some fields to each snippet to indicate: which versions 
> it was tested on, when it was
> submitted, when last verified, etc.
>
> As people use the snippets, at least a few will provide feedback in the 
> form of: "I just used this one and it works
> great" to provide a "last tested" timestamp.
>
>

-- 
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: Resource webservice built on web2py for web2py comunity [BETA]

2015-06-06 Thread Ivica Kralj
Ok, I will create this example in the next few days...read Monday :)


On Friday, 5 June 2015 19:30:04 UTC+2, Ron Chatterjee wrote:
>
> Can you post the example of div element about recent examples, top rated 
> examples...etc and show how you create the box element? I believe that's 
> what you meant by custom layout.
>
> On Friday, June 5, 2015 at 11:45:47 AM UTC-4, Derek wrote:
>>
>> The slider thing on the top moves the content up and down. And it 
>> repeats, so it's like trying to use your website on a mexican jeep on it's 
>> way to Costa Maya. 
>>
>>
>> On Thursday, June 4, 2015 at 2:40:14 PM UTC-7, Ivica Kralj wrote:
>>>
>>> Hi All,
>>>
>>> This is my little personal project I have worked on for the last few 
>>> months. 
>>>
>>> www.web2pyref.com
>>>
>>> Project is in beta and I'm still adding and fixing features, 
>>> functionalities and content, whenever I get a chance. Please, feel free to 
>>> express your opinions or constructive suggestions.
>>>
>>> Service is open to all. You can register and contribute by adding more 
>>> examples.
>>>
>>> Idea behind the service is to link particular web2py reference to a 
>>> multiple web2py examples. This will enable web2py users to learn or remind 
>>> them-self how to use certain web2py functionality by examining multiple 
>>> examples. System should automatically link every reference to web2py 
>>> examples' records. 
>>>
>>> When I started playing with web2py, I always wanted to have this type of 
>>> resource, so I believe new web2py users will find the project beneficial.
>>>
>>> If you will add new examples, please keep in mind following criteria: 
>>> examples should be relevant and *functional. *Accepted example types 
>>> are snippets, apps, plugins or modules. Also, if you copy and paste 
>>> example's code, example should be fully operational in your web2py 
>>> environment.
>>>
>>> Functionalities so far:
>>>
>>>- Add/edit web2py references and examples.
>>>- Save/follow records
>>>- Rate records
>>>- Comment
>>>- Private user page where you can access your own, commented, rated 
>>>and saved references and examples records.
>>>- Search
>>>- Tags
>>>- 3.5 step wizard form
>>>
>>> Regards,
>>> Ivica
>>>
>>> p.s.
>>> If you are planing to test the app, please do not publish irrelevant or 
>>> uncompleted records...(google remembers everything) :)
>>>
>>>

-- 
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: Resource webservice built on web2py for web2py comunity [BETA]

2015-06-06 Thread Ivica Kralj
Ha ha, goodone! Thanks for that. 

When you look at something for too long, your learn how to ignore it :)

I have removed 2nd carousel, as it was not needed. Problem was 2nd image's 
height. Image was bigger than 1st image.


On Friday, 5 June 2015 17:45:47 UTC+2, Derek wrote:
>
> The slider thing on the top moves the content up and down. And it repeats, 
> so it's like trying to use your website on a mexican jeep on it's way to 
> Costa Maya. 
>
>
> On Thursday, June 4, 2015 at 2:40:14 PM UTC-7, Ivica Kralj wrote:
>>
>> Hi All,
>>
>> This is my little personal project I have worked on for the last few 
>> months. 
>>
>> www.web2pyref.com
>>
>> Project is in beta and I'm still adding and fixing features, 
>> functionalities and content, whenever I get a chance. Please, feel free to 
>> express your opinions or constructive suggestions.
>>
>> Service is open to all. You can register and contribute by adding more 
>> examples.
>>
>> Idea behind the service is to link particular web2py reference to a 
>> multiple web2py examples. This will enable web2py users to learn or remind 
>> them-self how to use certain web2py functionality by examining multiple 
>> examples. System should automatically link every reference to web2py 
>> examples' records. 
>>
>> When I started playing with web2py, I always wanted to have this type of 
>> resource, so I believe new web2py users will find the project beneficial.
>>
>> If you will add new examples, please keep in mind following criteria: 
>> examples should be relevant and *functional. *Accepted example types are 
>> snippets, apps, plugins or modules. Also, if you copy and paste example's 
>> code, example should be fully operational in your web2py environment.
>>
>> Functionalities so far:
>>
>>- Add/edit web2py references and examples.
>>- Save/follow records
>>- Rate records
>>- Comment
>>- Private user page where you can access your own, commented, rated 
>>and saved references and examples records.
>>- Search
>>- Tags
>>- 3.5 step wizard form
>>
>> Regards,
>> Ivica
>>
>> p.s.
>> If you are planing to test the app, please do not publish irrelevant or 
>> uncompleted records...(google remembers everything) :)
>>
>>

-- 
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: Resource webservice built on web2py for web2py comunity [BETA]

2015-06-06 Thread Ivica Kralj
Thanks Villas.
I have read somewhere, even with user-agent set to disallow, search 
crawlers will still crawl your site. Considering site is live now, I rather 
just avoid future headache.

On Friday, 5 June 2015 17:39:49 UTC+2, villas wrote:
>
> Really good +1 !
>
> If you are planing to test the app, please do not publish irrelevant or 
>> uncompleted records...(google remembers everything) :)
>>
>>
> Whilst testing,  maybe you should consider a robots.txt 
> 
>  
> file with something like this:
>
> User-agent: *
> Disallow: / 
>

-- 
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: Resource webservice built on web2py for web2py comunity [BETA]

2015-06-06 Thread Ivica Kralj
Ah OK. That would be nice design feature to have. I didn't go this far with 
design considerations, as I was just eager to release it. There is always 
something we can add or improve existing features and functionalities. 
Right? :)

On Friday, 5 June 2015 16:10:03 UTC+2, Ron Chatterjee wrote:
>
>  The element of design you have their, the color choice and 
> everything...stands out really well. What I mean by active state is when 
> you hoover your mouse over to a topic it highlights. Again, design feature. 
> Not development. Hopefully someone will put some design examples in the 
> site.
>
> On Friday, June 5, 2015 at 6:31:00 AM UTC-4, Ivica Kralj wrote:
>>
>> Thanks Massimo. I'm glad you like it.
>>
>> I didn't expect that! I see this site as a supplement to web2py book, 
>> slices and other resources. What is happening with web2pyslices.com? I 
>> hope slices is not being abandoned. 
>>
>> This is maybe a topic for another thread, what is the future for 
>> web2pyslices? 
>>
>> At the moment I can only think of two ways how to transfer examples to 
>> w2pREF, manual entry or CSV import. Manual entry will be a project by 
>> itself. 
>>
>> Thanks
>> Ivica
>>
>>
>> On Friday, 5 June 2015 06:30:31 UTC+2, Massimo Di Pierro wrote:
>>>
>>> This is fantastic! Now if you could somehow include the examples from 
>>> web2pyslices.com I'd be happy to redirect web2pyslices.com to your site.
>>>
>>> Massimo
>>>
>>> On Thursday, 4 June 2015 16:40:14 UTC-5, Ivica Kralj wrote:
>>>>
>>>> Hi All,
>>>>
>>>> This is my little personal project I have worked on for the last few 
>>>> months. 
>>>>
>>>> www.web2pyref.com
>>>>
>>>> Project is in beta and I'm still adding and fixing features, 
>>>> functionalities and content, whenever I get a chance. Please, feel free to 
>>>> express your opinions or constructive suggestions.
>>>>
>>>> Service is open to all. You can register and contribute by adding more 
>>>> examples.
>>>>
>>>> Idea behind the service is to link particular web2py reference to a 
>>>> multiple web2py examples. This will enable web2py users to learn or remind 
>>>> them-self how to use certain web2py functionality by examining multiple 
>>>> examples. System should automatically link every reference to web2py 
>>>> examples' records. 
>>>>
>>>> When I started playing with web2py, I always wanted to have this type 
>>>> of resource, so I believe new web2py users will find the project 
>>>> beneficial.
>>>>
>>>> If you will add new examples, please keep in mind following criteria: 
>>>> examples should be relevant and *functional. *Accepted example types 
>>>> are snippets, apps, plugins or modules. Also, if you copy and paste 
>>>> example's code, example should be fully operational in your web2py 
>>>> environment.
>>>>
>>>> Functionalities so far:
>>>>
>>>>- Add/edit web2py references and examples.
>>>>- Save/follow records
>>>>- Rate records
>>>>- Comment
>>>>- Private user page where you can access your own, commented, rated 
>>>>and saved references and examples records.
>>>>- Search
>>>>- Tags
>>>>- 3.5 step wizard form
>>>>
>>>> Regards,
>>>> Ivica
>>>>
>>>> p.s.
>>>> If you are planing to test the app, please do not publish irrelevant or 
>>>> uncompleted records...(google remembers everything) :)
>>>>
>>>>

-- 
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: Resource webservice built on web2py for web2py comunity [BETA]

2015-06-05 Thread Ivica Kralj
Thanks Massimo. I'm glad you like it.

I didn't expect that! I see this site as a supplement to web2py book, 
slices and other resources. What is happening with web2pyslices.com? I hope 
slices is not being abandoned. 

This is maybe a topic for another thread, what is the future for 
web2pyslices? 

At the moment I can only think of two ways how to transfer examples to 
w2pREF, manual entry or CSV import. Manual entry will be a project by 
itself. 

Thanks
Ivica


On Friday, 5 June 2015 06:30:31 UTC+2, Massimo Di Pierro wrote:
>
> This is fantastic! Now if you could somehow include the examples from 
> web2pyslices.com I'd be happy to redirect web2pyslices.com to your site.
>
> Massimo
>
> On Thursday, 4 June 2015 16:40:14 UTC-5, Ivica Kralj wrote:
>>
>> Hi All,
>>
>> This is my little personal project I have worked on for the last few 
>> months. 
>>
>> www.web2pyref.com
>>
>> Project is in beta and I'm still adding and fixing features, 
>> functionalities and content, whenever I get a chance. Please, feel free to 
>> express your opinions or constructive suggestions.
>>
>> Service is open to all. You can register and contribute by adding more 
>> examples.
>>
>> Idea behind the service is to link particular web2py reference to a 
>> multiple web2py examples. This will enable web2py users to learn or remind 
>> them-self how to use certain web2py functionality by examining multiple 
>> examples. System should automatically link every reference to web2py 
>> examples' records. 
>>
>> When I started playing with web2py, I always wanted to have this type of 
>> resource, so I believe new web2py users will find the project beneficial.
>>
>> If you will add new examples, please keep in mind following criteria: 
>> examples should be relevant and *functional. *Accepted example types are 
>> snippets, apps, plugins or modules. Also, if you copy and paste example's 
>> code, example should be fully operational in your web2py environment.
>>
>> Functionalities so far:
>>
>>- Add/edit web2py references and examples.
>>- Save/follow records
>>- Rate records
>>- Comment
>>- Private user page where you can access your own, commented, rated 
>>and saved references and examples records.
>>- Search
>>- Tags
>>- 3.5 step wizard form
>>
>> Regards,
>> Ivica
>>
>> p.s.
>> If you are planing to test the app, please do not publish irrelevant or 
>> uncompleted records...(google remembers everything) :)
>>
>>

-- 
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: Resource webservice built on web2py for web2py comunity [BETA]

2015-06-05 Thread Ivica Kralj
I agree, any example that might be beneficial should be here. When I 
started with web2py I remember tinkering alot about some simple stuff, for 
example {{block}}. Such a useful and powerful feature when it comes to 
design :)
What do you mean by active state?


On Friday, 5 June 2015 04:11:23 UTC+2, Ron Chatterjee wrote:
>
> On that note, may be that will be a good example to capture on the site. 
> How do we use different kind of layout for the look and feel of it. Create 
> active state etc... Even though, its not web2py specific but more of design 
> feature but still, we use them. Just some thoughts...: -)
>

-- 
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: Resource webservice built on web2py for web2py comunity [BETA]

2015-06-05 Thread Ivica Kralj
Thanks Ron.

I'm just using customised bootstrap 3 with customized welcome app 
layout.html file. When I started working on this project web2py didn't 
support boostrap 3 out-of-box and I really wanted to use some bootstrap 3 
features. Couple of months later bootstrap 3 was implemented with web2py. I 
didn't have time to change test/use official bootstrap implementation yet.

On Friday, 5 June 2015 02:24:26 UTC+2, Ron Chatterjee wrote:
>
> This is really nice! What did you use to create the layout like that? Or 
> it came with the bootstrap? Just curious. Good job!
>

-- 
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: Resource webservice built on web2py for web2py comunity [BETA]

2015-06-05 Thread Ivica Kralj
Thanks Jorge

On Friday, 5 June 2015 00:28:57 UTC+2, JorgeH wrote:
>
> Looks good ;)

-- 
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] Resource webservice built on web2py for web2py comunity [BETA]

2015-06-04 Thread Ivica Kralj
Hi All,

This is my little personal project I have worked on for the last few 
months. 

www.web2pyref.com

Project is in beta and I'm still adding and fixing features, 
functionalities and content, whenever I get a chance. Please, feel free to 
express your opinions or constructive suggestions.

Service is open to all. You can register and contribute by adding more 
examples.

Idea behind the service is to link particular web2py reference to a 
multiple web2py examples. This will enable web2py users to learn or remind 
them-self how to use certain web2py functionality by examining multiple 
examples. System should automatically link every reference to web2py 
examples' records. 

When I started playing with web2py, I always wanted to have this type of 
resource, so I believe new web2py users will find the project beneficial.

If you will add new examples, please keep in mind following criteria: 
examples should be relevant and *functional. *Accepted example types are 
snippets, apps, plugins or modules. Also, if you copy and paste example's 
code, example should be fully operational in your web2py environment.

Functionalities so far:

   - Add/edit web2py references and examples.
   - Save/follow records
   - Rate records
   - Comment
   - Private user page where you can access your own, commented, rated and 
   saved references and examples records.
   - Search
   - Tags
   - 3.5 step wizard form

Regards,
Ivica

p.s.
If you are planing to test the app, please do not publish irrelevant or 
uncompleted records...(google remembers everything) :)

-- 
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] examples database

2012-05-22 Thread Ivica Kralj
No problem :)

I haven't came across any specific attendance system, and this topic being
very broad on how it can be implemented and used, I'm not sure if you will
find ready made app which fulfils all your requirements. My suggestion is
to start with web2py example appliances page (
http://www.web2py.com/appliances ) and see if you can fork some of the
apps. Additional websites worth checking are github (
https://github.com/search?q=web2py&type=Everything&repo=&langOverride=&start_value=1)
and google code (
http://code.google.com)

To get you started, you might find these apps useful.

http://code.google.com/p/pyodel/
http://code.google.com/p/web2conf/

Cheers
Ivica


On 22 May 2012 07:30, alazar baharu  wrote:

>  hi Ivica Kralj your posts are help full to me and now i have fixed my
> problem with your great full help thanks and again let me ask you one
> question is there any application developed for an attendance system in one
> organization using web2py what can you will recommend me. 10ks ok man
>
> On Mon, May 21, 2012 at 8:00 AM, Ivica Kralj  wrote:
>
>> error report is saying you have a problem with this line
>>
>>
>> purchased = \n(db.person.id==db.purchase.buyer_id)&\n
>> (db.product.id==db.purchase.product_id)
>>
>>
>>
>>
>>
>>
>>
>> try replacing above line with this one
>>
>> purchased = (db.person.id==db.purchase.buyer_id) & (db.product.id
>> ==db.purchase.product_id)
>>
>>
>>
>>
>> On 21 May 2012 09:30, alazar baharu  wrote:
>>
>>> am new to web2py and am trying to develop some database driven
>>> application and am reading the quick example for web2py on the officila
>>> site but it is not working for me in creating the db.py. the eror looks
>>> like
>>>
>>>
>>> unexpected character after line continuation character 
>>> (C:/Users/Alazar/Desktop/web2py/applications/database/models/db.py, line 
>>> 113)
>>>  i hope its is on the line
>>>  purchased = \n(db.person.id==db.purchase.buyer_id)&\n
>>> (db.product.id==db.purchase.product_id)
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> and the entire code is this one
>>>
>>> # -*- coding: utf-8 -*-
>>>
>>> #
>>> ## This scaffolding model makes your app work on Google App Engine too
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> ## File is released under public domain and you can use without limitations
>>> #
>>>
>>> ## if SSL/HTTPS is properly configured and you want all HTTP requests to
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> ## be redirected to HTTPS, uncomment the line below:
>>> # request.requires_https()
>>>
>>> if not request.env.web2py_runtime_gae:
>>> ## if NOT running on Google App Engine use SQLite or other DB
>>> db = DAL('sqlite://storage.sqlite')
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> else:
>>> ## connect to Google BigTable (optional 'google:datastore://namespace')
>>> db = DAL('google:datastore')
>>> ## store sessions and tickets there
>>> session.connect(request, response, db = db)
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> ## or store session in Memcache, Redis, etc.
>>> ## from gluon.contrib.memdb import MEMDB
>>> ## from google.appengine.api.memcache import Client
>>> ## session.connect(request, response, db = MEMDB(Client()))
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> ## by default give a view/generic.extension to all actions from localhost
>>> ## none otherwise. a pattern can be 'controller/function.extension'
>>> response.generic_patterns = ['*'] if request.is_local else []
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> ## (optional) optimize handling of static files
>>> # response.optimize_css = 'concat,minify,inline'
>>> # response.optimize_js = 'concat,minify,inline'
>>>
>>> #
>>>
>>>
&

Re: [web2py] examples database

2012-05-21 Thread Ivica Kralj
error report is saying you have a problem with this line

purchased = \n(db.person.id==db.purchase.buyer_id)&\n
(db.product.id==db.purchase.product_id)




try replacing above line with this one

purchased = (db.person.id==db.purchase.buyer_id) & (db.product.id
==db.purchase.product_id)



On 21 May 2012 09:30, alazar baharu  wrote:

> am new to web2py and am trying to develop some database driven application
> and am reading the quick example for web2py on the officila site but it is
> not working for me in creating the db.py. the eror looks like
>
>
> unexpected character after line continuation character 
> (C:/Users/Alazar/Desktop/web2py/applications/database/models/db.py, line 113)
>  i hope its is on the line
>  purchased = \n(db.person.id==db.purchase.buyer_id)&\n
> (db.product.id==db.purchase.product_id)
>
>
>
>
> and the entire code is this one
>
> # -*- coding: utf-8 -*-
>
> #
> ## This scaffolding model makes your app work on Google App Engine too
>
>
>
>
> ## File is released under public domain and you can use without limitations
> #
>
> ## if SSL/HTTPS is properly configured and you want all HTTP requests to
>
>
>
>
> ## be redirected to HTTPS, uncomment the line below:
> # request.requires_https()
>
> if not request.env.web2py_runtime_gae:
> ## if NOT running on Google App Engine use SQLite or other DB
> db = DAL('sqlite://storage.sqlite')
>
>
>
>
> else:
> ## connect to Google BigTable (optional 'google:datastore://namespace')
> db = DAL('google:datastore')
> ## store sessions and tickets there
> session.connect(request, response, db = db)
>
>
>
>
> ## or store session in Memcache, Redis, etc.
> ## from gluon.contrib.memdb import MEMDB
> ## from google.appengine.api.memcache import Client
> ## session.connect(request, response, db = MEMDB(Client()))
>
>
>
>
> ## by default give a view/generic.extension to all actions from localhost
> ## none otherwise. a pattern can be 'controller/function.extension'
> response.generic_patterns = ['*'] if request.is_local else []
>
>
>
>
> ## (optional) optimize handling of static files
> # response.optimize_css = 'concat,minify,inline'
> # response.optimize_js = 'concat,minify,inline'
>
> #
>
>
>
>
> ## Here is sample code if you need for
> ## - email capabilities
> ## - authentication (registration, login, logout, ... )
> ## - authorization (role based authorization)
> ## - services (xml, csv, json, xmlrpc, jsonrpc, amf, rss)
>
>
>
>
> ## - old style crud actions
> ## (more options discussed in gluon/tools.py)
> #
>
> from gluon.tools import Auth, Crud, Service, PluginManager, prettydate
>
>
>
>
> auth = Auth(db, hmac_key=Auth.get_or_create_key())
> crud, service, plugins = Crud(db), Service(), PluginManager()
>
> ## create all tables needed by auth if not custom tables
> auth.define_tables()
>
> ## configure email
>
>
>
>
> mail=auth.settings.mailer
> mail.settings.server = 'logging' or 'smtp.gmail.com:587'
> mail.settings.sender = 'y...@gmail.com'
>
>
>
>
> mail.settings.login = 'username:password'
>
> ## configure auth policy
> auth.settings.registration_requires_verification = False
> auth.settings.registration_requires_approval = False
> auth.settings.reset_password_requires_verification = True
>
>
>
>
> ## if you need to use OpenID, Facebook, MySpace, Twitter, Linkedin, etc.
> ## register with janrain.com, write your domain:api_key in private/janrain.key
> from gluon.contrib.login_methods.rpx_account import use_janrain
>
>
>
>
> use_janrain(auth,filename='private/janrain.key')
>
> #
> ## Define your tables below (or better in another model file) for example
> ##
>
>
>
>
> ## >>> db.define_table('mytable',Field('myfield','string'))
> ##
> ## Fields can be 'string','text','password','integer','double','boolean'
>
>
>
>
> ##   'date','time','datetime','blob','upload', 'reference TABLENAME'
> ## There is an implicit 'id integer autoincrement' field
> ## Consult manual for more options, validators, etc.
>
>
>
>
> ##
> ## More API examples for controllers:
> ##
> ## >>> db.mytable.insert(myfield='value')
> ## >>> rows=db(db.mytable.myfield=='value').select(db.mytable.ALL)
> ## >>> for row in rows: print row.id, row.myfield
>
>
>
>
> #
> db.define_table(
> 'person',
> Field('name'),
> Field('email'),
> format = '%(name)s')
>
>
>
>
>
> # ONE (person) TO MANY (dogs)
>
> db.define_table(
> 'dog',
> Field('owner_id', db.person),
> Field('name'),
> Field('type'),
> Field('vaccinated', 'boolean', default=False),
>
>
>
>
> Field('picture', 'uplo

Re: [web2py] Re: tutorial

2012-05-15 Thread Ivica Kralj
hm, I checked online book and example you mentioned, contains variable name
in dict function, while your example above, doesn't. Is this the example
you are talking about? (
http://web2py.com/books/default/chapter/29/3#Let%27s-count).

def index():
session.counter = (session.counter or 0) + 1
return dict(message="Hello from MyApp", counter=session.counter)






On 15 May 2012 17:00, Gerald Klein  wrote:

> All  suggestions that I will check out, but this is actually character for
> character from the web2py site. I guess that's why I am scratching my head.
> That and the fact that the debug references text that is not on the page. I
> am always leery of platforms that do a lot for you, sometimes you give up
> control of important aspects. It points to a line of code that is in my
> file and not a dynamically generated platform file.
>
> but thanks I will check these suggestions out and see what gives.
>
> --jerry
>
>
> On Tuesday, May 15, 2012 7:56:30 AM UTC-5, Gerald Klein wrote:
>>
>> I am working through the tutorial on the web2py site, checking web2py out
>> and I keep getting errors for things I can't see. Like
>>
>> type 'exceptions.SyntaxError'> non-keyword arg after keyword arg
>> (default.py, line 14)
>> That code does not exist on the page. The prior code is:
>> *def index():* *session.counter = (session.counter or 0) + 1* *
>> return dict(message="hello", session.counter)*
>>
>>
>> the last line is line 14?
>>
>> Does anyone have an idea of what this is?
>>
>> thanks
>>
>> --jerry
>>
>>


Re: [web2py] tutorial

2012-05-15 Thread Ivica Kralj
I think you are missing a variable name for session.counter in return.


e.g.

return dict(message="Hello", counter=session.counter)









On 15 May 2012 13:56, Gerald Klein  wrote:

> I am working through the tutorial on the web2py site, checking web2py out
> and I keep getting errors for things I can't see. Like
>
> type 'exceptions.SyntaxError'> non-keyword arg after keyword arg
> (default.py, line 14)
> That code does not exist on the page. The prior code is:
> *def index():**session.counter = (session.counter or 0) + 1* *
> return dict(message="hello", session.counter)*
>
>
> the last line is line 14?
>
> Does anyone have an idea of what this is?
>
> thanks
>
> --jerry
>
>


Re: [web2py] Re: CMS question

2012-05-01 Thread Ivica Kralj
This looks great Massimo. It sure is kick-ass CMS. Can't wait to try it on
my server :) ... I also like the name  :)

Just wondering, how URL's file (page) structure, will be dealt with ( one
Controller/View for all pages, or each page will have it's own View) and
how customisable will it be? And, will hyphens in URLs cause any problems
(where you can use both, hyphen and underscore in the same URL)?

I don't want to rush you, but when can we expect GA version? :)

Thanks
ivica


On 1 May 2012 21:35, Massimo Di Pierro  wrote:

> This is what I have so far...
>
> http://dl.dropbox.com/u/18065445/Tmp/w2cms.pdf
>
> you can try some of it here but you cannot login. You can edit the content
> of the white box.
>
> http://tests.web2py.com/w2cms/default/index
>
>
> - can clone any existing web site (copies, html, css, js, images and fixes
> all links)
> - comes with may layouts (supports all joomla, drupal, worldpress layouts)
> - can edit pages in place using html5 contentEditable (true wysiwyg) but
> can also edit raw html
> - users can limit which page areas are editable
> - injects scripts into pages which display 3 drawers on every page and are
> content dependent
> - pages have tags and read-write attributes. You can find tags and groups
> using autocomplete.
> - @{page.menu} inserts a menu, @{page.title} inserts title etc,
> @{widget.whatever.you.define}
> - If you cut and paste in the page a link to a youtube page, it embeds the
> video on the page. Same with vimeo and other oembed services. I use my own
> library for this which is similar to django-oembed and micawber (in fact it
> supports more services than them and I have submitted a patch to micawber).
> - supports latex via mathjax
>
> It still needs some work before I can release it.
>
> What else would you like to see in a CMS?
>
> massimo
>
>


Re: [web2py] CMS question

2012-04-22 Thread Ivica Kralj
I've been using Modx (Evolution and Revolution) for some time and I must
say I prefer MODX's templating system (I never went back to wordpress or
other CMSs unless I really had to - clients requests). Massimo, I think
your technical and practical side might be happy with this method as it is
using MVC principles :) .   As they describe it: "*MODX is used by both
non-programmers and programmers to build web solutions that can be easily
managed by end users*" (www.modx.com). And I can confirm that.

There is a good wordpress v modx review and off course they covered
templating.

This is just an abstract, full review you can find here
http://tipsfor.us/2011/04/19/wordpress-vs-modx/
"*Hands down, MODx offers the gold standard in templating. Expression
Engine is a healthy second place, but only in my days of doing Perl
development with the venerable Template
Toolkitdid I encounter a templating
system that followed good MVC architectural
principles as well as MODx*."


Regards,
i


On 22 April 2012 17:54, Jonathan Lundell  wrote:

> On Apr 22, 2012, at 9:24 AM, Massimo Di Pierro wrote:
>
> Let's say we want to build a new kick-ass CMS.
>
> My technical side tells me that the best way it to use markup language and
> separate data from presentation (which allows swapping of themes).
>
> My practical side tells is is better to allow users to edit html.
>
> Everytime I has worked with end-users I had a hard time explaining this
> concept of separation of data from presentation. They usually want a page
> tat looks like "that page" but the ability to edit all text and images in
> it.
>
> Most CMS's (like concrete CMS) solve the problem by a compromise. You can
> only edit specific parts of  a page (and they must be clearly tag in the
> HTML). This allows some separation because as long as two themes have the
> same editable tags, the content it portable between the themes. Yet if they
> use a wysiwyg the editable blocks are stored as HTML. Moreover creating
> themes requires some programming skills and make the themes CMS specific.
> In the case of Concrete5 or Joomla for example, this tagging is done in PHP.
>
> So what is better?
> 1) using a markup language with limited choice of themes (like wikipedia)
> 2) using wysiwyg to edit fixed sections in themes (like joomla and
> concrete5)
> 3) using fully editable html with no limitation on themes (any existing
> page would be a theme without need for tweaking) yet one would not be able
> to swap a theme on a page without loss of content, any more you can swap
> the theme on a msworld document.
>
>
> WordPress has evolved a pretty good html editor that lets you flip back &
> forth between WSIWYG and raw html.
>
> I built a site a while ago with Expression Engine (a commercial equivalent
> to Drupal/Joomla). I don't recall every detail, but I think they took the
> approach that the page designer could designate on a field-by-field basis
> how input would be interpreted: plain text, html, or some other filter.
>
>
>


Re: [web2py] web2py 1.99.3 is OUT

2011-12-09 Thread Ivica Kralj
Cool :)
Thank you

On 9 December 2011 16:40, Massimo Di Pierro wrote:

> Make no mistakes. This is not a minor revision. This is in preparation
> for 2.0.
>
> We could not call it 1.100 because it would break the old automatic
> upgrade mechanism (1 comes before 9, yikes).
>
> There are a huge number of bugs fixes and many improvements.
>
> The most important change is that the new welcome is very mobile
> friendly, it uses the skeleton flexible grid and detects mobile to
> render the menu as a dropdown and optionally compress all your css/js.
>
> The SQLFORM.grid is also very much improved.
>
> Markin now can do things like
>
> {{=MARKMIN('qr:http://web2py.com')}}
> {{=MARKMIN('embed:http://www.youtube.com/embed/x1w8hKTJ2Co')
>
> and it automatically embeds audio and video players if you just
> include a link in the text. If you have not used markmin, you should.
>
> There is an experimental MongoDB support.
>
> The new web site layout needs work but we put it out there hoping for
> more feedback.
>
> We ditched Launchpad and moved to GitHub and Googlecode (mirrored).
> Issue tracking is still on Googlecode but we plan to move to Github.
>
> The book is also coming out very soon. The book will described 1.99.3
>
> Thanks to all those who contributes in particular Anthony, Jonathan,
> Mariano, Ross, Angelo, Niphold, Bruno, Dave, Mark. Too may people have
> contributed small patches and they are too many to mention. I
> apologize.
>
> Please test it and report bugs.
> As soon as we have a mobile support in admin we will rename this 2.0.
>
> Massimo
>


Re: [web2py] Re: IMPORTANT

2011-10-13 Thread Ivica Kralj
Won't somebody please think of the children?

Web2py is everybody’s baby and any negative vibe in community might hinder
further development. Like most of people said, let's move on. Live and let
live!!!



On 13 October 2011 18:59, Vinicius Assef  wrote:

> Let's move on, guys?
>
>
> On Thu, Oct 13, 2011 at 2:32 PM, pbreit  wrote:
> > == Apologies for Off Topic ==
> > The most surprising thing to me is that Alvaro, Max and the others did
> not
> > make even the slightest attempt to try and understand that the feedback
> > could be reasonable. Their reactions were even more insulting than the
> logo
> > itself. If a European came to me with feedback, I would not even consider
> > immediately dismissing it because I don't understand it as a
> non-European.
> > Surely any European would understand feedback concerning, for example,
> World
> > War 2.
> > Ultimately, a win-win could have been accomplished. Instead it was
> > lose-lose: the problem remains and the Cherokee community comes off as
> evil.
>


Re: [web2py] Re: problem displaying db query result in view, inside {{for}}

2011-10-09 Thread Ivica Kralj
Thanks Anthony. That worked. I shouldn’t be working so late on my project I
make silly copy and paste mistakes.


On 9 October 2011 12:25, Anthony  wrote:

> On Sunday, October 9, 2011 12:51:32 AM UTC-4, IK wrote:
>>
>> Out of 6 listing_item records, 2 didn't had price records.  I deleted
>> those two listing_item records but I'm still getting the same problem.
>>
>> To recap
>> {{for item ...
>> {{prices=db(db.price.listing==**item.id 
>> ).select(orderby=db.**price.weekly,distinct=True)}}
>> {{=prices.weekly.last()}}
>>OR
>>   {{=prices.weekly}}
>>
>
> Is that your exact code? Note, prices is a Rows object -- before accessing
> a field, you first have to extract an individual Row. So it would be
> prices.last().weekly, not prices.weekly.last().
>
> Anthony
>
>


Re: [web2py] Re: table, grid, smartgrid, getting better

2011-09-25 Thread Ivica Kralj
Thanks Massimo.

On 25 September 2011 00:02, Massimo Di Pierro wrote:

> Yes they are:
>
> grid=SQLFORM.smartgrid(db.person,ui='jquery-ui')
>
> On Sep 24, 12:48 pm, Ivica Kralj  wrote:
> > Hi,
> >
> > I'm quite impressed with the features in this release (also it didn't
> break
> > anything :) )
> >
> > Just a question for Martin or Bruno, or anybody who knows the answer
> > regarding smartrgid/grid and Jquery UI themes application. I've spent few
> > hours searching through this group and couldn't find  the answer.
> >
> > Are Jquery UI themes supported by default in grid/smartgrid (I know there
> > was talk about this but no sure if it's implemented) and if not how to
> > activate it? I've seen there is a patch, but again not sure if it was
> > applied to latest release.
> >
> > I tried few variation, and I'm running out ideas (last option is to check
> > the code, but posting this question here might be faster and beneficial
> to
> > other users)
> >
> > grid=SQLFORM.smartgrid(db.person,jqueryui=True) ##wrong, do not
> use###
> >
> > For example in this demo Jquery UI css is used.
> >
> > http://labs.blouweb.com/web2pygrid/default/index?jqueryui=true
> >
> >   > While in my app using smartgrid html looks like this
> >
> >   >
> > Thanks
> > I
> >
> > On 24 August 2011 11:13, Bruno Rocha  wrote:
> >
> >
> >
> >
> >
> >
> >
> > > JqueryUI Applied! (Any Theme fromhttp://jqueryui.com/themeroller)
> >
> > > Take a look in attached screenshots (a patch is comming to Massimo's
> mail)
>


Re: [web2py] Re: table, grid, smartgrid, getting better

2011-09-24 Thread Ivica Kralj
Hi,

I'm quite impressed with the features in this release (also it didn't break
anything :) )

Just a question for Martin or Bruno, or anybody who knows the answer
regarding smartrgid/grid and Jquery UI themes application. I've spent few
hours searching through this group and couldn't find  the answer.

Are Jquery UI themes supported by default in grid/smartgrid (I know there
was talk about this but no sure if it's implemented) and if not how to
activate it? I've seen there is a patch, but again not sure if it was
applied to latest release.

I tried few variation, and I'm running out ideas (last option is to check
the code, but posting this question here might be faster and beneficial to
other users)

grid=SQLFORM.smartgrid(db.person,jqueryui=True) ##wrong, do not use###


For example in this demo Jquery UI css is used.

http://labs.blouweb.com/web2pygrid/default/index?jqueryui=true

  wrote:

> JqueryUI Applied! (Any Theme from http://jqueryui.com/themeroller)
>
> Take a look in attached screenshots (a patch is comming to Massimo's mail)
>


Re: [web2py] Re: online book

2011-09-20 Thread Ivica Kralj
Wow, Impressive list... more features to play with... This is going to be
great :)

Thanks all


On 20 September 2011 23:17, Massimo Di Pierro wrote:

> List of new features NOT yet documented in the book. I think:
>
>
> - LICENSE CHANGE FROM GPLv2 to LGPLv3
> - new URL syntax
> - new T behavior
> - new app level logging with logging.conf (thanks Jonathan)
> - Polymmodel support on GAE
> - current
> - added pyfpdf, thank Mariano
> - db(db.table), db(db.table.id) both suported and equivalent to
> db(db.table.id>0)
> - IS_DECIMAL_IN_RANGE and IS_FLOAT_IN_RANGE support dot="," (dot="."
> is default)
> - on_failed_authorization can be a function, thanks Niphold
> - new layout for examples, thanks Bruno and Martin
> - admin allow ``DEMO_MODE=True`` and ``FILTER_APPS=['welcome']``
> - upgraded to anytime
> - new admin wizard
> - better mercual admin allows list of files, versions and retrieve
> - SQLFORM.accepts(detect_record_change).record_changed
> - SQLFORM.process()
> - new admin layout (thanks Branko Vukelic)
> - new Welcome app (thanks Martin Mulone)
> - web2py.py -J for running cron (thanks Jonathan Lundell)
> - web2py.py -K for running backgournd tasks
> - new DAL (complete rewrite of the web2py DAL is more modular)
> - better CAS with v2 support, thanks Olivier ROCH VILATO
> - session.connect(separate=True) to handle many session files, thanks
> huaiyu wang
> - changed bahvior of impersonate (more secure, can generate form or
> used as API)
> - SQLTABLE(...,headers='labels') thanks Bruno
> - optional: digitally signed URLs, thanks Brian Meredyk
> - web2py comet via gluon/contrib/comet_messaging.py (html5 websockets)
> experimental
> - customizable uploadwidget, thanks Fran
> - admin has MULTI_USER_MODE (admin/models/0.py)
> - support for count(distinct=...)
> - IS_MATCH(...,strict=True)
> - URL(...,scheme=,host=,port=), thanks Jonathan
> - auth.signature (experimental)
> - combined expressions print db.data.body.len().sum()
> - wizard can download plugins
> - moderniz 1.17
> - experimental REST API
> - added experimental pip support, thanks Lifeeth
> - added experimental SAP DB support
> - Google MySQL support (experimental)
> - DAL(...,migrate_enabled=True)
> - login_methods/loginza.py, thanks Vladimir
> - bpython shell support, thanks Arun
> - response.toolbar()
> - db._timings contains database query timing info
> - efficient db(...).isempty()
> - setup-web2py-nginx-uwsgi-ubuntu.sh
> - "from gluon import *"
> - conditional models in models//a.py and models/
> //a.py
> - from mymodule import *
> - generic views
> - all applications have cas 2.0 provider at http://.../user/cas/login
> - all applications can delegate to login to external provider
> Auth(...,cas_provider='http://.../other_app/default/user/cas'\
> )
> - A(...,callback=URL(...),larget='id') does Ajax
> - URL(...,user_signature=True), LOAD(...,user_signature=True)
> - DAL(...,migrate_enabled=False) to disable all migrations
> - DAL(...,fake_migrate_all=True) to rebuild all corrupted metadata
> - DAL(...,adapter_arg={}) allows support for alternate drivers
> - DAL now allows circular table defintions
> - DAL(..,auto_import=True) automatically imports tables from metadata
> without need to db.define_table(...)s.
> - new alterante syntax for inner joins: db(...).select(join=...)
> - experimental cubrid database support
> - DAL 'request_tenant' fields are special, the altomatically filer all
> records based on their default value.
> - db._common_fields.append(Field('owner')) allows to add fields to ALL
> tables
> - web2py_ajax.html is more modular, thanks Anthony
> - request.is_local
> - request.is_http
> - new simpler API gluon.contrib.AuthorizeNet.procss(...)
> - messages in validators have default internationalization
> - No more Auth(globals(),db), just Auth(db). Same for Crud and
> Service.
> - scripts/access.wsgi allows apache+mod_wsgi to delegate
> authentication of any URL to any web2py app
> - web2py HTTP responses now set: "X-Powered-By: web2py", thanks Bruno
> - auth.settings.extra_fields['auth_user'].append(Field('country'))
> - validate_and_update, thanks Bruno
> - new cpdb.py, thanks Mart
> - field.represent = lambda value,record:  (record is optional)
> - request.user_agent(), thanks Ross
> - SQLFORM(...,separator=': ') now customizable
> - experimental gluon/scheduler.py
> - scripts/make_min_web2py.py
> - crud.search has more options, thanks Denes
> - gluon/contrib/simplejsonrpc.py
> - gluon/contrib/redis_cache.py
> - support for A(name,callback=url,target='id',delete='tr')
> - support for A(name,component=url,target='id',delete='tr')
> - isapiwsgihandler.py
> - dal expression.coalesce(*options)
> - new pip installer, thanks Chris Steel
> - gluon/contrib/simplejsonrpc.py, thanks Mariano
> - expire_sessions.py respects expiration time, thanks iceberg
> - x509 support (needs rocket upgrade, thanks Michele)
> - new syntax rows[i]('tablename.fieldname')
> - new query syntax field.contains(list,all=True or False)
> - new SQLFORM.

Re: [web2py] I did not know one could do this with css

2011-09-19 Thread Ivica Kralj
Quite interesting, well it still works with all java disabled. CSS10 maybe
:)


ha - I just managed to brake it. Here is some useful info

Traceback (most recent call last):
  File
"/base/python_runtime/python_lib/versions/1/google/appengine/ext/webapp/_webapp25.py",
line 701, in __call__
handler.get(*groups)
  File "/base/data/home/apps/s~weblogofactory/1.353389265750639601/main.py",
line 47, in get
css = url2logo(url)
  File
"/base/data/home/apps/s~weblogofactory/1.353389265750639601/url2logo.py",
line 19, in url2logo
return s.substitute(color=url[0:6], font=fontMap[int(url[6:8],16)],
textshadow=a2ts(r))
  File
"/base/data/home/apps/s~weblogofactory/1.353389265750639601/url2logo.py",
line 12, in a2ts
ts = ts + "%dpx %dpx %dpx #%s," %
(int(s[6:7],36)-15,int(s[7:8],36)-15,int(s[8:],36)-15,s[0:6])
ValueError: invalid literal for int() with base 36: ''



On 20 September 2011 02:13, Massimo Di Pierro wrote:

> http://use.fontorie.com/
>
> How about an app?


Re: [web2py] Do we have a calendar plugin?

2011-09-19 Thread Ivica Kralj
Hi,

Here is the link for web2py app (appointment manager) that is using jquery
plugin fullcalendar mentioned by Bruno.

http://code.google.com/p/web2py-appointment-manager/

It's quite simple, but I'm sure it's good starting point.

Cheers
I

On 20 September 2011 01:31, Noel Villamor  wrote:

>
> It would be handy if I can get hold of a calendar whose individual
> dates/days I can decorate based on an event table.
>
> I won't use it as a pop-up or date selector.  I just need to display it on
> a page and be able to pan the month and year. I see quite a few in .js, do
> we have any in .py or web2py?
>


Re: [web2py] Re: physics examples in web2py + processing.js

2011-09-11 Thread Ivica Kralj
Cool 

The power of web2py and MDP  :)

On 12 September 2011 06:12, Noel Villamor  wrote:

>
> Massimo, I feel like a toddler in a playpen right now. Too many toys I
> can't decide which one to play!
>
> Nice and fun projects you have there.
>
> On Sep 12, 2:56 pm, Massimo Di Pierro 
> wrote:
> > Not really server side intensive, mostly client side but fun project.
> >
> > http://tests.web2py.com/physics2d
>


Re: [web2py] Re: web2py received 2011 BOSSIE Award by InfoWorld.com

2011-09-08 Thread Ivica Kralj
Congratulation!!
This is something members of this group knew already anyway :) Although,
it's great to have recognition on black and white... or in html, for
everybody to see it. ;)


On 8 September 2011 14:37, LightDot  wrote:

> Congratulations!
>
> I'm glad to see CakePHP and web2py receive an award in the same category.
> IMHO, these truly are top frameworks for PHP and python.
>


Re: [web2py] 500 INTERNAL SERVER ERROR

2011-09-06 Thread Ivica Kralj
Yea, Inapplications admin page, on top right you will find error log button
in the menu (or link https://127.0.0.1:8000/admin/default/errors/APPNAME)

Also It might be useful to use Firebug, (i.i network, script)

Cheers
good luck


On 7 September 2011 01:08, patrick moon  wrote:

> I'm able to connect to mssql using python and in test mode.
>
> but I'm getting the 500 internal server errroris there a way to
> figure out what the problem is?
>
> log looks pretty messy.  I'm was trying to get json back from mssql.
> Was successful under mysql.  json format does not seem to be
> anydifferent under either one.
>
>


Re: [web2py] Re: adopt an app!

2011-09-02 Thread Ivica Kralj
Hi Massimo,

Here is the link   - http://code.google.com/p/web2py-appointment-manager/.

As my contribution was so small, 3-4 lines of code , I don't feel
comfortable to list other people work as my own :).

If anybody else is interested to contribute, I'll give you required
permissions on project's page. In the meantime, I'll take care of this baby
:)

Cheers
I

On 2 September 2011 04:36, Massimo Di Pierro wrote:

> can you host it on google code and I will simply link it? Make sure
> you list yourself as author.
>
> On Sep 1, 4:17 pm, Ivica Kralj  wrote:
> > Not sure if somebody already addopted this app, but enclosed you will
> find
> > new version for appointment_manager app (
> http://web2py.com/appliances/default/show/71) which addresses few bugs.
> > Latest available version on website (updated 7 hours ago) still have
> these
> > bugs.
> >
> > Works with latest version Version 1.98.2.
> >
> > web2py.app.appointments_manager.w2p
> > Bug 1# - Menu.py issue with xml()
> > Bug 2# - Multiday events displayed properly (mycal.html)
> >
> > Cheers
> > I
> >
> > On 9 August 2011 14:53, Massimo Di Pierro  >wrote:
> >
> >
> >
> >
> >
> >
> >
> > > There are many old applications inhttp://web2py.com/appliancessome
> > > are current, come are old, some are crap.
> >
> > > I encourage users to adopt an app:
> > > - pick one
> > > - download it and try it
> > > - determine if it is crap and if it is let me know, I will delete it!
> > > (*)
> > > - try improve it (good exercise) (**)
> > > - add your name as author, post it on github or bitbucket or google
> > > code and send me a link.
> > > - I will replace the app with your link
> >
> > > (*) an app is crap if
> > > - does nothing useful
> > > - uses identity.py
> > > - perhaps if it uses t2.py or plugin_t2.py (but not necessarily, kpax
> > > is not too bad)
> >
> > > (**) how to improve it?
> > > cp from welcome layout.html, static/* appadmin.py and appadmin.html
> > > replace whatever auth method with Auth
> >
> > > fix it if does not work.
> >
> > > replace syntax like
> >
> > >  rows = db(...).select()
> > >  if not rows: recirect(...)
> > >  row=rows[0]
> >
> > > with
> >
> > >  row = db(...).select().first() or redirect(...)
> >
> > > replace
> >
> > >  form.accepts(request.vars,session)
> >
> > > with
> >
> > >   form.accept(request,session)
> >
> > > replace
> >
> > >   URL(r=request,c='controller',f='function',...)
> >
> > > with
> >
> > >   URL('controller','function',...)
> >
> > > This is a good exercise.
> >
> > > Massimo
> >
> >
> >
> >  web2py.app.appointments_manager (1).w2p
> > 278KViewDownload


Re: [web2py] Re: Linking directly to an uploaded image

2011-07-11 Thread Ivica Kralj
Hi

Pbreit,

It does, but if you are trying to open an image in browser using download()
function with A tag ( wrote:

> Does the download() function handle the file paths properly?
>
> def download():
> """
> allows downloading of uploaded files
> http:///[app]/default/download/[filename]
> """
> return response.download(request,db)
>
>


Re: [web2py] Re: Linking directly to an uploaded image

2011-07-10 Thread Ivica Kralj
Actually,

I just found solution for my app, again if somebody can provide more
portable solution that would be great?



   


Cheers
Ivica


On 10 July 2011 00:31, IK  wrote:

> Hi Massimo,
>
> When "uploadseparate" is set to True, previously mentioned solution
> will not work, at least not for me.
>
> Although, Bruno gave us one suggestion, I would prefer to use explicit
> image location rather than image ID.
>
> To explain:
>
> ###model:
>
> db.define_table("image",
> ...
>
> Field('file',"upload",uploadseparate=True,required=True,uploadfolder=request.folder
> +'static/' ),
> ...
>
>
> ###view
>
>{{url = URL('static',image.file)}}
> {{=A(IMG(_src=url), _href=url)}}
>
>
> This would give invalid file location:
> "
>
> "
> while correct url is
>127.0.0.1/app/static/image.file/91/image.file.
> 9197cf1918d6a0fa.6b617374656c61352e6a7067.jpg
>
>
> In attempt to find a solution, I was playing with SUBSTR, but I'm not
> getting clean output (I'm not sure if this is good approach, specially
> from portability point of view)
>
>
> ###contr
> ...
> img_folder= dbselect(db.image.file [11:13])
> return dict(img_folder=img_folder)
>
> ###view
> {{=img_folder}}
>
>
>
> and output is
> "
> SUBSTR(image.file,12,(14 - 12))
> 91
> "
>
> If you could give me some pointers, that would be greatly appreciated.
>
> Thanks
> IK
>
> On Jun 17, 3:18 pm, Massimo Di Pierro 
> wrote:
> > This is fine:
> >
> > db.define_table('announce',
> > Field('picture','upload',uploadfolder=request.folder+'static/
> > pictures'),
> > )
> >
> > but why do you need an action to download from the static folder? Why
> > not simply use
> >
> > URL('static',record.picture)
> >
> > On Jun 17, 5:56 am, Bruno Rocha  wrote:
> >
> >
> >
> >
> >
> >
> >
> > > For security reasons, web2py does not expose the 'uploads' folder to
> the
> > > user, this folder can be accessed only by the 'download' function.
> >
> > > The best way is to set the upload path pointing to /static not to
> /upload
> > > and you will have youruploadedfiles to be served as static files,
> > > bypassing download function.
> >
> > > under /static create a folder called 'picture'
> >
> > > *Go to the table definition and do this:*
> >
> > > **
> > > db.define_table('announce',
> >
> > >
> Field('picture','upload',uploadfolder=request.folder+'static/pictures'),
> > > )
> > > **
> >
> > > You are saying DAL to store uploades files in to that folder under
> static
> > > and store the ath in the field.
> >
> > > Now in your controller create a function do handle that (different from
> > > download, it is a kind of viewer)
> >
> > > **
> > > def viewer():
> > > row = db(db.announce.id
> > > ==request.args(0)).select(db.announce.picture).first()
> > > redirect(URL('static','pictures',args=row.picture))
> > > **
> >
> > > *Now you can fo this:*
> >
> > >http://server/app/default/viewer/3#record id
> >
> > > then you got redirected to theimage(no html page)
> >
> > > example:
> http://127.0.0.1:8000/app/static/pictures/announce.picture.aaf5d3f777...
> >
> > > you can always referdirectlyto theimagepath (not using the viewer
> > > function) but you always need to fetch the picture name from db.
> >
> > > Hope it helps.
> >
> > > Should go on the book?
> >
> > > --
> > > Bruno Rocha
> > > [ About me:http://zerp.ly/rochacbruno]
> > > [ Aprenda a programar:http://CursoDePython.com.br]
> >
> > > On Thu, Jun 16, 2011 at 6:09 AM, Vinicius Assef  >wrote:
> >
> > > > Hi guys.
> >
> > > > I have a table (called anuncio) with an upload field (called foto),
> so
> > > > anuncio.foto is my upload field.
> >
> > > > I'm showing andlinkingit with this piece of code in my view :
> > > >{{url = URL(c='anuncios',f='download', args=['uploads',
> anuncio.foto])}}
> > > >{{=A(IMG(_src=url), _href=url)}}
> >
> > > > My 
> > > > /contollers/anuncios.py/download()function
> > > >  is the default, as seen
> > > > below:
> > > > def download():
> > > >return response.download(request,db)
> >
> > > > When user clicks on thisimage, browser shows the download dialog,
> > > > asking him/her where to save theimage.
> > > > But I'd like to simply show theimage, not present the download
> > > > dialog. All these images will be public.
> >
> > > > How I solved it:
> > > > 1) I entered in /myapp/static/images and created a symbolic link
> > > > called 'uploads' pointing to /myapp/uploads.
> > > > 2) In my view, I changed the: {{url = URL(...}} stuff by this: {{url
> =
> > > > URL(c='static', f='images', args=['uploads', anuncio.foto])}}
> >
> > > > I think this isn't the best choice because I'm pointing URL() to a
> > > > fake controller and function, and I'm counting on an external
> > > > resource: a symbolic link in my filesystem.
> >
> > > > How would be the "web2pythonic" way to do this?
> >
> > > > --
> > > > Vinicius Assef.
>