Hello Web2py users :
I had so much trouble with previewing an image before upload or submit, I
have tested so many javascripts out there and various solutions that have
worked mostly with PHP projects,
I have tried so many scripts taken from all over the place, none of
them actually did th
Hello web2py users,
I am in the process of completing the "edit profile" option for the web app
members and I am experiencing a particular problem that is causing me a
headache !
in the profile controller, I am using the following function to update a
user's profile :
def editprofile():
t
Anthony, I want to thank you .. your input was very valuable ... i got it
to work the way i want ! ... nicely so I should add ! ... without any load
calls in the view ! ...
I had to take out the functions inside the Z function, and put them outside
but still within the profile.py controller,
The question in this post may not be very explicit .. but it is the best
way for me to say it !
I have the following problem :
in my controller, I have a function ( Z ) that has its own view ( an html
file - Z.html )
the function Z is for registered members and uses the request arg to
identi
Yeah ! . pbreit ! This does look interesting ! IDEs have their advantages
and disadvantages ! ...for me .. it can be an advantage mainly when it
comes to quickly view or analyse the specific calls of function contents or
codes behind the work being done without having to navigate manually troug
>
> Thank you lyn2py ...
>
Unfortunately, your proposition does not work !
In this situation, I wanted to practice the DRY principal ( DONT REAPEAT
YOURSELF ) ... but it seems ( based on my limited knowledge )
the only way that I succeeded was in duplicating the exact same view page
of ind
when I tested it .. i get an error :
I tried to change the line " if member.id == auth_user[args]" to "if
member.id == auth_user.args " ... I get basically the same kind of error
I am running out of ideas ... please help
File "/home/www-data/web2py/applications/adminsoccer/controllers/pr
In an app where users have their own profile page !
Once a user gets logged in with their credentials .. they get redirected to
their own profile page with all of their edit functions and preferences etc
... ... OK ! all was good so far ... BUT
when the user is browsing through the app, I want
Thank you Massimo ! .. it was a bit tricky ... but I got it ! ..
--
In the cookbook it says that we can have more than one response.menu in the
same view !
How would I go about it ? ...
I created another response.menu by naming it in the menu model file :
response.menubar = [ ]
and then expanded on its own menu items inside the __def( ) function
by
WELL WELL WELL ... it seems that the short answer is :
File uploads cannot be done in a modal window using AJAX ...
it also seems that there is a way around this that involves iframe !!???
... does any one know how to go about this ??? ...
--
Well .. ladies & gents ...
Finally, the scenario above is a no can do ! to use modals with
SQLFORM, I had to go with the bootstrap Modal,
1st -) I had to tweak the bootstrap modal a bit because the bootstrap
modal has a fixed size, so I played in the CSS to change its default
settings
2n
Thank you Bruno .. pretty cool .. I will need some of these !
--
You can modified the look and feel of a form by using a combination of CSS
and by breaking the form into different components as explained here :
http://web2py.com/books/default/chapter/29/07#Custom-forms
On Thursday, November 15, 2012 3:16:01 PM UTC-5, Hector Magnanao wrote:
>
> how do i change
Hello everyone .. it has been a while ! ... I am back .. alive .. and
kicking at it again...
OK ! .. I have a problem with data that does not make it to the table when
the related form is shown to the user through a Modal ( in this case it is
the NyroModal that I chose to use for this exercise
Hello Simon,
where does your localhost point to ?? ... does it point to the web2py
directory ?? .. how did you configure your wsgi ? ..
If you used the script that configures the "www-data user & group" script
under the home folder than you will be able to do the following to have php
running in
Thank you gentlemen for your input !
Niphlod .. i understood the flow logic from the start .. even before I
tried it, that is why I tried it !
... what kept my attention is the response above yours !
The flow logic was easy to comprehend ! ... but :
It seems From Marin's answer, the tables
Let me try to keep it simple .. because I don't want to pollute this thread
with many tables and fields
OK ...
initially everything was working OK !
I had 3 models files like the followings :
0.py, db.py & menu.py
in 0.dy I had :
from gluon.storage import Storage
settings = Storage()
settings.
in 0.db
I have : settings.migrate = True
in db.py I have db.define_table('auth_user', Field (.,Field(), ...
Field...
bla bla bla
.
Richard .. at this stage ! ... the controller file for each sub directory
table files are not the issue ... for now ...
the tables are not getting created at all ! ...
what I did to start fresh
1) i delete the database files in the database directory
2) delete the session files in the session
hello web2py users,
I am looking for specifics when it comes to creating additional tables
within a sub-directory of MODELS !
I am making significant progress on my app ! and I know that I will
certainly have an overhead issue because in my db.py file I have about 20
tables defined and some ta
word warp is exactly what I was hoping to do in the label declaration ! ..
and Yes .. thank you Anthony, I was not sure ! .. you are right ! .. I had
to try before I asked !
thanks weheh .. and thank you Niphlod .. you hit it right on the nail !
thank you every one it is very much apprecia
Good Job Massimo and to the whole crew !
I was wandering ... when do we get to have various types of custom
response flash messages or levels of response flash messages I think
there was a similar suggestion sometime ago ? ...
--
weheh !
Thank you for your response ... but this is not what I am looking for !
I know about what you suggested below .. this is how it is declared ..
indeed !
Now ... Can the label argument take an HTML helper of somekind, so if the
translation of 'mylabel' happens and it is too long of an
Hello web2py users,
This is a basic enquiry :
but not insignificant !
Is it possible to wrap a label name -
one example among many similar situations that I am encountering :
within a table define, a label is set for a field as follows : ..
label =T('Re-enter email') .
when the T fu
yError, AttributeError):
>
>
>
> On Monday, 8 October 2012 12:39:09 UTC-5, Don_X wrote:
>>
>> For a more detailed report .. I have openned up the last line pertaining
>> to the plugin_powertable.py below :
>>
>>
>>
>>-
>>
Bruno .. I am using the app example from your bitbucket
the web2py.app.skrywer_powertable.w2p
On Monday, October 8, 2012 1:33:50 PM UTC-4, rochacbruno wrote:
>
> Hi Don,
>
> I will try to reproduce it here and maybe make some updates to plugin.
>
> Can you give me a full code sample? The bas
For a more detailed report .. I have openned up the last line pertaining to
the plugin_powertable.py below :
-
Function argument list
()
Code listing
20.
21.
22.
23.
24.
25.
Same as above Massimo ... it gives the exact same traceback as above ...
and the lines that I have changed are from line no 177 to 185 as follows :
>
elif headers=='labels':
headers = {}
for c in columns:
(t,f) = c.split('.')
table =
Thank you Massimo .. but the same error persists ... with both suggestions
!
--
it runs by bypassing the admin/default/index page ...
but F.Y.I
the powertable app example still does not run : I get the following error :
'Row' object has no attribute 'product'
Versionweb2py™(2, 1, 0, datetime.datetime(2012, 10, 8, 15, 17, 50), 'dev')
PythonPython 2.7.3: /usr/bin/python
T
Massimo,
the latest trunk or nightly build ... they do not run for now !
--
oupss .. I spoke too fast ...
it opens up .. but cannot get to the admin/default/index page ! .. I get a
error link and when I clicked to see the ticket .. I simply get another
link to click on .. and on .. and on ...
--
fixed it !
took it out of the version file !
--
I just downloaded the nightly build and the trunk version they are not
running ! my apache server error log gives me this :
[Mon Oct 08 10:57:37 2012] [error] [client 127.0.0.1] mod_wsgi (pid=2009):
Target WSGI script '/home/www-data/web2py/wsgihandler.py' cannot be loaded
as Python module.
finally solved ! with a different approach alltogether !
I have a short sign-up form and a long sign-up form for the same auth_user
table !
the short sign-up form deals with the first fields with requires defined in
the model while the additional fields do not have any requires and most
are se
PowerGrid works with the latests web2py 2+ . while Powertable does not
I was wondering what the real differences are between these 2 powerfull
plugins
they both seems to do basically the same things ... but PowerTable looks
much better and seems to have more options ... !
the app examp
Hello Massimo,
I think I am onto something !
I have modified my model as follows :
defaultfoto = [ 'defaultuser.png','defaultplayer.png','defaultcoach.png']
defaultuserpics = { 0:IMG(_src=URL('static','images/'+ defaultfoto[0])),
1:IMG(_src=URL('static','images/'+ default
Hello web2py users,
I was experimenting with something ! and I ended up with a problem that is
difficult for me to solve ! please help.
the situation is as follow :
auth_user table has many fields defined + another set of extra_fields
defined but set purposely as writable=False, readable=False
hello web2py users,
I have been playing with web2py & python for a few months now ... I am
proud of myself with what I have been able to accomplished so far and so
quickly !
but I am still learning !...
There have been several post regarding the following issue !! and I
thought I had figure
Hello web2py users :
Validating if numbers or decimals are entered on a form seem to be very
straight forward and easy enough ! whether it is a phone number or a US
postal code :
Like for example a US postal code would go like this :
requires = IS_MATCH('^\d{5}(-\d{4})?$',error_message='not a z
Hello Alec,
Use the following radio widget :
http://dev.s-cubism.com/plugin_hradio_widget
and I believe your problem will be fixed !
--
Hello Web2py_Superfan, .. i wanted to contact you directly .. but ... I am
just replying to you on here and hopefully ... you will be able to follow
up with any pointers !
I have a similar situation ... pertaining to previewing the image before
committing to the db.table. upload field !! when a
lement a
>> lot of thing by your own, that could leave you with security hole...
>>
>> Richard
>>
>>
>>
>> On Thu, Sep 13, 2012 at 4:23 PM, Don_X wrote:
>>
>>> Hello folks ...
>>>
>>> There is a bit of similarity with a
Hello folks ...
There is a bit of similarity with another thread below regarding 2
auth_user tables ( for 2 different logins or authentification methods in
the same app) !
but before I dive in the question I want to ask, I need to share a bit of
the nature and the genesis of the project that I
Hello web2py users ...
I am going out of my mind with this !
I am trying to cook up a widget ... ( or a plugin ) inspired from the
SELECT_OR_ADD_OPTION widget ! but
it uses radio buttons instead of a dropdown select menu, it is about
selecting a profile picture among a number of pics shown a
erent scenarios in my app ! ... how do I go about getting it
implemented
I will be willing to sponsor that feature if affordable ! ... please advise
Don_X
--
Considering that I have many tables in my model files on the main app I am
building &
Wanting to take the modelless approach ( slice submitted by BrunoRocha )
in order to avoid possible future bottleneck and/or latency
I wanted to advise that the modelless app no longer works under web2py 2.0.
"propulsé par" is definately the proper translation for powered by
it is indeed nice to see french speaking folks here ... the french group on
the other hand has been inactive .. it seems since last year !
There is the french translation for the latest version of the book in the
works ! ... d
Massimo,
Just a suggestion :
In the various scripts included in the packages .. I realized that by
default : the default file rewritten for apache for example, contain "Deny
from all" in various portion of the sh scripts ( for ubuntu, fedora, etc ..
)
I recommend to make them "Allow from a
latest web2py version which is awesome !
happy coding !
Don_X
On Thursday, August 30, 2012 8:29:19 AM UTC-4, Tim Richardson wrote:
>
> I'm a new user so I don't know what should happen when a new stable
> release occurs.
> I have 1.99.7 source running on a Windows 2
For those of you who wish to do the same thing ...and have web2py running
under apache2 with ubuntu ( in my case it is ubuntu 12.04 LTS )
While the upgrade action is not possible or a bit buggy from 1.99.7 to
2.02+,
this thread is about installing the latest web2py in parallel ( or next to
) y
Hello all ...
does anyone have any suggestion on how to proceed with a parallel install
of the latest web2py 2.02 ( stable ) under the home/www-data directory ...
without messing up my previous 1.99.7 ( which has many apps and custom
test apps and exercises that I have made ... ) ...
PS. the
Let it be said & Let it be heard :
Web2py is not only awesome .. It is simply the best python framework out
there ! ...
at least for me, and many others !
Congratulations to the web2py developer team
Move over ! make way ! PHP & Python Frameworks .. here we come !
--
Villas My friend !
this is an eureka moment for me ! what you showed me there helped me a
lot ! it actually solved my problem !
I just had to tweak the user_sex set defined in the model the following
way :
user_sex = {'male':IMG(_src=URL('static','images/male_thumb.png')),
'f
I am guessing that this exercise can only be done the traditional way ( the
HTML way ) by putting in the radio buttons directly below each table
column containing the image so a user can select one of them ! ( with
custom forms )
any cues web2py-users ??? .. there is also the JS way
Hello,
I am trying to cook up something with a list or tuples of images, but it
does not and cannot show up in the view within a form ...
( let me show some codes )
a basic model file
user_sex = [SPAN(IMG(_src=(URL('static','images/male_thumb.png',SPAN(IMG
(_src=(URL('static','images/fema
Finally ... Anthony,
Thank you Bro !
You are a real prince !!! ... I got it to work in a wizard format with 3
steps & 3 tables !! ... My god ! this feels liberating !
My only problem now is with the image upload in the form on the last
step ... but that is a separate issue ! ...
I w
well .. with "session.testpage "
instead of session.wizard in the code pasted above !
--
thank you Anthony for the explanation ..
I tried to do it that way, but it does not work .. what am I doing wrong ???
def testpage():
>STEPS = {0: ('Iagreeto','first_name','last_name','email','password',
> 'sex','birth_date','usertype'), # fields for 1st table and first step
> 1:
How can I re-write the lines of code :
*if isinstance(fields,tuple):
form = SQLFORM.factory(*[f for f in db.mytable if f.name in fields])*
to take into account my 3 tables ??? ... that is my real problem !
--
Hello all !
In order for one to successfully manipulate and/or modify some snippets of
code, one needs to understand fully what these snippets of codes do in the
context they are used and placed ! ( off course !!! )
There is something that escapes me ... or that I do not fully comprehend !
...
Hello,
I am having problems with showing a thumbnail image once it is uploaded by
the user when registering
I have been trying to have an uploaded image showing up dynamically on a
form before submitting the form with no luck !
I have used the following recipe slices found but it is not behavi
Yeap ... does any one know what is going on ? ... will it be back up &
running soon ??? ...
On Tuesday, July 31, 2012 9:31:45 AM UTC-4, Dave wrote:
>
>
> it was down yesterday too
--
I have succeeded in doing this on my home ubuntu server by using the info
on the same link Massimo provided ! ...
& not too long ago ... I have tried to do the same thing on a windows 7 (
with the real apache server installed with openssl ) .. it did not go as
smoothly .. on windows 7 .. it d
Thank you Massimo .. I am trying it ( with the last multiselect plugin
version 1.8 ) .. and will update this post with what I got ! ...
--
Hello web2py users ...
This is a question in 2 folds :
I wish to use the multiselect plugin as a widget on a form ( SQLFORM ) as
opposed to on a crud as demonstrated in the following example :
http://www.web2py.com/plugins/default/multiselect
However there is one additional detail that I wish
Bruno,
I did follow these examples already ... I tried different things ...
different approaches ... but for 3 tables it seems not do-able !
I am still searching for ways for it to be done ! .. so far .. no luck ! ...
I tried using the method with 3 tables like this ( by combining the method
de
Bruno Rocha,
This is a very nice plugin ! ... very useful, thanks for sharing !
I have to create 2 registrations methods ( one short and one long method to
register )
I have one problem, how would you suggest to user the wizard when there are
3 tables involved in the long signup method ??
for
5:44:00 PM UTC-4, Don_X wrote:
>
> thank you Derek
>
> However, If the data ( text, pics, sizes, tags. ... ) is in the xml file (
> within the static folder ), I will not be able to provide translation for
> that information by using the web2py object T( ) for translation
ou would put it in
> your STATIC folder.
>
> On Friday, July 20, 2012 10:58:13 AM UTC-7, Don_X wrote:
>>
>>
>> More information regarding this initiative :
>>
>> the scripts used for the interactive map is the one found at :
>>
>> http://codecany
More information regarding this initiative :
the scripts used for the interactive map is the one found at :
http://codecanyon.net/item/interactive-svg-canada-map/2355460
It is said to be XML driven
and i wish to port it to my web2py app. .
But i am hitting a wall with this ! ... the xml
Sorry .. it is not called a mappicker but an " interactive map "
--
Hello everyone ...
I am trying to intergrate a jquery mappicker within my web2py app !
One of the js file calls upon an xml file containing the text information
related to the location clicked on the map shown on screen !
the js function goes like this :
... ... ...
$.ajax({
type: 'G
Hello,
I went on vacation and now I am back to keep on thriving with my web2py pet
project !
how is everyone doing ?? ...
OK .. It is a small problem .. but a problem anyways ...
the problem I am having is with the dropdown arrows managed by the web2py
JS ..
Let me elaborate a bit : --> in th
hey Rod ...
check out myhosting.com for a good custom VPS deal
As soon as I finished with my app ... this is where I'll be heading to
there VPS packages are cheaper than iweb ...
good luck ...
Don
On Tuesday, 26 June 2012 10:22:55 UTC-4, Rod Watkins wrote:
>
> Hello everyone,
>
> I w
2 08:23:57 UTC-4, Anthony wrote:
>
> db.auth_user.insert(**db.auth_user._filter_fields(form.vars))
>
> That will filter out the fields that don't belong to the table.
>
> Anthony
>
> On Tuesday, June 26, 2012 8:12:39 AM UTC-4, Don_X wrote:
>>
>> Thank you Brun
Thank you Bruno I believe it would of work but ... I get an error ...
Field email_check does not belong to the
table
I think it is because I check the email entered in the SQLFORM.factory form
and the field e-mail_check does not exist in the table
it is just a verification scheme !
Hello web2py users,
I have made a quick sign up form using SQLFORM.factory,
all the data entered on the various fields of the form are validating
correctly, my error msgs are poping up the way I want ( and not into the
form )
My SQLFORM.factory in the controller index file goes like this ( I hav
Finally, .. i got this to work in a semi satisfactory manner .. thank you
Again Anthony !
For the ones who may have had or will have the same issue with the
select_datewidget ! ...
The idea here is
1) put the widget " def select_datewidget(field,value): " at the end
of a model file (
Hello Anthony,
What i can tell you is :
1) Even on a standalone test ... with no previous field define in a table
... the widget as shown in the web2py dev cookbook does not work the way
they have said that it would work ... they might want to update it or to
revise it ... ! .. well .. more p
Thank you Anthony ... I renamed the calendar.js and indeed ... the popup
does not show up anymore ( good ! ) .. however ... the select_datewidget
does not work - what am I doing wrong ??? what am I missing ?? .. Any
suggestions ??? how do I make the select_datewidget be used by default now
A league will most definitely needs its own database instead of a table ...
while a team can have its own table within that league database !!! ... but
can a database be created on the fly within the app upon registration ??
On Wednesday, 20 June 2012 10:02:27 UTC-4, Don_X wrote:
>
>
Hello,
In the model, in the file db.py I used the auth_user table that comes by
default with web2py and I enriched it a bit the following way :
db.define_table('auth_user',
Field('first_name', type='string',
label=T('First Name')),
Field
When I was starting with python & web2py, the video series made by
codeschool.org really jump started it all for me ... beside reading the
book !
I suggest to read the first 5 chapters of the book to get familiar with
the basic concepts before watching the videos .. and after watching the
vid
I am having the same problem ... did you find a way to fix this ...
please advise ...
thank you
Don
On Monday, 28 May 2012 05:56:07 UTC-4, Marian Siwiak wrote:
>
> Hello,
>
> I replaced favicon.ico and favicon.png file in "static" folder of my app,
> but on my webpage I still get an old i
I am new to web2py ! and new to python !
I have been playing around with web2py and reading and practicing with
python for the last month or so ...
I have started my app a few weeks ago ...
I need some help with defining 3 different headers ( depending on the
situation )
1) My main header ( 100
87 matches
Mail list logo