Re: [development] custom options passed to url()

2010-10-05 Thread Moshe Weitzman
No problem at all IMO. On Tue, Oct 5, 2010 at 12:11 AM, David Cohen wrote: > I have a module which implements custom_url_rewrite_outbound() (in D7, > will implement hook_url_outbound_alter()). > > A user of my module has requested a change; that I honor a special > option which changes the behavi

Re: [development] Drupal.org on HipHop

2010-09-22 Thread Moshe Weitzman
Folks may not be aware that there is a branch of pressflow that is tuned for hiphop compatibility - https://code.launchpad.net/~pressflow/pressflow/6.x-hiphop On Wed, Sep 22, 2010 at 9:14 AM, Gerhard Killesreiter wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On 22.09.2010 14:50, Pa

Re: [development] PDO question

2010-09-20 Thread Moshe Weitzman
datetime was removed under some dubious circumstances. you can depend on date api module to get it back or probably better is to switch to int if you can. see http://drupal.org/node/866340 On Mon, Sep 20, 2010 at 10:08 AM, Bob Hutchinson wrote: > I'm having problems with a database field which is

Re: [development] Development platform?

2010-09-13 Thread Moshe Weitzman
sounds like the amazing Drubuntu: http://drupal.org/project/drubuntu On Mon, Sep 13, 2010 at 2:27 PM, Randy Fay wrote: > One great resource everybody should know about is the Quickstart Project, > http://drupal.org/project/quickstart, which provides a completely-set-up > Ubuntu instance, with Dru

Re: [development] Fancy Node Access with OG

2010-07-27 Thread Moshe Weitzman
Once you grant 'edit any *** content type' perm, there is nothing OG or any node access module can do to intervene. You have to revoke that perm in order for anyone in those roles to be denied access. On Tue, Jul 27, 2010 at 6:47 PM, Adam B. Ross wrote: > I'm working on a node access module to st

Re: [development] SQL and connection strings

2010-07-16 Thread Moshe Weitzman
> Adding connection strings to globals avoids the question of, "where are they > stored and where do they come from?"   If the user is "configuring a > database connection" for ad hoc queries, do you think the security team > would consider it a vulnerability to be storing these connection strings

Re: [development] Batch API on cron

2010-07-15 Thread Moshe Weitzman
r own. On Thu, Jul 15, 2010 at 9:04 AM, Ken Rickard wrote: > Drush scripts (especially bulk node processing) are subject to hitting > PHP memory limits when processing large amounts of data. > > Anyone have ways around that issue? > > On Thu, Jul 15, 2010 at 8:49 AM, Moshe Weitzman

Re: [development] Batch API on cron

2010-07-15 Thread Moshe Weitzman
I think drush scripts are your best bet. CLI PHP is not not subject to timeout. On Thu, Jul 15, 2010 at 5:01 AM, Sven Decabooter wrote: > Hi, > I'm reading contradicting posts about running Batch API processes on cron. > This is for Drupal 6 BTW. > I have tried implementing a batch functionality

Re: [development] Rewrite rules and file access

2010-07-14 Thread Moshe Weitzman
> The better alternatives are to either watermark all your thumbnails (ie: > ImageCache Actions) and serve them directly, or to use a CDN that offers > token based authentication, like VoxCAST. Or upgrade to D7, as can handle simultaneous private and public files. You have imagecache in core as we

Re: [development] (no subject)

2010-07-12 Thread Moshe Weitzman
my .02 is that such altering is quite reasonable for custom programming but not so kosher for contrib modules On Mon, Jul 12, 2010 at 12:19 PM, nan wich wrote: > Is there an official stance on using hook_schema_alter to add columns to > core tables? For example, we collect additional data on anon

Re: [development] How to control background processes from inside Drupal?

2010-05-10 Thread Moshe Weitzman
I don't have any experience in this realm, but you might look at http://drupal.org/project/daemon or http://drupal.org/project/daemoncli On Mon, May 10, 2010 at 9:02 AM, Leo Burd wrote: > Hello there, > > Is there any way to start/stop background processes from inside Drupal? > > I'm currently wr

Re: [development] Pagers for non-sql data

2010-04-07 Thread Moshe Weitzman
this code is years old, but pager has hardly changed: http://drupalcode.org/viewvc/drupal/contributions/tricks/pager_without_a_query.php?view=markup On Wed, Apr 7, 2010 at 11:42 AM, Randy Fay wrote: > Is there a way to use Drupal's extensive pager support with non-sql data? It > looks to me like

Re: [development] GPL

