Re: [web2py] Re: Debian / Ubuntu packager needed!

2010-04-04 Thread Dima Barsky
Hi Mark, I'm on holiday now until the 13th of April. When I get back I'll continue working on the gluon package. There is not much to document there, it's quite straightforward. If you want to help you could start with developing the setup.py file for the gluon module. You can find the

[web2py] Re: Debian / Ubuntu packager needed!

2010-04-03 Thread Mark Breedveld
Hi Dima, I have to plan my work for the coming weeks. Because I was wondering when you could need some help. Because when there is a concrete plan, I could try to start a project at my school. Which could give this project a development boost. We could also start a document on google docs. To

[web2py] Re: Debian / Ubuntu packager needed!

2010-03-23 Thread Dima Barsky
On Mar 23, 1:15 am, mdipierro mdipie...@cs.depaul.edu wrote: The main feature of web2py is that appliances are data and are treated as such. Consider a CMS app that wants to install, for example, a plugin. A plugin contains code and needs to be installable at runtime. The plugin may also

[web2py] Re: Debian / Ubuntu packager needed!

2010-03-23 Thread Mark Breedveld
I'll see both problems and another solution to work around this. We could install web2py into /usr/ directories with apt. Then create a startup script that makes a copy of web2py and the web2py applications that are installed trough apt to the /var folder. A so called runtime version of web2py.

Re: [web2py] Re: Debian / Ubuntu packager needed!

2010-03-23 Thread Dima Barsky
On Tue, 23 Mar 2010 02:06:16 -0700 (PDT), Mark Breedveld m.breedv...@solcon.nl wrote: I'll see both problems and another solution to work around this. We could install web2py into /usr/ directories with apt. Then create a startup script that makes a copy of web2py and the web2py

[web2py] Re: Debian / Ubuntu packager needed!

2010-03-23 Thread Mark Breedveld
@googlegroups.com [mailto:web...@googlegroups.com] Namens Dima Barsky Verzonden: dinsdag 23 maart 2010 11:26 Aan: web2py@googlegroups.com Onderwerp: Re: [web2py] Re: Debian / Ubuntu packager needed! On Tue, 23 Mar 2010 02:06:16 -0700 (PDT), Mark Breedveld m.breedv...@solcon.nl wrote: I'll see both

[web2py] Re: Debian / Ubuntu packager needed!

2010-03-23 Thread Mark Breedveld
Hi Kuba, Your indeed right that web2py is a higher application. So we could also decide not to pack any web2py applications into the apt repository. This is the most easy solution. Single user web2py server. And to make it according the guidelines, we make a startup script that create a runtime

[web2py] Re: Debian / Ubuntu packager needed!

2010-03-23 Thread Dima Barsky
Hi Mark, And I want to make a clear separation in the repo. Web2py applications for production use are put in the usr folder.   And copied and protected by a startup script.   For example you could take the write right from /controllers/models/views   And store static and upload under var

[web2py] Re: Debian / Ubuntu packager needed!

2010-03-23 Thread mdipierro
I am not sure I understand. If I understand you are proposing: 1) installing web2py into /usr/ as it (it will not run there) 2) provide a script to allow users to make a copy of what is needed for runtime (inluding applications/) 3) allow the user to run from the folder where files have been

Re: [web2py] Re: Debian / Ubuntu packager needed!

2010-03-23 Thread Dima Barsky
I am not sure I understand. If I understand you are proposing: 1) installing web2py into /usr/ as it (it will not run there) 2) provide a script to allow users to make a copy of what is needed for runtime (inluding applications/) 3) allow the user to run from the folder where files have

[web2py] Re: Debian / Ubuntu packager needed!

2010-03-23 Thread mdipierro
I do not have any object. I think I need more details to understand it better. I think you should give it a shot and we'll see later if we find any problem. On Mar 23, 12:37 pm, Dima Barsky d...@debian.org wrote: I am not sure I understand. If I understand you are proposing: 1) installing

[web2py] Re: Debian / Ubuntu packager needed!

2010-03-23 Thread Dima Barsky
On Mar 23, 6:00 pm, mdipierro mdipie...@cs.depaul.edu wrote: I do not have any object. I think I need more details to understand it better. I think you should give it a shot and we'll see later if we find any problem. I'm not very happy about this, I would prefer to reach an agreement before I

[web2py] Re: Debian / Ubuntu packager needed!

2010-03-23 Thread mdipierro
I understand. You do not have to develop the all thing. Can you show a pseudcode example of what the script would do? On Mar 23, 1:40 pm, Dima Barsky d...@debian.org wrote: On Mar 23, 6:00 pm, mdipierro mdipie...@cs.depaul.edu wrote: I do not have any object. I think I need more details to

