[web2py] Re: DAL and relations

2014-01-31 Thread Dreamer
it there a way to elaborate on this a bit more...
i have a similar structure...and i am able to do a multiupload.. and create 
new albums. however i am looking to allow users to upload images to the 
same album or any pre-existing album


On Friday, 22 October 2010 09:51:00 UTC+5:30, Alex wrote:
>
> It's because since your images have a reference now to your albums - 
> that means an album can have many images.  So for every record in your 
> album table, it gets a new attribute for the image. 
>
> Take a look in the book at section 6.20.  It explains it there. 
>
> On Oct 21, 9:40 pm, iu_long  wrote: 
> > I am a bit puzzled here. 
> > 
> > Lets say I have a table called Album and a table called Images. Images 
> > has a field from_album, which points to Album.id. I have a controller 
> > which returns all the entries in Album. 
> > I return db(db.Album.id>0).select(). When I return it like this, there 
> > is nothing special, but if : 
> > 
> > albums = db(db.Album.id>0).select() 
> > alblist = [] 
> > for row in albums: 
> > alblist.append(row) 
> > 
> > return dict(album=alblist) 
> > 
> > I can reference Images like: 
> > album.Images.id 
> > 
> > How come ?

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[web2py] cannot get a multiselect list

2013-12-07 Thread Dreamer