2010-04-01 Thread Moshe Weitzman
The folks who are enthusiastic on this topic are talking at http://groups.drupal.org/legal. I suggest continuing the conversation there, as this list is focused on development. On Thu, Apr 1, 2010 at 3:29 PM, Cameron Eagans wrote: > Hi Drupalistas! > > This question has come up a couple of times

Re: [development] Drush consulting

2010-01-25 Thread Moshe Weitzman
This question is answered on the drush project page. It points to http://drupal.org/project/terminal which is exactly a web interface for drush. It is still a new project - needs help. 2010/1/25 Gastón Pablo Pérez : > Exists a web interface to drush? or something application that to connect > myse

Re: [development] cURL and drupal_http_request do not properly download certain Google News feeds

2010-01-19 Thread Moshe Weitzman
for HTTP Monitor, I use the Net tab in Firebug or the Tamper Data firebug extension. On Tue, Jan 19, 2010 at 2:15 PM, Alex Barth wrote: > > After getting a report that > > http://news.google.com/news?pz=1&hl=ar&q=سوريا&cf=all&output=rss > > is not properly downloading with Feeds module, I dug dee

Re: [development] cache flexibility improvement

2010-01-12 Thread Moshe Weitzman
Well, most of those variables will never matter to an anon user and those are the only ones eligible for page cache. But still, you have a point. We discuss this at length at http://drupal.org/node/590614. I even argued same as you. Please discuss there. On Tue, Jan 12, 2010 at 10:09 AM, Ivan Serg

Re: [development] CVS Approval Policy: was Re: new features in D6 core?

2009-11-18 Thread Moshe Weitzman
>> Finally, I think we should make it clear to people that if you contribute >> a module, you're expected to maintain it, or at least figure out how to get >> it maintained. I know there are a number of module contributors who have >> just dropped code into CVS and left it there for ever. Perhaps w

Re: [development] Doing hook_update_N() when module is installed

2009-11-12 Thread Moshe Weitzman
We've run in this pattern a lot with economist.com. We avoided code duplication for a while and just ran all our updates in hook_install(). That became awful after a while since were doing and undoing things that had changed over time during hook_install. Now, we set ourselves up to the latest, goo

Re: [development] Developing for Drupal 7

2009-10-11 Thread Moshe Weitzman
FWIW, I learned by stepping through a debugger as well. PHP debuggers are a pain to setup, but the benefits are enormous. Also, Pro Drupal Development book is still the developer bible, IMO. Also worth its weight in gold. On Sun, Oct 11, 2009 at 9:38 PM, Michael Favia wrote: > James Benstead wro

Re: [development] Apollo 11 code for Drupal?

2009-07-21 Thread Moshe Weitzman
well, do you want the chx/dww job_queue.inc or do want apollo's? take 5 mins to read http://history.nasa.gov/alsj/a11/a11.1201-fm.html. nothing like a software engineering drama. the apollo 13 drama is even more compelling - http://www.hq.nasa.gov/alsj/a13/a13.summary.html On Tue, Jul 21, 2009 at

Re: [development] Why is the Drupal File System relative to website root and not relative to admin/settings/file-system path?

2009-07-15 Thread Moshe Weitzman
fixed in d7 with sites/sites.php. you can map one path to another so the that two environments can be made to look the same. see http://api.drupal.org/api/function/conf_path/7. of course d6 still needs some tricks. On Wed, Jul 15, 2009 at 11:09 AM, Clemens Tolboom wrote: > Having a development te

Re: [development] preprocess page doesn't take all variables

2009-05-28 Thread Moshe Weitzman
That sounds like a bug in extract(). Perhaps upgrade to latest release of php? On Thu, May 28, 2009 at 3:30 AM, Ernst Plüss wrote: > Hi > > I'm trying to do a simple thing in D6: Add a variable to the page template. > Unfortunately it seams, that it gets lost in theme_render_template. > > This is

Re: [development] need a standard for contrib node build_mode constants

2009-05-18 Thread Moshe Weitzman
Peter clarified in IRC that his timestamp proposal for for D6 and that we should use strings for D7. And yes, we need a patch at http://drupal.org/node/409750 On Mon, May 18, 2009 at 3:13 PM, la...@garfieldtech.com wrote: > Peter's suggestion may work for D6, but for D7, I refer people to Eaton's

Re: [development] drupal_add_head -> $page[hook_alter_page Re: global object to push stuff into

2009-05-07 Thread Moshe Weitzman
> Having a structured head implies having a renderer/theme function (am > I right?) yes. but core provides some basic ones like #markup so we may not need anything new. a $page['head'] array sounds good to me.