Massimo
--
-- mail from:GoogleGroups "web2py-developers" mailing list
make speech: web2py-d...@googlegroups.com
unsubscribe: web2py-develop...@googlegroups.com
details : http://groups.google.com/group/web2py-developers
the project: http://code.google.com/p/web2py/
official : http://www.web2py.com/
---
You received this message because you are subscribed to the Google Groups "web2py-developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to web2py-develop...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi Massimo,
is it submodule now?
Can you try git c ?
Marin
instead ofgit clone —recursive
git clone
For more options, visithttps://groups.google.com/d/optout.
--
-- mail from:GoogleGroups "web2py-developers" mailing list
make speech: web2py-d...@googlegroups.com
unsubscribe: web2py-develop...@googlegroups.com
details : http://groups.google.com/group/web2py-developers
the project: http://code.google.com/p/web2py/
official : http://www.web2py.com/
---
You received this message because you are subscribed to the Google Groups "web2py-developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to web2py-develop...@googlegroups.com.
For more options, visithttps://groups.google.com/d/optout.
git clone https://github.com/web2py/pydal.git gluon/packages/dal
git add gluon/packages/dal/
cd gluon/packages/dal
git checkout v0.12.25
--
--
btw, but don't freak out: github.com doesn't include submodules in their "automatic" archives (i.e. https://github.com/web2py/web2py/archive/master.zip won't include pydal contents). I was always eager to see github.com being our "reference" for source and binaries archives (as opposed to the current http://www.web2py.com/examples/static/web2py_*.* scheme) but EVEN if we shift to github we can post attachment to the releases.
try:
sys.path.append(os.path.join(os.path.dirname(os.path.abspath(__file__)), "packages", "dal"))
import pydal
except:
raise RuntimeError(
"Seems that you haven't pydal inside your web2py's copy.\nIf you cloned" +
"the repository without '--recursive' option, please run 'git submodule" +
" update' inside your web2py copy.\nIf you downloaded the package from" +
" github with the download button, please download a released copy from" +
" http://www.web2py.com or one attached to the releases on github."
)
that being said, if we're still going for submodule, I think that @giovanni (he made all the effort, one step more won't hurt) can explain here what web2py will do to:
- pull in tagged releases of pydal
- update the submodule once the new tagged release has been pulled in
- clone and fork the first time
from pydal import DAL as pyDAL
To unsubscribe from this group and stop receiving emails from it, send an email to web2py-developers+unsub...@googlegroups.com.
Ok
Suggestions?
watch out for checking statically a folder because in binaries I don't think it'll work.
--
-- mail from:GoogleGroups "web2py-developers" mailing list
make speech: web2py-d...@googlegroups.com
unsubscribe: web2py-develop...@googlegroups.com
details : http://groups.google.com/group/web2py-developers
the project: http://code.google.com/p/web2py/
official : http://www.web2py.com/
---
You received this message because you are subscribed to a topic in the Google Groups "web2py-developers" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/web2py-developers/Ado7IS-l1mo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to web2py-develop...@googlegroups.com.
--
-- mail from:GoogleGroups "web2py-developers" mailing list
make speech: web2py-d...@googlegroups.com
unsubscribe: web2py-develop...@googlegroups.com
details : http://groups.google.com/group/web2py-developers
the project: http://code.google.com/p/web2py/
official : http://www.web2py.com/
---
You received this message because you are subscribed to the Google Groups "web2py-developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to web2py-develop...@googlegroups.com.
I will fix this in the next hours..
Since pydal is included into web2py as a package, it's not influenced by web2py's end, so i'm confident when I say "pydal will always work inside web2py where pydal works itself".
About contrib: pydal has its own contrib folder and will never be in conflict with web2py's one as no one of the two project imports stuffs from the other one contrib. So pydal's contrib will be updated when we do it on pydal and vice versa on web2py.
You received this message because you are subscribed to a topic in the Google Groups "web2py-developers" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/web2py-developers/Ado7IS-l1mo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to web2py-develop...@googlegroups.com.
I though the main deal about having pydal as a separate project (docs, tests, separate issues, the whole "new folder structure naming with me being nitpicking") was enough to "enlighten" that the repo structure would change...
By experience accumulated so far, it seems that I'm the only one always rambling about something in web2py that I don't like. I'm kinda scared I'm going to be "that guy" just because I speak about boring things like tests, integrations, rainy days and so on.
Unfortunately my humble opinion, if I'm still allowed to explain my POV, is that every - great - project outside web2py eventually dies (gluino, templating, web2py-celery, whoosh/haystack, mvvm integration, etc) and new ones are REALLY hard to include (or nobody wants it, like the long-standing issue of using python-social-auth).
Web2py is "scared" of depending on external modules, but it's slowly choking because maintainers can't keep up with the pressure of a world of other developers doing wonderful and reusable things.
Plugins are more and more discontinued, recipes on web2pyslices.com are unmaintained and eventually we see people leaving web2py just because you can't really hook up in it unless you know the full picture....
Yes, it's feature-packed with parts that are getting more and more integrated ........ but, tl;dr you basically can't hook your new idea outside webp2y core: it has to stay inside.
The problem we faced so far with lots of wonderful contributions is that we're eager to pull those in, but we're bad at maintaining it, because eventually the original contributor just made it up for himself and never cared to add docs or tests for it, or think to the broader usecase.
Heck, even seeing a bs3 working scaffolding app has been pushed back for months, just because we don't have a clean way (or idea) to hook up in form generation and we're scared of overriding default widgets. bs3 is out for 1,5 years and other frameworks had clean scaffolds one month later (in addition to other css framework but hey, just one would suffice). I had a working POC in cs_monitor_plugin and it took me, that I know web2py inside-out, a couple of weeks to figure it out partially. But again, nobody cared because it's outside core, and things outside core are never considered.
The idea of submodules is (IMHO) a perfect fit (or Yet Another Way) to keep things linked to the main project and attract more devs, hopefully speeding up development and contributions.
I'd like to see DAL as a submodule and thrive with its own pack of devs faster than what it'll take it under web2py. I envision pydal always being rather stable and "tag" monhtly releases, with web2py pulling in every month a new "tagged" release of pydal.
Then I'd like to see web2py structuring its code to accept hooks with "plugins" that are maintained as separate projects, ala wheezy, but still shipped as submodules (that is not a great deal of pain for a developer)
If the whole thing won't work, we would still have to maintain the exact same amount of code, but hopefully it'll be organized better and the clutter among modules would be less, so touching one thing wouldn't disrupt others as frequently as now.
two little notes:1) keep sys.path clean.It's always been [ web2py_root, web2py/gluon, root/site-packages] . I kinda get that web2py/gluon/packages/dal needs to be added (not inserted) because we don't have a packages/__init__.py (should we ?) . Everything else should be reachable without issues and without further altering sys.path...
2) @gi0baro: we settled for testing adapters in pydal and I'm ok with that, but I think there are / there will be things in web2py tied to pyDAL that we need to test in web2py (uhm, like db validators ....). Relying on pydal's developers to "vouch" for web2py compatibility isn't going to cut the deal... I would feel better (I consider myself both a web2py dev and pydal dev) if web2py-intertwined-pydal tests are left on web2py test-suite, even if part of them is on pydal-specific things. we've been bitten in the past already.