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