I want to use the pop up on certain conditions through controller
=jQuery(maker_name).remove(); ...
Does the maker_name js variable exist? if maker_name is an element's name
I'd use this instead:
jQuery('[name=maker_name]').remove();
On Friday, March 30, 2012 1:54:48 AM UTC-3, Sanjeet Kumar wrote:
Yes my code is from web2py slices
I have the following view
I am using the three cascading drop-down menu with the help of slices i am
able to show the value in the second drop-down filtered on the first one
but i am not be able to shown the value in the third
drop-down filtration on the second via ajax so please help me.
Yes my code is from web2py slices
I have the following view :-
{{left_sidebar_enabled,right_sidebar_enabled=True,False}}
{{extend 'adminlayout.html'}}
div id=contdoc
h4Themis Project Console/h4
/div
div id=contdoc
form name=assign
action={{=URL('default','admin_submit_assign_project')}}
Can you post your code for three cascading select via ajax i need this code
thanks in advance
On Thursday, April 21, 2011 10:19:46 AM UTC+5:30, ニコノコ wrote:
I have a form with three cascading selects. A change in the selection,
causes it to change the contents of the other selects. They work
first write the following code and than use the SQLFORM it will hide
your name field
db.to_be_lawyer.name.readable = False
On Mar 26, 3:31 pm, web2py_lover lia...@gmail.com wrote:
How to hide all fields of SQLFORM with submit button only?
all fields of db.to_be_lawyer are 'name' and 'age'.
can use the following :-
form=SQLFORM.grid(db.auth_user, create=False, selectable = lambda ids:
del_emp(ids))
def del_emp(ids):
if not ids:
response.flash='Please Select the Check-box to Delete'
else:
for row in ids:
I have the upload field in table i want to check the file extension from
the controller during the upload i am using :-
SQLFORM.factory(db.emp_detail)
if form.accepts(request.vars, session):
img = form.vars.image
if file.extension == 'something':
update query
How can i render the html file in to the doc file
ok thanks Allan
On Thu, Mar 15, 2012 at 5:13 PM, Alan Etkin spame...@gmail.com wrote:
If you want to render html output as .rtf (a similar type of document
that will work in old ms-word versions) check the book at 10.3.2
(PyRTF)
On Mar 15, 8:15 am, Sanjeet Kumar sanjeet@gmail.com wrote
:
request.vars.image.filename.split('.')[-1]
or
import os
os.path.splitext(request.vars.image.filename)[1][1:]
Anthony
On Thursday, March 15, 2012 6:18:10 AM UTC-4, Sanjeet Kumar wrote:
I have the upload field in table i want to check the file extension
from
the controller during
Hi Hassan please refer this link i think it will be useful for you :-
http://www.web2py.com/books/default/chapter/29/9#Integration-with-OpenID,-Facebook,-etc.
On Monday, March 12, 2012 8:30:36 PM UTC+5:30, Hassan Alnatour wrote:
Dear ALL,
I want to use Facebook and linked in and open iD and
I am using the following model for test the cron :
db.define_table(('emp'),
Field('name'))
and in crontab file inside the welcome app i am using the :
*/1 * * * * root *applications/welcome/modules/background_updater.py
and makes the file inside the modules folder
How can i add the drop-down in the grid for the better searching and when i
select the multiple check box at a time should be able to delete it by
using the one button
response.download(request, db)
Anthony
On Wednesday, March 7, 2012 3:20:39 AM UTC-5, Sanjeet Kumar wrote:
I have the following table :-
db.define_table(('employee',
Field('email_id', requires = IS_EMAIL()),
Field('image', 'upload'))
i want to show the image
should store email sent info between actions/task instances
to be able to query the sent list before sending. You can use a
special table or an extra field.
On 6 mar, 09:29, Sanjeet Kumar sanjeet@gmail.com wrote:
i am able to send the mail through the cron job but when i am going to
send
)
for co_email in co_emails:
# you could just do to=co_emails if you don't need to send
individual emails
mail.send(to=[co_email],
subject='Sending the mail by using Cron job'
message=msg)
On Mar 6, 11:17 pm, Sanjeet Kumar sanjeet@gmail.com wrote
.
On Fri, Mar 9, 2012 at 9:11 AM, Sanjeet Kumar sanjeet@gmail.com wrote:
Thanks Anthony
On Wed, Mar 7, 2012 at 8:40 PM, Anthony abasta...@gmail.com wrote:
URL('default', 'download', args=db(db.employee.email_id ==
some_id).select().first().image)
This assumes you have the standard
ok Antony
On Fri, Mar 9, 2012 at 9:50 AM, Anthony abasta...@gmail.com wrote:
Anthony i have one more question regarding this when the employee will
update his image than the updated images are shown but i guess the one more
problem here is the previous images are not deleted from our database
Ok Anthony how can we automate that
Ok Anthony Thanks
I have the following table :-
d.define_table(('employee',
)
I have the following table :-
db.define_table(('employee',
Field('email_id', requires = IS_EMAIL()),
Field('image', 'upload'))
i want to show the image according to the filtration of email id. how it
will be possible in web2py
i am able to send the mail through the cron job but when i am going to send
the mail by fetching the email id from the database i got confused in the
logic :-
i have the followng code :
list = []
import datetime
currentdate = datetime.datetime.now()
for row in db(db.employee.time ==
Actually i have the one company table :-
db.define_table(('comany'),
Field('cowner_id'),
Field('details'),
Field('due_date','date'))
here i want to send the mail with the details by using the cron when the
date will match to the due
]
field.readable = field.writable = False*
return dict(form=auth())
On Fri, Feb 24, 2012 at 3:21 AM, Sanjeet Kumar sanjeet@gmail.comwrote:
I am added the some extra fields in the auth_user table and i want to
hide those fields when the user will go
will be automatically updated but you can create
your own links using URL(controller, function, args=login)
http://zerp.ly/rochacbruno
Em 05/03/2012 04:13, Sanjeet Kumar sanjeet@gmail.com escreveu:
I am using the index as my home page and i want to call the another
controller for login when
My problem is solved through capturing the login event
On Mon, Mar 5, 2012 at 1:48 PM, Sanjeet Kumar sanjeet@gmail.com wrote:
Actually i want to go to the another function in the default controller
when i click on the login it should be call the function such as emp()
istead of index
Can anyone explain me how i set up the background task in web2py
Thanks Bruno
On Mon, Mar 5, 2012 at 10:16 AM, Bruno Rocha rochacbr...@gmail.com wrote:
On Mon, Mar 5, 2012 at 1:39 AM, Sanjeet Kumar sanjeet@gmail.comwrote:
Can anyone explain me how i set up the background task in web2py
http://movu.ca/demo/article/show/31/web2py-cron-task
Also
I am using the following model for test the cron :
db.define_table(('emp'),
Field('name'))
and in crontab file inside the welcome app i am using the :
*/1 * * * * root *applications/welcome/modules/background_updater.py
and makes the file inside the modules folder
I am using the index as my home page and i want to call the another
controller for login when the user click on the login link
breaks?
On Friday, 2 March 2012 00:46:28 UTC-6, Sanjeet Kumar wrote:
i am very excited to use the new version of web2py 1.99.5 . when i
downloaded it and use than i face the to many problems i am not be able to
go the database administration when i click on the database administration
is
not working.
On Fri, Mar 2, 2012 at 9:35 PM, Massimo Di Pierro
massimo.dipie...@gmail.com wrote:
what specifically breaks?
On Friday, 2 March 2012 00:46:28 UTC-6, Sanjeet Kumar wrote:
i am very excited to use the new version of web2py 1.99.5 . when i
downloaded it and use than i face
Thanks pbreit
In the new version 1.99.6 database administration problem are fixed but it
is also breaking the plugin_instant_admin backward compatibility actually i
am using the plugin_instant_admin in my application and when i copied the
application in new version and run it than
OK thanks Anthony
On Sat, Mar 3, 2012 at 9:25 AM, Anthony abasta...@gmail.com wrote:
In the new version 1.99.6 database administration problem are fixed but it
is also breaking the plugin_instant_admin backward compatibility actually i
am using the plugin_instant_admin in my application and
Sorry Massimo its my mistake it was the layout problem
On Sat, Mar 3, 2012 at 11:19 AM, Massimo Di Pierro
massimo.dipie...@gmail.com wrote:
How does it break it? Can you post a traceback?
On Friday, 2 March 2012 21:28:38 UTC-6, Sanjeet Kumar wrote:
In the new version 1.99.6 database
i am very excited to use the new version of web2py 1.99.5 . when i
downloaded it and use than i face the to many problems i am not be able to
go the database administration when i click on the database administration
it is redirecting to the site view and i also copied the my application
which
i am very excited to use the new version of web2py 1.99.5 . when i
downloaded it and use than i face the to many problems i am not be able to
go the database administration when i click on the database administration
it is redirecting to the site view and i also copied the my application
which
i am very excited to use the new version of web2py 1.99.5 . when i
downloaded it and use than i face the to many problems i am not be able to
go the database administration when i click on the database administration
it is redirecting to the site view and i also copied the my application
which
,
request.env.http_x_forwarded_for, and request.env.remote_addr, in that
order (remote_addr should always be there, but you want one of the other
two if available because the client may be behind a proxy).
Anthony
On Tuesday, February 28, 2012 10:33:32 PM UTC-5, Sanjeet Kumar wrote:
I want to insert
are defined in the
model db.py :-
db.define_table('person', Field('name'))
so please help me through this example how automatically insert/update the
data in database by using cron job.
On Tue, Feb 28, 2012 at 5:10 PM, Sanjeet Kumar sanjeet@gmail.comwrote:
Thanks Luciano i will try.
On Tue
file
On Wednesday, February 29, 2012 6:39:22 PM UTC+5:30, lucmult wrote:
On Wed, Feb 29, 2012 at 11:10 PM, Sanjeet Kumar sanjeet@gmail.comwrote:
I have the following code in my crontab :-
0-59/1****root **applications/welcome/cron/test.py
put just 1 * before
How can i implement the drop-down in plugin_instant_admin for best searching
/31/web2py-cron-task
My first try in movu.ca :-)
On Mon, Feb 27, 2012 at 2:32 PM, Sanjeet Kumar sanjeet@gmail.comwrote:
Exactly I need the examples
On Mon, Feb 27, 2012 at 4:56 AM, Luciano Pacheco lucm...@gmail.comwrote:
I think Sanjeet means, I example of the task.
What is a good
How we can get the IP address of the system
I am going to develop the time sheet app so for that i captured the login
and logout event through this :-
auth.settings.login_onaccept = lambda form: lgin(form)
auth.settings.logout_onlogout = lambda usr: lgout(usr)
and one more question in my mind when the browser will be closed by some
in controller.One exception is when you want to force a task to run.
Regards,
On Tue, Feb 28, 2012 at 9:11 PM, Sanjeet Kumar sanjeet@gmail.comwrote:
i tried this but i am not be able to run my controller Can you give me
the simple example through which i can run the function written under
.
Regards,
On Tue, Feb 28, 2012 at 10:00 PM, Sanjeet Kumar sanjeet@gmail.comwrote:
I am not be able to get you properly can you give me the better
clarification i have the default controller and the index function can you
tell me how can i run the index function by using crontab which
applications.instore.controllers.default import index
# instead of time.sleep(5), inside the function main()
index()
On Tue, Feb 28, 2012 at 10:33 PM, Sanjeet Kumar sanjeet@gmail.comwrote:
Yes I want to run the index function of my default controller in a cron
is this possible or not ?
On Tue, Feb 28
i want to insert the system ip address in the database so how i get the ip
of the system through web2py controller
On Tue, Feb 28, 2012 at 7:29 PM, Phyo Arkar phyo.arkarl...@gmail.comwrote:
Which system?
On 2/28/12, Sanjeet Kumar sanjeet@gmail.com wrote:
How we can get the IP address
I want to insert the client system IP address in my database through the
controller can you explain how i get the client IP address of the system
when they login.
On Tue, Feb 28, 2012 at 7:29 PM, Phyo Arkar phyo.arkarl...@gmail.comwrote:
Which system?
On 2/28/12, Sanjeet Kumar sanjeet
to perform the required actions before
system shut down.
On Feb 28, 7:55 am, Sanjeet Kumar sanjeet@gmail.com wrote:
I am going to develop the time sheet app so for that i captured the login
and logout event through this :-
auth.settings.login_onaccept = lambda form: lgin(form
Massimo how can i use this
On Tue, Feb 28, 2012 at 7:41 PM, Massimo Di Pierro
massimo.dipie...@gmail.com wrote:
you need do use websockets (gluon/contrib/comet_messaging.py)
On Feb 28, 4:55 am, Sanjeet Kumar sanjeet@gmail.com wrote:
I am going to develop the time sheet app so
I am going to develop the time management sheet for that i have the one
table name employee table and i am allready taken the login and logout time
and i want to substract the time when i substract the time it show me in
nanoseconds when i convert this nanosecond to the minute it totally
easy to do
something like this:
delta = row.employee_logout_date - row.employee_login_date
minutes = delta.minutes + (delta.hours * 60)
On Monday, February 27, 2012 11:54:56 AM UTC-5, Sanjeet Kumar wrote:
I am going to develop the time management sheet for that i have the one
table name
Thanks Massimo
On Tue, Feb 28, 2012 at 10:33 AM, Massimo Di Pierro
massimo.dipie...@gmail.com wrote:
Delta has only days and seconds.
On Feb 27, 9:55 pm, Sanjeet Kumar sanjeet@gmail.com wrote:
showing AttributeError: 'datetime.timedelta' object has no attribute
'minutes
Can anyone give me the brief description to how I set the cron to run the
task in background with example.
/books/default/chapter/29/4#Cron
By the way, The link in web2py to cron (http://web2py.com/books/
default/reference/29/cronhttp://web2py.com/books/default/reference/29/cron)
is broken (returns an invalid function
message)
On 26 feb, 13:09, Sanjeet Kumar sanjeet@gmail.com wrote:
Can anyone
Thanks Massimo
On Fri, Feb 24, 2012 at 9:23 PM, Massimo Di Pierro
massimo.dipie...@gmail.com wrote:
How about adding this at the bottom of your model:
def do_something(form):
auth.settings.login_onaccept = do_something
On Feb 24, 3:47 am, Sanjeet Kumar sanjeet@gmail.com wrote
I want to insert the data in database when the user will log-in first time
. if the user refresh the index page after login it will again insert the
date and time I have the following sample code i know this code is wrong
but i want to insert the data only first time when the user will
I am added the some extra fields in the auth_user table and i want to hide
those fields when the user will go for the registration user can only see
the following fields during the registration:
- First name
- Last name
- email-id
- Password
- verify password
Thanks Annet
On Wed, Feb 22, 2012 at 2:51 PM, Annet anneve...@googlemail.com wrote:
Hi Sanjeet,
If Admin and Client are groups you could also do:
{{if auth.has_membership('Admin'):}}
Admin links
{{elif auth.has_membership('Client'}}
Client links
{{pass}}
Regards,
Annet
):
return dict(form=form)
On Feb 21, 11:09 am, Sanjeet Kumar sanjeet@gmail.com wrote:
TR(Type:,(TD(INPUT(_type=checkbox,_name=a,_value=a,_size=0),A))),
(TD(INPUT(_type=checkbox,_name=b,_value=b,_size=0),B)),
(TD(INPUT(_type=checkbox,_name=c,_value=c,_size=0),C))),
TR
I am using the same layout for the Admin and Client but i want to hide some
links for the clients in my page based on the permissions
Thanks My problems are solved
Can I add the dropdown for searching in Plugin_instant_admin
I have the multiple check-box in one row in Controller I want to validate
it form controller when the user submit his request without selecting any
of the check-box than it should be shown the error message Please select
at least one check-box
:
please could post your controller code..
On Feb 21, 10:32 am, Sanjeet Kumar sanjeet@gmail.com wrote:
I have the multiple check-box in one row in Controller I want to validate
it form controller when the user submit his request without selecting any
of the check-box than it should be shown
Thanks Ross
On Fri, Feb 17, 2012 at 6:23 PM, Ross Peoples ross.peop...@gmail.comwrote:
Sanjeet.
I sent some code to Mariano last night. So we will have to wait and see if
it works for him.
Ross Can you send me the CODE for that thanks in advance because i want to
generate the report properly through FPDF.
On Thu, Feb 16, 2012 at 6:31 PM, Ross Peoples ross.peop...@gmail.comwrote:
I had to write a lot of code to get FPDF to do proper headers, footers,
and page numbers. Then about
Ross i am new in web2py and python so please what are you planning put in
the repository because i want to generate the report by using FPDF and i
also generated the report but now in the rows i have the large text so
Problems are arising on the view
On Fri, Feb 17, 2012 at 12:02 AM, Mariano
Following is my code but i don't get the report in proper format and
when we got the pdf than the column is collapse with each other so
please kindly help me :-
def listing():
response.title = abc
# define header and footers:
head = THEAD(TR(TH(Activity,_width=20%),
no Actually we have problem in the fields if we take the lage data from
database than it is creating the problem
Thanks
Thanks
Hi to all,
I want to change the date format during the insertion in database
default is YYY-MM-DD but i want to insert in database by using the DD-
MM- and Month should be in the 'jan' format .
Please help me
def create():
import os
filepath = os.path.join(request.folder,'uploads')
form = FORM(TABLE(TR(Compliance
Activity:,INPUT(_type=text,_name=activity,requires=IS_NOT_EMPTY(error_message='Please
Enter the Activity'))),
How to call the Controller function from javascript
79 matches
Mail list logo