[web2py] Re: Debian / Ubuntu packager needed!

2010-03-23 Thread Mark Breedveld
i'm looking forward to your design plan. It sounds good and i'm confident that it will. regards Mark Breedveld, On Mar 23, 7:47 pm, mdipierro mdipie...@cs.depaul.edu wrote: I understand. You do not have to develop the all thing. Can you show a pseudcode example of what the script would do?

[web2py] Re: Debian / Ubuntu packager needed!

2010-03-22 Thread Dima Barsky
On Mar 22, 12:18 am, Thadeus Burgess thade...@thadeusb.com wrote: How would you propose web2py to write sql.log, or its .table files used in migrations for that matter? The debian packaging rules are quite strict about it, the log files should go to /var/log, transient runtime files go to

[web2py] Re: Debian / Ubuntu packager needed!

2010-03-22 Thread mdipierro
phppgadmin seems to in /users/share/ and it looks to me everything is in there. On Mar 22, 7:45 am, Dima Barsky d...@debian.org wrote: On Mar 22, 12:18 am, Thadeus Burgess thade...@thadeusb.com wrote: How would you propose web2py to write sql.log, or its .table files used in migrations for

[web2py] Re: Debian / Ubuntu packager needed!

2010-03-22 Thread Dima Barsky
On Mar 22, 2:14 pm, mdipierro mdipie...@cs.depaul.edu wrote: phppgadmin seems to in /users/share/ and it looks to me everything is in there. I'm not very familiar with phppgadmin, but from the first look it does not produce any log files, nor does it have any state which has to be preserved

RE: [web2py] Re: Debian / Ubuntu packager needed!

2010-03-22 Thread Mark Breedveld
? -Oorspronkelijk bericht- Van: web2py@googlegroups.com [mailto:web...@googlegroups.com] Namens Dima Barsky Verzonden: zondag 21 maart 2010 17:32 Aan: web2py-users Onderwerp: [web2py] Re: Debian / Ubuntu packager needed! Hi Mark, The idea with symlinks might work, although it's not very elegant. Packaging

[web2py] Re: Debian / Ubuntu packager needed!

2010-03-22 Thread mdipierro
Barsky Verzonden: zondag 21 maart 2010 17:32 Aan: web2py-users Onderwerp: [web2py] Re: Debian / Ubuntu packager needed! Hi Mark, The idea with symlinks might work, although it's not very elegant. Packaging individual applications is not easy either, there is another problem I forgot to mention

[web2py] Re: Debian / Ubuntu packager needed!

2010-03-22 Thread Dima Barsky
Hi Mark, The First one is to create a user web2py and make it a member of www-data. And put the application in the home folder which will work. No, that would not work at all. Applications are not allowed to install anything under /home. In fact, the whole /home directory does not have to

[web2py] Re: Debian / Ubuntu packager needed!

2010-03-22 Thread Dima Barsky
@googlegroups.com [mailto:web...@googlegroups.com] Namens Dima Barsky Verzonden: zondag 21 maart 2010 17:32 Aan: web2py-users Onderwerp: [web2py] Re: Debian / Ubuntu packager needed! Hi Mark, The idea with symlinks might work, although it's not very elegant. Packaging individual

[web2py] Re: Debian / Ubuntu packager needed!

2010-03-22 Thread mdipierro
] Namens Dima Barsky Verzonden: zondag 21 maart 2010 17:32 Aan: web2py-users Onderwerp: [web2py] Re: Debian / Ubuntu packager needed! Hi Mark, The idea with symlinks might work, although it's not very elegant. Packaging individual applications is not easy either, there is another

[web2py] Re: Debian / Ubuntu packager needed!

2010-03-22 Thread Dima Barsky
But the web2py app have to be modified via admin therefore I do not think we can avoid putting them in var. I think we would have to disable this feature for pre-packaged applications. That makes sense to me - only the package manager should be allowed to change the content of a debian package.

Re: [web2py] Re: Debian / Ubuntu packager needed!

2010-03-22 Thread Kuba Kucharski
There are two type of apps: the core, web2py itself applications that runs in the web2py environment. Those have to be editable. This is a hard case, since web2py is kind of an OS itself, this should be solved with /var. -- Kuba -- You received this message because you are subscribed to the

[web2py] Re: Debian / Ubuntu packager needed!

2010-03-22 Thread Dima Barsky
On Mar 22, 5:33 pm, Kuba Kucharski kuba.kuchar...@gmail.com wrote: There are two type of apps: the core, web2py itself applications that runs in the web2py environment. Those have to be editable. This is a hard case, since web2py is kind of an OS itself, this should be solved with /var.

