chat.freenode.net #tryton log beginning Tue Dec 24 00:00:01 CET 2013 | ||
cedk | sharoonthomas: what is the "value" in nereid.permission ? | 11:36 |
---|---|---|
sharoonthomas | cedk: value is like the internal value in [('internal-value', 'Dispalyed Value')] if it was the choices in a selection field | 11:42 |
cedk | sharoonthomas: I have some times to spend on nereid | 11:49 |
cedk | sharoonthomas: and I'm still wondering if it is a good idea to store routes, templates etc in the database | 11:50 |
cedk | I'm wondering if a creating just an ext to Flask will not be more powerful | 11:50 |
cedk | in combination with trytond modules that provides the internal for user management etc. | 11:51 |
cedk | I wrote 1.5 year ago, a simple flask app that use data from our trytond and the only missing part was the user login management | 11:52 |
cedk | and this app is damn simple 186 lines (with custom user management) | 11:53 |
cedk | a little bit like flask_sqlalchemy | 11:58 |
sharoonthomas | cedk: you can make custom application easily the way you are talking | 12:03 |
sharoonthomas | cedk: but not the ones with tryton's modularity | 12:03 |
cedk | sharoonthomas: what will not be modular is the templates but any way this will always be custom | 12:04 |
sharoonthomas | cedk: routes too | 12:04 |
sharoonthomas | cedk: if you use decorators | 12:04 |
cedk | sharoonthomas: routes are teh same as templates | 12:05 |
cedk | sharoonthomas: otherwise I think we will recreate Django | 12:08 |
sharoonthomas | cedk: well, the intention **is** to have a full stack framework with tryton orm | 12:08 |
cedk | sharoonthomas: then I think we have a problem | 12:11 |
sharoonthomas | cedk: what is the problem ? | 12:17 |
sharoonthomas | cedk: if two people decide to build web apps on tryton, what nereid offers you is the common part which otherwise both will have to "reinvent" | 12:18 |
sharoonthomas | cedk: just think if both applications need authentication, what would they do ? two more flask extensions ? should they be tryton modules ? well, nereid just solves that problem | 12:19 |
cedk | sharoonthomas: all that could be separate modules | 12:20 |
sharoonthomas | cedk: yes, nereid-auth could be a separate module - that is something I agree | 12:20 |
sharoonthomas | cedk: but if you don't have any of it why would anyone use tryton to build their web app would be a more important question | 12:21 |
cedk | sharoonthomas: for me, everything should be a small module | 12:21 |
sharoonthomas | cedk: its just like the ir, res module | 12:21 |
cedk | sharoonthomas: in some way, I will not build Tryton with the sam design | 12:21 |
sharoonthomas | cedk: you are not being specific about what you don't like except that you need the auth module to be separate | 12:22 |
cedk | there are some common problem to plug a website to Tryton and each of those problems should be managed by a single module | 12:22 |
cedk | - I want a Flask extension that allow me to use tryton model in it without worry | 12:23 |
cedk | - I want a trytond module to manage website users with login/reset password etc. | 12:23 |
cedk | after that, there could be any modules for specific usage like a webshop or project report or whatever | 12:24 |
cedk | but the first flask extension should be minimal and care of the important stuffs like | 12:25 |
cedk | - setup correct context | 12:25 |
cedk | - connect to right DB | 12:25 |
cedk | - manage transaction | 12:25 |
sharoonthomas | cedk: Nereid is a Flask subclass and implements just that | 12:26 |
cedk | in summary: dispatch.py | 12:26 |
cedk | sharoonthomas: but there are too much stuffs | 12:26 |
sharoonthomas | cedk: it makes a choice of the user authentication which I plan on separating anyway | 12:26 |
sharoonthomas | cedk: a pull request for that would be welcome | 12:26 |
sharoonthomas | cedk: please define too much | 12:26 |
cedk | sharoonthomas: I think I can write such Flask extenstion in 1k lines | 12:27 |
cedk | sharoonthomas: too much lines of code | 12:27 |
sharoonthomas | cedk: nereid application is 530 lines of code https://github.com/openlabs/nereid/blob/develop/nereid/application.py, at least 100 lines should be documentation | 12:29 |
sharoonthomas | cedk: so where is the too much lines of code ? | 12:29 |
cedk | sharoonthomas: I think it should not inherit Flask | 12:30 |
cedk | sharoonthomas: too much lines of code is all the other stuffs | 12:30 |
cedk | sharoonthomas: I will write a small prototype | 12:32 |
sharoonthomas | cedk: have you written a nereid application ? | 12:33 |
sharoonthomas | cedk: why don't you just fork nereid and send a pull request for what you think is not good ? | 12:36 |
-!- vcardon(~vcardon@LNeuilly-152-23-15-185.w193-252.abo.wanadoo.fr) has left #tryton | 12:43 | |
cedk | sharoonthomas: it is too much work and also I dislike pull request | 12:59 |
helpmetryton | hello. can someone help me to have prices with VAT included? | 14:15 |
helpmetryton | VAT = taxes | 14:16 |
corro | helpmetryton: AFAIK Tryton does not support invoices/sales with taxes included. It's an inherently difficult thing to do because there will be rounding errors eventually. | 14:21 |
helpmetryton | Oopsss! | 14:22 |
helpmetryton | Is there a way to work around it? | 14:22 |
helpmetryton | the only way that i can see is to calculate the taxes of everything that i buy manually | 14:23 |
corro | helpmetryton: Just hackish ways. We've done something like that for a customer and the implemenation tries to fix the rounding issues automatically in the best possible way. It remains a hack though. | 14:26 |
helpmetryton | UFCK! | 14:27 |
helpmetryton | i wanted to learn how to use tryton doing my personal finances | 14:29 |
helpmetryton | all the tickets come with included tax | 14:29 |
helpmetryton | no way of working with it, i guess | 14:30 |
helpmetryton | where is the information that describes the problem? | 14:31 |
corro | helpmetryton: You could try the (unofficial) module mentioned. It's not released yet, but I could do that today if it helps you. | 14:31 |
helpmetryton | gain/gain → me = guinea pig / you = feedback? (sounds good) | 14:32 |
helpmetryton | but i'm not a company, so may feedback may not be good | 14:32 |
helpmetryton | my | 14:32 |
corro | helpmetryton: No guarantee it works in every case though. Not even a guarantee it works at all ;) | 14:32 |
helpmetryton | do you think i can help to make it work also? i know one or two things about python | 14:33 |
helpmetryton | (not much time, though) | 14:33 |
corro | helpmetryton: the problem is not really python specific, but comments are always welcome | 14:34 |
helpmetryton | ok. just let me know the kind of info that you need. | 14:34 |
helpmetryton | do you have gpg? | 14:34 |
corro | ACTION is releasing module | 14:34 |
corro | helpmetryton: I do have gpg, yes. why? | 14:35 |
helpmetryton | if we are going to be in communication, it would be better | 14:35 |
corro | helpmetryton: I'll release the code on bitbucket.org, you may post your comments there | 14:36 |
helpmetryton | ok... may i have more specific instructions? :D | 14:37 |
corro | helpmetryton: not familiar with bitbucket? It's quite a simple interface to use, I guess you'll find your way. | 14:40 |
helpmetryton | ok | 14:40 |
helpmetryton | let's see... | 14:40 |
corro | helpmetryton: I'll send you the links to the two modules as soon as I uploaded them. | 14:40 |
helpmetryton | ok | 14:42 |
corro | helpmetryton: https://bitbucket.org/loss/trytond_sale_tax_included and https://bitbucket.org/loss/trytond_account_invoice_tax_included | 14:48 |
helpmetryton | downloading and installing | 14:50 |
helpmetryton | how do you send me those messages only to me? | 14:52 |
helpmetryton | how can i send you something similar? | 14:52 |
corro | helpmetryton: I'm not. This is a public channel. | 14:52 |
helpmetryton | yes, but my name always comes before the message | 14:53 |
helpmetryton | download finished | 14:57 |
helpmetryton | installing | 14:57 |
helpmetryton | error: Could not find suitable distribution for Requirement.parse('trytond-account-invoice-discount>=2.8,<2.9') | 15:03 |
corro | helpmetryton: ah crap. It also depends on another unofficial module. Looks like an error to me, though. I'll quickly remove the dependency. | 15:06 |
helpmetryton | by the way... | 15:07 |
helpmetryton | i'm using V.3 | 15:08 |
corro | helpmetryton: the module is for 2.8 only | 15:08 |
helpmetryton | would i need to uninstall everything? | 15:09 |
corro | helpmetryton: yes. Downgrade is not supported. But you could try to make it work with 3.0 if you're a programmer yourself. The API changes shouldn't be as big as they used to be. | 15:12 |
helpmetryton | ok... conceptually what does it do? does it take the original price, deducts the amount of tax, and then re-adds it? | 15:12 |
corro | helpmetryton: I just had a look in the Tryton wiki, sadly there are no migration steps for 2.8 -> 3.0 yet | 15:12 |
helpmetryton | it's even better. we could make it work for 3 and the upgrade is ready... | 15:12 |
helpmetryton | i'll be in touch. your e-mail is in the package... | 15:13 |
cedk | sharoonthomas: here is what I think should be the minimal flask integration: https://codereview.appspot.com/45370043 | 16:36 |
-!- sharoonthomas(~sharoonth@122.177.46.160) has left #tryton | 16:48 |
Generated by irclog2html.py 2.11.0 by Marius Gedminas - find it at mg.pov.lt!