thank you for the response Massimo,
I do agree with your thoughts regarding the vulnerability exposed upon a
new registration ! that can easily be arranged by adding an additional
table to manage all users profile pics ! ... that way, a user can only
upload his avatar ( or picture ) only when the
Definitely clearer ! ... Thanks a bunch guys ! ...
in conclusion :
whenever one decides to do the conditional model approach for performance
concerns or else ...
database tables better be defined first ! even more so if there are
reference fields in the tables involved! in which case a table cr
After a night sleep ...
I woke up ... read the code again .. and bingo .. no errors .. it is
almost fixed
with this :
> ...
> if isinstance(fields,tuple):
> mytables = ['auth_user','user_info']
> form_fields = []
> [form_fields.extend([db[t][f] for f in db[t].f
Here is another controller I tried, and I still get the same results ( no
data is recorder in the tables, no errors or ticket given ) and on the last
submit button .. nothing happens :
def register():
>import os
>STEPS = {0:
> ('Iagreeto','first_name','last_name','email','email_ch
Actually, when the tables are used by themselves ! with a simple controller
The first one ( auth_user ) works perfectly ... datas are recorded
but the second one ( user_info ) gives me a clear error on 2.0.9 stable
version
Unable to handle upload
but with the codes of the controller shown abov
ble = True
> form = SQLFORM(db.auth_user)
> ...
>
>
>
--
William James nous dit : '' La plus grande découverte de ma génération est
que l'être humain peut transformer sa vie simplement en modifiant sa
maniére de penser.''
--
Le Don X
--
--
William James nous dit : '' La plus grande découverte de ma génération est
que l'être humain peut transformer sa vie simplement en modifiant sa
maniére de penser.''
--
Le Don X
--
don't be sorry for jumping in it is appreciated ! .. and refreshing to
noticed that there are canadian folks like me on here !
to resume ... from all the responses received - the best canadian postal
code validation is actually the one submitted by Adnan :
this one : ^[ABCEGHJKLMNPRSTVXY]{1
thank you guys ... so the set of characters only ( exclusively ) need to
be referred to as : [A-Za-z]
perfect ... thank you again.
--
Richard ... Villas ...
thank you both for your insights ... for now .. I will go on ... and will
try to figure it out as I go along ...
I will probably end up trying both approach and see / compare etc ..
I foresee issues of various bottlenecks in an app like this .. so .. ...
lately ..
thank you Bruno for the update ! .. I will look it up shortly.
--
Indeed ! ... Bruno is tha Man !
--
Well .. so far all the mini apps I have done on web2py 1.99.7 are
working fine with 2.02+ ... I have not found any issues yet ! ... except
for that upgrade button on 1.99.7 that is not working on any platform or
browser !! ( well .. maybe with a mac platform ! - I did not test it on a
mac )
So, if you pass form.vars to
> it, it will remove any items that don't belong to the db.auth_user table
> (in this case, the email_check variable).
>
> Anthony
>
>
> --
>
>
>
>
--
William James nous dit : '' La plus grande découverte de ma génération est
que l'être humain peut transformer sa vie simplement en modifiant sa
maniére de penser.''
--
Le Don X
--
>> the next steps ( and certain fields ) to be shown will not be the same
>>> ... so .. I definitely need to create separate table for each user type
>>> ... what if a specific user type ( such as a club and a league)
>>> actually needs its own database instead of a table in my main database !
>>> ??? how do I approach this in the model and consequently in the controller
>>> to the view ???
>>> To put it in context : a player or ref or coach is a user, ( simple )
>>> ... and most club owners and persons will be the same basic auth_user ! but
>>> on the other hand ...
>>> a team is a list of registered users
>>> a club is a list of teams and users ( that
>>> are not teams )
>>> a league is a list of clubs and users (
>>> that are not clubs, like volunteers, workers, etc.. )
>>>
>>> Am i approaching this the right way ??? ...
>>>
>>> please advise
>>>
>>> thank you
>>
>>
--
William James nous dit : '' La plus grande découverte de ma génération est
que l'être humain peut transformer sa vie simplement en modifiant sa
maniére de penser.''
--
Le Don X
--
15 matches
Mail list logo