Good morning all.
I came across this post when searching for an answer. I got this error from
my app::
Traceback
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
Traceback (most recent call last):
File "C:\Python27\web2py\gluon\restricted.py", line 227, in restricted
exec ccode in environment
I solved it already using sqlform factory then if form accepted do the
loops...
and thanks for your help
On Tuesday, September 27, 2016 at 5:48:14 AM UTC+3, Jim S wrote:
>
> You don't have to pass it. Just use the DAL to insert the records you
> need.
>
> What fields are you having the user
I meant a repository
On Monday, September 26, 2016 at 10:00:55 PM UTC-5, JorgeH wrote:
>
> It would be a great idea.
>
> To have one with the latest release.
>
> Or what of the current images do you recommend?
>
>
> https://hub.docker.com/search/?isAutomated=0=0=1=0=web2py=0
>
>
>
--
Resources:
It would be a great idea.
To have one with the latest release.
Or what of the current images do you recommend?
https://hub.docker.com/search/?isAutomated=0=0=1=0=web2py=0
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source
You don't have to pass it. Just use the DAL to insert the records you
need.
What fields are you having the user enter data into when the form is
displayed?
You can just use SQLFORM.factory to gather them. Then in the 'if
form.process().accepted:' put the code to insert the records into the
On Monday, September 26, 2016 at 7:38:36 PM UTC-7, Jeff Lipkowitz wrote:
>
> I'm looking for a web2py contractor with SOAP experience.
>
> Please send resumes and work experience examples to
> je...@redbrickanalytics.com
>
I have used Web2py as a Soap service provider (and consumer), so it
I'm looking for a web2py contractor with SOAP experience.
Please send resumes and work experience examples to
j...@redbrickanalytics.com
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
-
Please send a email for more details
On Friday, 23 September 2016 10:49:52 UTC-5, Jeff Lipkowitz wrote:
>
> I'm looking for a web2py contractor with SOAP experience.
>
> Please send resumes and work experience examples to
> j...@redbrickanalytics.com
>
--
Resources:
- http://web2py.com
-
On Monday, September 26, 2016 at 1:34:00 PM UTC-7, Oasis Agano wrote:
>
> Briefly what im trying to do is to create payslips for all contracts in
> the db through a loop,
>
I don't understand. Is what is supposed to be done a response to a user?
Is that user an employee logging the time
Note, you don't have to use SQLFORM.factory -- you can simply use SQLFORM
and either call form.validate() or form.process(dbio=False) -- both of
those options do the form validation but do not do any database insert.
SQLFORM.factory is typically used when you need to create a form that is
not
Well all the answers helped but the sqlform factory solved it
On Monday, September 26, 2016 at 3:29:35 PM UTC+3, Oasis Agano wrote:
>
> Greetings
> im creating a payroll app and i need a to create a batch of payslips
>
> i want to create payslips for all contracts in the database within the
>
Looking forward!
On Friday, 23 September 2016 10:49:52 UTC-5, Jeff Lipkowitz wrote:
>
> I'm looking for a web2py contractor with SOAP experience.
>
> Please send resumes and work experience examples to
> j...@redbrickanalytics.com
>
--
Resources:
- http://web2py.com
- http://web2py.com/book
Briefly what im trying to do is to create payslips for all contracts in the
db through a loop,
i just checked sqlform factory but i have a question where do i pass the
form(payslip table) to insert in into after if form.process().accepts:
On Monday, September 26, 2016 at 11:09:52 PM UTC+3, Jim
I think that is all that it should do.
Your check_batch function is being called at the validation stage of
processing your form. All your check_batch function does is reassign
values to the form variables that you've captured. After it is done, the
web2py form processing will insert the
Well its progressing now, using
form.vars.employee=contraa.employee
form.vars.payslip_name=contraa.employee.fullname
form.vars.contract=contraa.id
Now it is inserting only one payslip(from one contract) but not inserting the
other one
On Monday, September 26, 2016 at 7:54:03 PM UTC+3, Jim S
How do I embed a video file in my webpage?
--
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
maanantai 26. syyskuuta 2016 20.11.06 UTC+3 Anthony kirjoitti:
>
>
> It actually doesn't matter that much for me, I only work with web2py
>> templates. End result just looks little unprofessional since it's not
>> formatted properly and I couldn't figure out any reason why not to do so.
>>
>
> It actually doesn't matter that much for me, I only work with web2py
> templates. End result just looks little unprofessional since it's not
> formatted properly and I couldn't figure out any reason why not to do so.
>
"Unprofessional" to whom? Who's looking at the page source that you're
You're setting form.vars.employee = contraa.employee.fullname
It should be set to the employee id, not the name. Results in the same
problem as with contract name/id.
Should just be contraa.employee I believe...
-Jim
On Monday, September 26, 2016 at 10:23:15 AM UTC-5, Oasis Agano wrote:
>
>
i changed it to form.vars.contract = contraa.id
but still getting the same error
On Monday, September 26, 2016 at 5:39:41 PM UTC+3, Anthony wrote:
>
> In your model, db.payslip.contract is a reference field, but in your code,
> you attempt to assign a string value to it (form.vars.contract =
>
maanantai 26. syyskuuta 2016 16.55.13 UTC+3 Anthony kirjoitti:
>
>
> The {{include}} statement is intended to include exactly what is in the
>>> included file, starting at the point of the {{include}} -- if the text in
>>> the included file is not indented, then neither will it be indented
In your model, db.payslip.contract is a reference field, but in your code,
you attempt to assign a string value to it (form.vars.contract =
contraa.contract_name).
Anthony
On Monday, September 26, 2016 at 10:04:30 AM UTC-4, Oasis Agano wrote:
>
> Models are here, if this way cant work can you
Models are here, if this way cant work can you suggest another way of doing it
MARITAL_SET = [
T('Single'),
T('Married'),
T('Divorced'),
T('Widower')
]
TIME_SET = [
T('Part time'),
T('Full time'),
]
STATE_SET = [
T('Trial'),
T('Employed'),
T('Fired'),
Well, you still haven't shown your models. My guess is one of your fields
is a reference field, which stores long int values representing the record
ID of the referenced record, but you are attempting to insert a string
value.
Anyway, your approach won't work because SQLFORM only does a single
TRACEBACK
Traceback (most recent call last):
File "D:\lab\PycharmProjects\Smartwork\web2py\gluon\restricted.py", line 227,
in restricted
exec ccode in environment
File
"D:/lab/PycharmProjects/Smartwork/web2py/applications/smartwork/controllers/default.py"
> The {{include}} statement is intended to include exactly what is in the
>> included file, starting at the point of the {{include}} -- if the text in
>> the included file is not indented, then neither will it be indented once
>> included. If you want it indented, then you must indent the
I like Riot.js
http://riotjs.com/
Give it a try!
On Saturday, September 24, 2016 at 10:25:51 PM UTC-5, Massimo Di Pierro
wrote:
>
> I am becoming a huge fan of vue.js. Any other user here?
>
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
-
Of course I like vue.js too. I use ractive.js also: they are very similar
in many aspects.
2016-09-26 12:37 GMT+02:00 Marlysson Silva :
> I intend to delve me in the Vuejs , it's an awesome library
>
> Facilitates futher development
>
> Em domingo, 25 de setembro de 2016
Could be an issue with some reference field. Are you using a IS_IN_DB
validator in your model? could be that you are passing a wrong parameter to
the validator. But with so little info it is just a guess.
2016-09-26 15:21 GMT+02:00 Anthony :
> Hard to say what the
Hard to say what the problem is without seeing the full traceback as well
as your models.
Also, what are you trying to do in the check_batch function? You are
looping through some records and making assignments to form.vars, but only
the final run of the loop will end up taking effect -- so
Greetings
im creating a payroll app and i need a to create a batch of payslips
i want to create payslips for all contracts in the database within the
running state
the code
def check_batch(form):
contraaa = db(db.contract.state == 'Running').select(db.contract.ALL)
for contraa in
maanantai 26. syyskuuta 2016 14.17.24 UTC+3 Anthony kirjoitti:
>
> On Sunday, September 25, 2016 at 11:56:33 PM UTC-4, Marko Seppälä wrote:
>>
>> Hi,
>>
>> Not sure if this is expected behavior but I can't figure out any reason
>> why it is done like this.
>>
>> Currently include tag messes up
On Sunday, September 25, 2016 at 11:56:33 PM UTC-4, Marko Seppälä wrote:
>
> Hi,
>
> Not sure if this is expected behavior but I can't figure out any reason
> why it is done like this.
>
> Currently include tag messes up the indentation level. Only first line of
> included file is indented same
On Monday, September 26, 2016 at 1:53:38 AM UTC-4, @brooks wrote:
>
> Thanks Anthony.I corrected the two things you pointed out and then checked
> for the errors in the console.It shows error 304(file not modified) and I
> am not able to rectify that! :(
>
Sounds like you're looking in the
I intend to delve me in the Vuejs , it's an awesome library
Facilitates futher development
Em domingo, 25 de setembro de 2016 00:25:51 UTC-3, Massimo Di Pierro
escreveu:
>
> I am becoming a huge fan of vue.js. Any other user here?
>
--
Resources:
- http://web2py.com
- http://web2py.com/book
35 matches
Mail list logo