RE: [web2py] Re: Debian / Ubuntu packager needed!

2010-03-22 Thread Mark Breedveld
work arounds. My excuse for putting things in a hurry. Regards, Mark Breedveld, -Oorspronkelijk bericht- Van: web2py@googlegroups.com [mailto:web...@googlegroups.com] Namens Dima Barsky Verzonden: maandag 22 maart 2010 18:55 Aan: web2py-users Onderwerp: [web2py] Re: Debian

[web2py] Re: Debian / Ubuntu packager needed!

2010-03-22 Thread mdipierro
, Mark Breedveld, -Oorspronkelijk bericht- Van: web2py@googlegroups.com [mailto:web...@googlegroups.com] Namens Dima Barsky Verzonden: maandag 22 maart 2010 18:55 Aan: web2py-users Onderwerp: [web2py] Re: Debian / Ubuntu packager needed! On Mar 22, 5:33 pm, Kuba Kucharski

[web2py] Re: Debian / Ubuntu packager needed!

2010-03-22 Thread Dima Barsky
On Mar 22, 6:28 pm, mdipierro mdipie...@cs.depaul.edu wrote: You can bytecode compile hem but you cannot break the deplyment mechanism. Even bytecode compiled apps must be under a writable applications, therefore under /vars/ The *.pyc file are not treated as runtime data in Debian. All python

RE: [web2py] Re: Debian / Ubuntu packager needed!

2010-03-22 Thread Mark Breedveld
(like moovidia in its early day), but this should our last option... -Oorspronkelijk bericht- Van: web2py@googlegroups.com [mailto:web...@googlegroups.com] Namens mdipierro Verzonden: maandag 22 maart 2010 19:29 Aan: web2py-users Onderwerp: [web2py] Re: Debian / Ubuntu packager needed! You

Re: [web2py] Re: Debian / Ubuntu packager needed!

2010-03-22 Thread Kuba Kucharski
web2py application are higher level. Like php scripts in www directory. They are edtable. They are apps within web2py. They are isolated and independent. They sometimes contain sqlite data inside. web2py is about user-developers. So in some way applications are user data. Applying default security

[web2py] Re: Debian / Ubuntu packager needed!

2010-03-22 Thread mdipierro
: Debian / Ubuntu packager needed! You can bytecode compile hem but you cannot break the deplyment mechanism. Even bytecode compiled apps must be under a writable applications, therefore under /vars/ On Mar 22, 1:20 pm, Mark Breedveld m.breedv...@solcon.nl wrote: Hi everyone, Thought

Re: [web2py] Re: Debian / Ubuntu packager needed!

2010-03-22 Thread Kuba Kucharski
yes, there may be no home in Debian, but the proper user always have some directory assigned in /etc/passwd mysql:x:116:122:MySQL Server,,,:/var/lib/mysql:/bin/false -- You received this message because you are subscribed to the Google Groups web2py-users group. To post to this group, send

[web2py] Re: Debian / Ubuntu packager needed!

2010-03-22 Thread mdipierro
web2py should run as www-data it is most likely to be used with apache. On Mar 22, 3:15 pm, Kuba Kucharski kuba.kuchar...@gmail.com wrote: yes, there may be no home in Debian, but the proper user always have some directory assigned in /etc/passwd mysql:x:116:122:MySQL

Re: [web2py] Re: Debian / Ubuntu packager needed!

2010-03-22 Thread Kuba Kucharski
So /var/www.. -- Kuba -- You received this message because you are subscribed to the Google Groups web2py-users group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com. For more options, visit this

[web2py] Re: Debian / Ubuntu packager needed!

2010-03-22 Thread mdipierro
/var/www/web2py/applications/ ? On Mar 22, 3:24 pm, Kuba Kucharski kuba.kuchar...@gmail.com wrote: So /var/www.. -- Kuba -- You received this message because you are subscribed to the Google Groups web2py-users group. To post to this group, send email to web...@googlegroups.com. To

RE: [web2py] Re: Debian / Ubuntu packager needed!

2010-03-22 Thread Mark Breedveld
...@googlegroups.com] Namens Kuba Kucharski Verzonden: maandag 22 maart 2010 21:24 Aan: web2py@googlegroups.com Onderwerp: Re: [web2py] Re: Debian / Ubuntu packager needed! So /var/www.. -- Kuba -- You received this message because you are subscribed to the Google Groups web2py-users group. To post

[web2py] Re: Debian / Ubuntu packager needed!