ngotype = 
['Education','Environment','Food','Health','Makewish','Orphanage','Water','Women']
db.define_table('ngo',
Field 
('ngo_type',requires=IS_IN_LIST([ngotype])),
Field 
('ngo_name', 'text'),
Field 
('contact_person','text'),
Field 
('email', 'reference 
auth_user'),
Field 
('telephone','integer'),
Field 
('eshtablished', 'date'),
Field 
('visiting_time', 'text'),
Field 
('about_ngo','text'),
Field 
('activities', 'text'),
Field 
('impact', 'text'),
Field 
('no_dependents','integer'),
Field 
('goal','text'),
Field 
('images','upload'),
Field 
('votes','integer', 
readable=False, writable=False),
Field 
('funds_usage','text'),
Field 
('event_date','date'),
auth.signature)

I wish to implement a multiselect option for a reqistering ngo through 
IS_IN_LIST, i could include the whole list within the table i.e. 
requires=IS_IN_LIST(['first','second']) however i want to provide an option to 
the registrar to add a to a list thats why i have defined 

ngotype = 
['Education','Environment','Food','Health','Makewish','Orphanage','Water','Women']

please suggest what can i do to enable a multiselect and also allow registrars 
to add the ngo type just in case it dont happen be in the list. or do i use the 
IS_IN_DB()

Thanks in advance.

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[web2py] version 2.7.4 (windows) cannot edit files in the Browser

2013-11-21 Thread Dreamer
Hi all,
I just updated Web2py from 2.4 to 2.7.4 ; However i cannot edit any file 
(web2py file) in the browser...any reason why that might be happening the 
rest all works jus fine...i am using google chrome as my default browser..

Regards
Cshekhar

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [web2py] Re: Help needed

2013-06-30 Thread Dreamer
Hey thanks man..
I just went through Userinferuser.its an open source gamification 
platform for python..
the code is sweet and cleanjust using it to learn more...
also your inputs would also add to my understanding..

Cheers
On Monday, 1 July 2013 01:12:23 UTC+5:30, encompass wrote:
>
> for 2 there are some different ways.  But I would do this.
> When an action is apply... (like they get a point.) You just call a method 
> for it to happen.  Then it adds the event to a history and the points are 
> tracked that way.
> So:
> Action : Time : Amount : Notes
> Registered : 12.12.2013 12:12pm : 2 : None
> Insulted Someone : 12:12 : -5 : George Bush
>
> Then you check that users actions and you can keep track of what they did 
> and how many points total for the action. I am working on a site to do 
> similarly.
> BR,
> Jason Brower
>
>
> On Sun, Jun 30, 2013 at 5:35 PM, Anthony  >wrote:
>
>> Hi Cshekhar,
>>
>> Welcome to web2py. Just a tip regarding norms for asking questions here 
>> -- in general, it will be more productive if you can be much more specific 
>> with your questions, explaining what you have read and tried and showing 
>> actual code whenever possible.
>>
>>
>> 1. I some how cannot get around the templating & Html Views in Web2Py & 
>>> it would be a great help if someone makes a video for the same...
>>>
>>
>> What specifically is causing problems or confusion for you? Have you 
>> checked out http://www.youtube.com/playlist?list=PL5E2E223FE3777851 or 
>> http://killer-web-development.com/? There's also a paid Real Python for 
>> the Web  course that features web2py. Once 
>> you have digested some of the available documentation, come back here with 
>> specific examples of things you don't understand.
>>
>>  
>>
>>> 2. Right now i am trying to create a gamification app using 
>>> web2pyneed someone to help me out with how-to in coding the following
>>> a. awarding points for user activities (most help needed here..)...and 
>>> how to place the click handler in the page view
>>> b. sharing achievements on social media
>>> c. An action to redeem the points earned.
>>>
>>
>> These are fairly high-level descriptions of application functionality -- 
>> more detailed specifications would be needed to start translating that to 
>> code. The expectation is that you would put some time into learning the 
>> framework, make an attempt at implementing these things yourself, and come 
>> here with very specific questions along the way as you run into difficulty.
>>
>> Anthony
>>
>> -- 
>>  
>> --- 
>> 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/groups/opt_out.
>>  
>>  
>>
>
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[web2py] Re: Help needed

2013-06-30 Thread Dreamer
Thanks Anthony..!!
Infact i was just spent the day making note from the same youtube video by 
Brian Will...helped me greatly...
I did take a note on getting started with code...& will get back with some 
 specifics..
Thanks
Cheers.

On Sunday, 30 June 2013 20:05:15 UTC+5:30, Anthony wrote:
>
> Hi Cshekhar,
>
> Welcome to web2py. Just a tip regarding norms for asking questions here -- 
> in general, it will be more productive if you can be much more specific 
> with your questions, explaining what you have read and tried and showing 
> actual code whenever possible.
>
> 1. I some how cannot get around the templating & Html Views in Web2Py & it 
>> would be a great help if someone makes a video for the same...
>>
>
> What specifically is causing problems or confusion for you? Have you 
> checked out http://www.youtube.com/playlist?list=PL5E2E223FE3777851 or 
> http://killer-web-development.com/? There's also a paid Real Python for 
> the Web  course that features web2py. Once 
> you have digested some of the available documentation, come back here with 
> specific examples of things you don't understand.
>
>  
>
>> 2. Right now i am trying to create a gamification app using 
>> web2pyneed someone to help me out with how-to in coding the following
>> a. awarding points for user activities (most help needed here..)...and 
>> how to place the click handler in the page view
>> b. sharing achievements on social media
>> c. An action to redeem the points earned.
>>
>
> These are fairly high-level descriptions of application functionality -- 
> more detailed specifications would be needed to start translating that to 
> code. The expectation is that you would put some time into learning the 
> framework, make an attempt at implementing these things yourself, and come 
> here with very specific questions along the way as you run into difficulty.
>
> Anthony
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[web2py] Help needed

2013-06-30 Thread Dreamer
Hi, Cshekhar Here!!
 
I am a self taught intermediate level python programmer thanks to 
codecademy & learnstreet. Recently i have been tinkering with web2py ..& 
need help with 2 things.

1. I some how cannot get around the templating & Html Views in Web2Py & it 
would be a great help if someone makes a video for the same...

2. Right now i am trying to create a gamification app using web2pyneed 
someone to help me out with how-to in coding the following
a. awarding points for user activities (most help needed here..)...and how 
to place the click handler in the page view
b. sharing achievements on social media
c. An action to redeem the points earned.

i look forward to some help.thanks in advance

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[web2py] Can anyone create anyone create some helpful stuff on Codeacademy..??

2013-01-16 Thread Dreamer
Hi guys,
I am  a noob to programming after a lot of reading and trying my hands at 
my languages i decided python as a language of choice...
similiarly web2py has been my crush for some time nowso i was just 
looking for some python champ to help out people like me with a structure 
that codecademy offers..i know some Django users are getting on with django 
lessonsso if our user base manages to put some tuts out there it would 
be a great help since i love the web2py framework and i know many out there 
would love it too...thank you

--