You can subscribe to this list here.
| 2001 |
Jan
|
Feb
|
Mar
|
Apr
(57) |
May
(287) |
Jun
(166) |
Jul
(286) |
Aug
(273) |
Sep
(254) |
Oct
(144) |
Nov
|
Dec
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2002 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|
From: John D. <jo...@we...> - 2001-08-18 05:37:36
|
On Fri, 17 Aug 2001, Alex Black wrote: > > > > I have to do minor changes to metabase drivers (GetColumnNames(), oci > > already supports this). QM:_ProccessResult does need this. The alternative > > is to implement the database specific functions that are required directly > > into QM, but I don't like this. > > > > Alex, anything specific I have to take care of when r2ifying the code? > > ------- > > Re changes to the metabase drivers: > > -John D, JPC? Did you have to do this? > Yes, we did have to hack metabase a bit. If you need the hacked versions, you know where you can get them (they also have LOB support which wasn't implemented quite nicely enough to be contributed back to Manuel; cleaning up this would also be a nice 2-3 hour project if someone is interested :)), but it'd be much preferable if we could run off the distributed metabase. -- John Donagher Application Engineer, Intacct Corp. Public key available off http://www.keyserver.net Key fingerprint = 4024 DF50 56EE 19A3 258A D628 22DE AD56 EEBE 8DDD |
|
From: Charlie K. <Ch...@Al...> - 2001-08-18 05:34:51
|
Roni, it looks like no command line variables are being passed to processprepend.php. argv[] is empty so the script doesn't know which file to open. register_argc_argv is turned on. Any other ideas? Charlie |
|
From: Ronald T. <ron...@ho...> - 2001-08-18 05:24:52
|
>Roni, after the 'make' which files should be in: >$BCHOME/build/en/binarycloud/int/ not there, but here $BCHOME/build/en/htdocs/ > >When I make only Init.php is in the directory. Should prepend.php be there? > >Charlie > roni _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp |
|
From: Charlie K. <Ch...@Al...> - 2001-08-18 04:45:30
|
Roni, after the 'make' which files should be in: $BCHOME/build/en/binarycloud/int/ When I make only Init.php is in the directory. Should prepend.php be there? Charlie |
|
From: Ronald T. <ron...@ho...> - 2001-08-18 04:13:37
|
>Could it be that odysseas made a modification to >$BCHOME/base/init/prepend.php and checked it into CVS propagating his >$BCHOME path in prepend.php? > >Charlie > actually changing is made by the make system, no need to handle manually... so there is nothing wrong in CVS... roni _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp |
|
From: Charlie K. <Ch...@Al...> - 2001-08-18 03:57:18
|
Could it be that odysseas made a modification to $BCHOME/base/init/prepend.php and checked it into CVS propagating his $BCHOME path in prepend.php? Charlie -----Original Message----- Subject: RE: [binarycloud-dev] entity definition format >It's correct. The whole package installs correct except >binarycloud/base/init. That directory is the only one with an error. > >Charlie > > > >Roni, turning register_argc_argv on doesn't do the trick. Here's the >error > >I'm getting during make: > > > >FIFI:/c/adg/binarycloud/r2/binarycloud/base/init$make > >X-Powered-By: PHP/4.0.6 > >Content-type: text/html > > > > > >Could not open file for writing : > >FIFI:/c/adg/binarycloud/r2/binarycloud/base/init$ > > > >Take a look at the files in binarycloud/base/init, specifically > >prepend.php. actually this is the first time this problem apper in the list.... but what my concern is, the processprepend.php will make some read/write process in $BCHOM/build/en/htdocs/prepend.php but not $BCHOME/base/init/prepend.php this is quite strange.............. could you plz leave your platform details for me, see if I can fix it or not... or you can fix it by your own plz tell me the tricks......... :) roni > >Are they correct? > > > >Charlie > > >Charlie, > >how about if you use windows style path in $BCHOME?? >like c:/path/to/binarycloud >see what is happen... > >roni > _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp _______________________________________________ binarycloud-dev mailing list bin...@li... http://lists.sourceforge.net/lists/listinfo/binarycloud-dev |
|
From: Ronald T. <ron...@ho...> - 2001-08-18 03:14:03
|
>It's correct. The whole package installs correct except >binarycloud/base/init. That directory is the only one with an error. > >Charlie > > > >Roni, turning register_argc_argv on doesn't do the trick. Here's the >error > >I'm getting during make: > > > >FIFI:/c/adg/binarycloud/r2/binarycloud/base/init$make > >X-Powered-By: PHP/4.0.6 > >Content-type: text/html > > > > > >Could not open file for writing : > >FIFI:/c/adg/binarycloud/r2/binarycloud/base/init$ > > > >Take a look at the files in binarycloud/base/init, specifically > >prepend.php. actually this is the first time this problem apper in the list.... but what my concern is, the processprepend.php will make some read/write process in $BCHOM/build/en/htdocs/prepend.php but not $BCHOME/base/init/prepend.php this is quite strange.............. could you plz leave your platform details for me, see if I can fix it or not... or you can fix it by your own plz tell me the tricks......... :) roni > >Are they correct? > > > >Charlie > > >Charlie, > >how about if you use windows style path in $BCHOME?? >like c:/path/to/binarycloud >see what is happen... > >roni > _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp |
|
From: Charlie K. <Ch...@Al...> - 2001-08-18 02:55:07
|
It's correct. The whole package installs correct except binarycloud/base/init. That directory is the only one with an error. Charlie -----Original Message----- From: bin...@li... [mailto:bin...@li...]On Behalf Of Ronald TAO Sent: Friday, August 17, 2001 7:48 PM To: bin...@li... Subject: RE: [binarycloud-dev] entity definition format >Roni, turning register_argc_argv on doesn't do the trick. Here's the error >I'm getting during make: > >FIFI:/c/adg/binarycloud/r2/binarycloud/base/init$make >X-Powered-By: PHP/4.0.6 >Content-type: text/html > > >Could not open file for writing : >FIFI:/c/adg/binarycloud/r2/binarycloud/base/init$ > >Take a look at the files in binarycloud/base/init, specifically >prepend.php. >Are they correct? > >Charlie > Charlie, how about if you use windows style path in $BCHOME?? like c:/path/to/binarycloud see what is happen... roni _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp _______________________________________________ binarycloud-dev mailing list bin...@li... http://lists.sourceforge.net/lists/listinfo/binarycloud-dev |
|
From: Ronald T. <ron...@ho...> - 2001-08-18 02:48:21
|
>Roni, turning register_argc_argv on doesn't do the trick. Here's the error >I'm getting during make: > >FIFI:/c/adg/binarycloud/r2/binarycloud/base/init$make >X-Powered-By: PHP/4.0.6 >Content-type: text/html > > >Could not open file for writing : >FIFI:/c/adg/binarycloud/r2/binarycloud/base/init$ > >Take a look at the files in binarycloud/base/init, specifically >prepend.php. >Are they correct? > >Charlie > Charlie, how about if you use windows style path in $BCHOME?? like c:/path/to/binarycloud see what is happen... roni _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp |
|
From: Charlie K. <Ch...@Al...> - 2001-08-18 02:40:51
|
Roni, turning register_argc_argv on doesn't do the trick. Here's the error I'm getting during make: FIFI:/c/adg/binarycloud/r2/binarycloud/base/init$make X-Powered-By: PHP/4.0.6 Content-type: text/html Could not open file for writing : FIFI:/c/adg/binarycloud/r2/binarycloud/base/init$ Take a look at the files in binarycloud/base/init, specifically prepend.php. Are they correct? Charlie -----Original Message----- From: bin...@li... [mailto:bin...@li...]On Behalf Of Ronald TAO Sent: Friday, August 17, 2001 7:31 PM To: bin...@li... Subject: RE: [binarycloud-dev] entity definition format > >Alex, I ran make and everything went ok but I get these errors: > > > 2. should r2 install correctly? I'm getting a couple of errors, while it >is > > installing and then these on the index page: > > Warning: Failed opening > > '/u02/home/odysseas/r2/binarycloud/binarycloud/init/Init.php' for >inclusion > > (include_path='') in this problem apper either you didn't you windows style path in $BCHOME or you have turned off "register_argc_argv" in php.ini...... see which one goes wrong, change it back and make again roni > > C:\ADG\binarycloud\r2\binarycloud\build\en\htdocs\prepend.php on line 31 > > > > Fatal error: Cannot instantiate non-existent class: init in > > C:/ADG/binarycloud/r2/binarycloud/build/en/htdocs/index.php on line 101 > > > > What's odysseas doing in my computer? :) > >I suppose I will track down the bug. > >ck > _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp _______________________________________________ binarycloud-dev mailing list bin...@li... http://lists.sourceforge.net/lists/listinfo/binarycloud-dev |
|
From: Ronald T. <ron...@ho...> - 2001-08-18 02:37:09
|
> >let me know if that works, because it would probably work on linux, as >well. >it seems like maintaining windows compatibility is a real possibility, so >I'd like to try and 'make the make process' as "cross platform" as >possible. > >:) > >_a > alex, it is possible to put #!/bin/sh at the header of installcode.sh.... I think it is not a problem of linux, and makes life easier in Win32.... roni _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp |
|
From: Ronald T. <ron...@ho...> - 2001-08-18 02:30:46
|
> >Alex, I ran make and everything went ok but I get these errors: > > > 2. should r2 install correctly? I'm getting a couple of errors, while it >is > > installing and then these on the index page: > > Warning: Failed opening > > '/u02/home/odysseas/r2/binarycloud/binarycloud/init/Init.php' for >inclusion > > (include_path='') in this problem apper either you didn't you windows style path in $BCHOME or you have turned off "register_argc_argv" in php.ini...... see which one goes wrong, change it back and make again roni > > C:\ADG\binarycloud\r2\binarycloud\build\en\htdocs\prepend.php on line 31 > > > > Fatal error: Cannot instantiate non-existent class: init in > > C:/ADG/binarycloud/r2/binarycloud/build/en/htdocs/index.php on line 101 > > > > What's odysseas doing in my computer? :) > >I suppose I will track down the bug. > >ck > _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp |
|
From: Alex B. <en...@tu...> - 2001-08-17 23:00:55
|
>> I can say that I would prefer that datasources not be a global variable -
>> because they will contain passwords, sids, etc.
> Agreed. We dont have to mess up global namespace with this sensitive stuff.
>
> Does Init have to be extended? I thought of anohter setting
> <database>datasources_hook</database>
> to switch on/off database support. Excatly: to import the metabase stuff and
> set up querymanager with the database config stored in datasources.
oh, yes, you're right.
I'll add a 'database' flag to the init array, and a method to init to import
QueryManager.
>> If you look at user/conf/langs.php - you'll see that it sets a cariable in
>> the lang class: I'd like to have it happen the same way with QueryManager.
> No problem. Ok I'll have to change that. So QueryManager will become a
> global like $Lang and not a aggregated-as-needed class.
Yes... though I am not married to that at the moment, I think it's probably
best.
>> Andreas: we might be using a slightly old version of metabase... let me
>> check phpclasses and get back to you :)
>
> Hmm, I checked the current version at phpclasses.
> We need this method in the drivers (e.g. for mysql):
>
> Function GetColumnNames($result)
> {
> $result_value=intval($result);
> if(!IsSet($this->columns[$result_value]))
> {
> $this->columns[$result_value]=array();
> $columns=mysql_num_fields($result);
> for($column=0;$column<$columns;$column++)
>
> $this->columns[$result_value][mysql_field_name($result,$column)]=$column;
> }
> }
>
> But It's missing in mSql and MySql drivers.
>
> Andi
I've cc'd manuel on this, see what he says :)
-alex
|
|
From: Andreas A. <a.a...@th...> - 2001-08-17 22:41:34
|
Hi,
> I can say that I would prefer that datasources not be a global variable -
> because they will contain passwords, sids, etc.
Agreed. We dont have to mess up global namespace with this sensitive stuff.
Does Init have to be extended? I thought of anohter setting
<database>datasources_hook</database>
to switch on/off database support. Excatly: to import the metabase stuff and
set up querymanager with the database config stored in datasources.
> If you look at user/conf/langs.php - you'll see that it sets a cariable in
> the lang class: I'd like to have it happen the same way with QueryManager.
No problem. Ok I'll have to change that. So QueryManager will become a
global like $Lang and not a aggregated-as-needed class.
> Andreas: we might be using a slightly old version of metabase... let me
> check phpclasses and get back to you :)
Hmm, I checked the current version at phpclasses.
We need this method in the drivers (e.g. for mysql):
Function GetColumnNames($result)
{
$result_value=intval($result);
if(!IsSet($this->columns[$result_value]))
{
$this->columns[$result_value]=array();
$columns=mysql_num_fields($result);
for($column=0;$column<$columns;$column++)
$this->columns[$result_value][mysql_field_name($result,$column)]=$column;
}
}
But It's missing in mSql and MySql drivers.
Andi
|
|
From: Charlie K. <Ch...@Al...> - 2001-08-17 19:06:55
|
Alex, I ran make and everything went ok but I get these errors: > 2. should r2 install correctly? I'm getting a couple of errors, while it is > installing and then these on the index page: > Warning: Failed opening > '/u02/home/odysseas/r2/binarycloud/binarycloud/init/Init.php' for inclusion > (include_path='') in > C:\ADG\binarycloud\r2\binarycloud\build\en\htdocs\prepend.php on line 31 > > Fatal error: Cannot instantiate non-existent class: init in > C:/ADG/binarycloud/r2/binarycloud/build/en/htdocs/index.php on line 101 > > What's odysseas doing in my computer? :) I suppose I will track down the bug. ck |
|
From: Alex B. <en...@tu...> - 2001-08-17 19:06:53
|
Fantastic!!!!!! :) > Hello Alex, > I didn't send this message to the dev list because it includes files. _If > you want, u can later forward it to the list._ > > I have managed make xml2php a bit functional. In fact, I had to add a > function which converts XML array to PHP array definition string, I mean, > the library was (and is) far from being complete. Got it. > I have included some > auto-generated example files. Please note that datasources.xml didn't work > until I removed that strange mcrypt key from it. I'm actually comfortable changing that to an import path, so we can store keys in files. That would probably be better anyway. I'd still like to store them in some kind of php structure, so we can run them through zend encoder as part of make. > Also, since the xml2php > needs to use import stuff & friends, I modified makefiles to compile user > directory after all other dircetories. Furthermore, I modified makefile to > pass SITEBUILD_DIR variable to xml2php so it knows where to find > prepend.php. Got it. > _problem #1_ > As it currently seems, I'll have to make a seperate function for each type > of XML file, for example, makefile should run > xml2php c:\bc\ c:\bc\some_where\page_def.xml.php > c:\bc\some_other_where\page_def.xml.php PAGE_DEF or > xml2php c:\bc\ c:\bc\some_where\conf_def.xml.php > c:\bc\some_other_where\conf_def.xml.php CONF_DEF > because of the very different structures of generated page_def.php (aka bcp) > and conf.php files. I was afraid of this, but to be honest I don't see a way around it. We _can_ have a 'normal' style of declaring arrays that will work for many .php.xml files, but there are some (like conf.xml) that I can't see working without a special function. maybe we should store those functions as classes in binarycloud/base/utils/doctypes/. I'll look up at the code and come up with a proposal. > _problem #2_ > Right now I don't know how to use makefile variables quite well. The idea is > that it should find xml2.php files, rename them to .php files and pass to > xml2php.php one at a time. I have tried (but not succeeded) to have makefile > to rename the files. I'm currently using something like the following (its a > piece of code from $BCHOME/user/makefile) and renaming the files with the > use of PHP which is not quite what I want. > > XMLDIRS= \ > something \ > $(EMPTY) > > XMLFILES=`find $(XMLDIRS) -name '*.php.xml' | grep '[.]'` > > all: xml > > xml: > @for xmlfile in $(XMLFILES); do \ > $(XML2PHP) $(SITEBUILD_DIR) $(USER_DIR)/$$xmlfile > $(USERBUILD_DIR)/$$xmlfile; \ > done You can run mv on the files after you write them into the build directory... I'll play around with something to get it working. great work! _alex |
|
From: Alex B. <en...@tu...> - 2001-08-17 18:55:55
|
great... a bit later I'm going (or someone is going) to write a process that makes those tags into php function calls :) _a > Hi Alex, > >> here's the syntax I'm going to use to be processed by the make system for >> static module embeds: >> >> <!-- xml module definition --> >> <bc:module id="moo" name="HelloWorld" package="hello_world"> >> <cache expires="30" use_uri="true" var="$moo"/> >> <params> >> <param_name>value</param_name> >> <another_param_name>another_value</another_param_name> >> </params> >> </bc:module> > > Looks fine to me. > > Andi > > _______________________________________________ > binarycloud-dev mailing list > bin...@li... > http://lists.sourceforge.net/lists/listinfo/binarycloud-dev > |
|
From: Alex B. <en...@tu...> - 2001-08-17 18:54:24
|
> I just startet to optimize the code to fit with r2. Mostly convention
> changes and connectivity with $gDatasources.
>
> I guess on monday its cleaned up and usable like this:
>
> import('binarycloud.mgr.QueryManager');
> $qm = new QueryManager('my_datasrc_hook');
>
> $query = array('QUERY' => 'SELECT foo, bar FROM table....balh');
> $values = $qm->DoCustomQuery($query, "", true);
>
> I have to do minor changes to metabase drivers (GetColumnNames(), oci
> already supports this). QM:_ProccessResult does need this. The alternative
> is to implement the database specific functions that are required directly
> into QM, but I don't like this.
>
> Alex, anything specific I have to take care of when r2ifying the code?
hi Andreas,
to be honest I have only "cleaned" it - I have not studied the code enough
to give you a real opinion.
I can say that I would prefer that datasources not be a global variable -
because they will contain passwords, sids, etc.
If you look at user/conf/langs.php - you'll see that it sets a cariable in
the lang class: I'd like to have it happen the same way with QueryManager.
-------
Re changes to the metabase drivers:
-John D, JPC? Did you have to do this?
Andreas: we might be using a slightly old version of metabase... let me
check phpclasses and get back to you :)
-a
|
|
From: Alex B. <en...@tu...> - 2001-08-17 18:51:44
|
>> I can see use in having separate "settings" for the database and the app.
> Jepp. I think this is neccessary.
>
> Another question. Can a entity span say parts of one or more tables?
> Something similar like a view in SQL?
"Sort of"
you can embed entity references (called pointers) in entity definitions.
so you can say:
user_id
user_name
user_password
address_id -> address
i.e. "get the address entity with this id"
> In the example the complete db entitys are mapped in the definition. And so
> querys are genearated for all fields. But that might me overhead. So I would
> like to define a entity that spans parts of tables.
>
> E.g. If I have a enty defined called "Subscriptions" that span the
> tables.fields:
>
> user.userId
> user.login
> smssubscriptions.userId
> smssubscritpions.serviceId
> emailsubscriptions.userId
> emailsubscriptions.serviceId
>
> but the tbl user has more fields I do not need to query for this entity. But
> for this one it's just fine.
I don't see why not. I don't _think_ entityManager supprts that currently
but I have no problem with the idea as long as its implemented properly :)
------------
Actually, along these lines: does anyone have any qualms about making this
assumption?:
-Entity Field names must correspond exactly to table field names (we
could get rid of the schema map if we did this)
It would simplify a lot of the code, I think.
_a
|
|
From: Andreas A. <a.a...@th...> - 2001-08-17 15:17:27
|
Hi Alex, > here's the syntax I'm going to use to be processed by the make system for > static module embeds: > > <!-- xml module definition --> > <bc:module id="moo" name="HelloWorld" package="hello_world"> > <cache expires="30" use_uri="true" var="$moo"/> > <params> > <param_name>value</param_name> > <another_param_name>another_value</another_param_name> > </params> > </bc:module> Looks fine to me. Andi |
|
From: Andreas A. <a.a...@th...> - 2001-08-17 11:20:19
|
I just startet to optimize the code to fit with r2. Mostly convention
changes and connectivity with $gDatasources.
I guess on monday its cleaned up and usable like this:
import('binarycloud.mgr.QueryManager');
$qm = new QueryManager('my_datasrc_hook');
$query = array('QUERY' => 'SELECT foo, bar FROM table....balh');
$values = $qm->DoCustomQuery($query, "", true);
I have to do minor changes to metabase drivers (GetColumnNames(), oci
already supports this). QM:_ProccessResult does need this. The alternative
is to implement the database specific functions that are required directly
into QM, but I don't like this.
Alex, anything specific I have to take care of when r2ifying the code?
Andi
|
|
From: Andreas A. <a.a...@th...> - 2001-08-17 09:01:11
|
Hi, > If the entity carried what UI components it should use, there would be no > "extra" information needed. I see your point. > You can make some basic assertations about a field, i.e. "this is usually > going to be a textbox that's 20 chars long." if you don't > explicitly define that 'format' then the default is assumed and you can continue > about your business. Ok, that's nice. > I can see use in having separate "settings" for the database and the app. Jepp. I think this is neccessary. Another question. Can a entity span say parts of one or more tables? Something similar like a view in SQL? In the example the complete db entitys are mapped in the definition. And so querys are genearated for all fields. But that might me overhead. So I would like to define a entity that spans parts of tables. E.g. If I have a enty defined called "Subscriptions" that span the tables.fields: user.userId user.login smssubscriptions.userId smssubscritpions.serviceId emailsubscriptions.userId emailsubscriptions.serviceId but the tbl user has more fields I do not need to query for this entity. But for this one it's just fine. Andi |
|
From: Alex B. <en...@tu...> - 2001-08-16 23:59:39
|
hi all,
here's the syntax I'm going to use to be processed by the make system for
static module embeds:
<!-- xml module definition -->
<bc:module id="moo" name="HelloWorld" package="hello_world">
<cache expires="30" use_uri="true" var="$moo"/>
<params>
<param_name>value</param_name>
<another_param_name>another_value</another_param_name>
</params>
</bc:module>
<!-- after a make: -->
<? $Page->BuildStaticModule(array('name' => 'HelloWorld','package' =>
'hello_world','id' => 'moo','cache' =>
array('expires'=>'30','use_uri'=>true,'var'=>'$moo'),'params' =>
array('param_name' => 'value','another_param_name' => 'another_value'))); ?>
the php is all one line.
as you can see, this will make embedding modules in markup a _snap_. if you
use xhtml in your documents you can validate module definitions within an
xml tree without a problem.
best,
_alex
|
|
From: Alex B. <en...@tu...> - 2001-08-16 22:43:11
|
> hi all, > > QueryManager is in CVS :) hi all, if you're running a checkout of binarycloud r2 from sourceforge, please do: cvs update -P on your repository... I've removed _lots_ of old trash files, etc. The Sync between sourceforge and my core repository is now exact. I will try and add EntityManager today, though I need to dig through the code before I release it. thanks, -alex |
|
From: Alex B. <en...@tu...> - 2001-08-16 22:26:55
|
hi all, QueryManager is in CVS :) best, _alex |