2010-03-22 Thread mdipierro
...@googlegroups.com] Namens Kuba Kucharski Verzonden: maandag 22 maart 2010 21:24 Aan: web2py@googlegroups.com Onderwerp: Re: [web2py] Re: Debian / Ubuntu packager needed! So /var/www.. -- Kuba -- You received this message because you are subscribed to the Google Groups web2py-users group

RE: [web2py] Re: Debian / Ubuntu packager needed!

2010-03-22 Thread Mark Breedveld
[mailto:web...@googlegroups.com] Namens Kuba Kucharski Verzonden: maandag 22 maart 2010 21:24 Aan: web2py@googlegroups.com Onderwerp: Re: [web2py] Re: Debian / Ubuntu packager needed! So /var/www.. -- Kuba -- You received this message because you are subscribed to the Google Groups

[web2py] Re: Debian / Ubuntu packager needed!

2010-03-22 Thread mdipierro
: web2py@googlegroups.com [mailto:web...@googlegroups.com] Namens mdipierro Verzonden: maandag 22 maart 2010 22:54 Aan: web2py-users Onderwerp: [web2py] Re: Debian / Ubuntu packager needed! - Where to put web2py.py? //Because this aint user data, but the application/webserver Do not know

[web2py] Re: Debian / Ubuntu packager needed!

2010-03-22 Thread Dima Barsky
Where would you put php files? I have seen them in /var/www/ Massimo, I'm sorry to disappoint you, but any script you might've seen in /var/ www was not under Debian package control, it was installed there manually by the administrator. All php files are also installed under / usr. If you try

[web2py] Re: Debian / Ubuntu packager needed!

2010-03-22 Thread Dima Barsky
Hi Mark, Summary - The application under /var/web2py I disagree. Only the runtime data should go to /var, the code should stay under /usr (and it should be immutable). I presume we are still talking about pre-packaged applications, right? Nothing will stop individual users from starting their

[web2py] Re: Debian / Ubuntu packager needed!

2010-03-22 Thread mdipierro
The main feature of web2py is that appliances are data and are treated as such. Consider a CMS app that wants to install, for example, a plugin. A plugin contains code and needs to be installable at runtime. The plugin may also modify other application files (such as replace a layout or a model).

[web2py] Re: Debian / Ubuntu packager needed!

2010-03-21 Thread Dima Barsky
On Sat, Mar 20, 2010 at 10:01:43AM -0700, Mark Breedveld wrote: The web2py community is searching help on debian / ubuntu packaging. Mark, I'll see what I can do, but it's not that straightforward. There is no clear separation in web2py between the user code and the library code. Take, for

[web2py] Re: Debian / Ubuntu packager needed!

2010-03-21 Thread Dima Barsky
On Mar 20, 5:01 pm, Mark Breedveld m.breedv...@solcon.nl wrote: The web2py community is searching help on debian / ubuntu packaging. The are concrete plans to deploy web2py as Turnkey Appliance. Mark, I'll see what I can do, although it might be not straightforward. There is no clear

[web2py] Re: Debian / Ubuntu packager needed!

2010-03-21 Thread Mark Breedveld
Thank you for your reply. Aldo my first reply suggested that I wanted to seperate the admin app. This not my intention. With web2py-appname.deb was for verified user apps from web2py.com. But still your interpretation of it ain't an wrong idee. For securite and vps reasons/situations it's

[web2py] Re: Debian / Ubuntu packager needed!

2010-03-21 Thread Dima Barsky
On Mar 21, 2:46 pm, mdipierro mdipie...@cs.depaul.edu wrote: This would break automatic updates Of course it will. The only way to update a debian package is through the debian packaging mechanism, i.e, apt-get, aptitude, synaptic, etc. -- You received this message because you are

[web2py] Re: Debian / Ubuntu packager needed!

2010-03-21 Thread Dima Barsky
Hi Mark, The idea with symlinks might work, although it's not very elegant. Packaging individual applications is not easy either, there is another problem I forgot to mention. Currently web2py assumes that it has write permissions for the whole web2py directories (including subdirectories). It

Re: [web2py] Re: Debian / Ubuntu packager needed!

2010-03-21 Thread Thadeus Burgess
How would you propose web2py to write sql.log, or its .table files used in migrations for that matter? -Thadeus On Sun, Mar 21, 2010 at 11:32 AM, Dima Barsky d...@debian.org wrote: kaging individual applications is not easy either, there is another problem I forgot to mention. Currently

[web2py] Re: Debian / Ubuntu packager needed!

2010-03-21 Thread mdipierro
Is there anything in the debian packaging mechanism that is inconsistent with the current web2py folder structure? As I see it, this just a matter of choosing where to put the files (I say /home/www-data/web2py). In principle it is possible to separate applications. This cannot cohexist with