From: Benjamin D. S. <be...@be...> - 2001-06-13 20:03:19
|
Read the spec for R2, and the permissions class seems incomplete - let me give a scenario: We have a "settings" page, used to display and update settings for a portion of the site. (preferences, etc) We want to display the current settings, and, if you are an authenticated user, allow you to change them. If you don't have alter permissions, we just don't show you the buttons in the form, nor do we allow you to save anything. So, we want to know: 1) Who are you (supported) 2) Do you have permissions to view this file/page? (supported) 3) Do you have permission to a particular block of functionality within this file/page? (apparently unsupported) How can this be supported given the current level of the spec? -Ben -- "Life is short. Live it!" |
From: Alex B. <en...@tu...> - 2001-06-13 20:27:19
|
> Read the spec for R2, and the permissions class seems incomplete - let me > give a scenario: > > We have a "settings" page, used to display and update settings for a portion > of the site. (preferences, etc) > > We want to display the current settings, and, if you are an authenticated > user, allow you to change them. > > If you don't have alter permissions, we just don't show you the buttons in > the form, nor do we allow you to save anything. ok. so far we support all of that without a problem. > So, we want to know: > 1) Who are you (supported) > 2) Do you have permissions to view this file/page? (supported) > 3) Do you have permission to a particular block of functionality within this > file/page? (apparently unsupported) absolutely supported :) we do that by specifying what roles have permissions to do what operations on entities. for example a public user can "edit" but not "create" preferences for their userid. so roles control both access to URIs, _and_ entity operations. > How can this be supported given the current level of the spec? I will update the spec as soon as auth/perm is done. I think once those components are complete it makes sense to go back through and update the spec to match what we're doing. _alex -- alex black, ceo en...@tu... the turing studio, inc. http://www.turingstudio.com vox+510.666.0074 fax+510.666.0093 |
From: Angel H. <an...@ho...> - 2001-06-13 23:27:23
|
After installing the latest version of BinaryCloud R1, everything seemed to go smooth except for the following errors: How do I clear this up? Thanks, Angel ============================ PHP Warning The length of the needle must not be 0 file: /www/bc.ahpstudios.com/binarycloud/core/lib/bread_crumbs_and_tabs.lib line 40 PHP Warning Cannot send session cookie - headers already sent by (output started at /www/bc.ahpstudios.com/binarycloud/user/conf/file_permissions.conf:193) file: /www/bc.ahpstudios.com/htdocs/storm/system_errors/update_error.php line 49 PHP Warning Cannot send session cache limiter - headers already sent (output started at /www/bc.ahpstudios.com/binarycloud/user/conf/file_permissions.conf:193) file: /www/bc.ahpstudios.com/htdocs/storm/system_errors/update_error.php line 49 ============================= |
From: Angel H. <an...@ho...> - 2001-06-13 23:41:07
|
Ok this is my _first day_ with BinaryCloud, so please be easy on me! :-) After examining various files, classes and the file structure of BC, I'm still struggling just to get an index page to appear in a new directory. Here's what I'm tried: 1) Create a "photography" directory in htdocs 2) Put a plain ol HTML file in ../binarycloud/user/mod/static_pages 3) Copied the index file from htdocs to the photography dir 4) Edited the index file now in photography, and changed the filename in the array to match that of my HTML file without the extension. Result = A blank page. If I move this exact index file to htdocs it will work, but not from the photography directory. I know it must be a problem with the templates and path, but I haven't been able to figure out what needs to be changed. I tried creating a masters/photography.phtml template based on the storm.phtml template, and then changing the index file to use the new template, but still no luck. I'm totally excited over the potential of this system, but a bit frustrated trying to break that first layer of ice! Thanks, Angel |
From: Alex B. <en...@tu...> - 2001-06-14 00:39:53
|
> Ok this is my _first day_ with BinaryCloud, so please be easy on me! :-) > > After examining various files, classes and the file structure of BC, I'm > still struggling just to get an index page to appear in a new directory. > > Here's what I'm tried: > > 1) Create a "photography" directory in htdocs > 2) Put a plain ol HTML file in ../binarycloud/user/mod/static_pages > 3) Copied the index file from htdocs to the photography dir > 4) Edited the index file now in photography, and changed the filename in the > array to match that of my HTML file without the extension. > > Result = A blank page. > > If I move this exact index file to htdocs it will work, but not from the > photography directory. I know it must be a problem with the templates and > path, but I haven't been able to figure out what needs to be changed. > > I tried creating a masters/photography.phtml template based on the > storm.phtml template, and then changing the index file to use the new > template, but still no luck. > > I'm totally excited over the potential of this system, but a bit frustrated > trying to break that first layer of ice! > > Thanks, > > Angel for your first mail: -edit user/conf/file_permissions.conf, remove the whitespace at the bottom of the file. -the "0 length" is a broken bread_crumbs_and_tabs lib, I suggest you edit user/tmpl/masters/binarycloud.phtml and remove the reference to it (you'll see a bit of php with breadcrumbs! comments around it. here, you must add an entry to user/conf/file_permissions.conf for your new file. it would also be appropriate to add your new directory to the directories array (at the bottom of that same file) your page should execute fine, as soon as you put it in there. --------- Don't spend too much time with r1, r2 is a hell of a lot easier to understand coming in because of the classes. though I might have to backpedal on that because we _are_ using makefiles :) _alex -- alex black, ceo en...@tu... the turing studio, inc. http://www.turingstudio.com vox+510.666.0074 fax+510.666.0093 |
From: Angel H. <an...@ho...> - 2001-06-14 01:16:17
|
Cool, thanks! I edited the permissions page, and my new directory page now displays fine. But I'm still getting the breadcrumbs error even after removing all references in bc_master.phtml. -- Angel ----- Original Message ----- From: "Alex Black" <en...@tu...> To: "binarycloud-dev" <bin...@li...> Sent: Wednesday, June 13, 2001 5:38 PM Subject: Re: [binarycloud-dev] First BinaryCloud Pages... > > Ok this is my _first day_ with BinaryCloud, so please be easy on me! :-) > > > > After examining various files, classes and the file structure of BC, I'm > > still struggling just to get an index page to appear in a new directory. > > > > Here's what I'm tried: > > > > 1) Create a "photography" directory in htdocs > > 2) Put a plain ol HTML file in ../binarycloud/user/mod/static_pages > > 3) Copied the index file from htdocs to the photography dir > > 4) Edited the index file now in photography, and changed the filename in the > > array to match that of my HTML file without the extension. > > > > Result = A blank page. > > > > If I move this exact index file to htdocs it will work, but not from the > > photography directory. I know it must be a problem with the templates and > > path, but I haven't been able to figure out what needs to be changed. > > > > I tried creating a masters/photography.phtml template based on the > > storm.phtml template, and then changing the index file to use the new > > template, but still no luck. > > > > I'm totally excited over the potential of this system, but a bit frustrated > > trying to break that first layer of ice! > > > > Thanks, > > > > Angel > > for your first mail: > > -edit user/conf/file_permissions.conf, remove the whitespace at the > bottom of the file. > -the "0 length" is a broken bread_crumbs_and_tabs lib, I suggest you > edit user/tmpl/masters/binarycloud.phtml and remove the reference to it > (you'll see a bit of php with breadcrumbs! comments around it. > > > here, you must add an entry to user/conf/file_permissions.conf for your new > file. it would also be appropriate to add your new directory to the > directories array (at the bottom of that same file) > > your page should execute fine, as soon as you put it in there. > > --------- > > Don't spend too much time with r1, r2 is a hell of a lot easier to > understand coming in because of the classes. > > though I might have to backpedal on that because we _are_ using makefiles :) > > _alex > > > -- > alex black, ceo > en...@tu... > > the turing studio, inc. > http://www.turingstudio.com > > vox+510.666.0074 > fax+510.666.0093 > > > > _______________________________________________ > binarycloud-dev mailing list > bin...@li... > http://lists.sourceforge.net/lists/listinfo/binarycloud-dev |
From: alex b. <en...@tu...> - 2001-06-14 04:05:36
|
oh, yes, that's right. we include it in prepend. edit user/conf/prepend.inc and take out the ref to bread_crumbs_and_tabs.lib _a ----- Original Message ----- From: "Angel Hernandez" <an...@ho...> To: <bin...@li...> Sent: Wednesday, June 13, 2001 6:16 PM Subject: Re: [binarycloud-dev] First BinaryCloud Pages... > Cool, thanks! > > I edited the permissions page, and my new directory page now displays fine. > But I'm still getting the breadcrumbs error even after removing all > references in bc_master.phtml. > > -- Angel > > > ----- Original Message ----- > From: "Alex Black" <en...@tu...> > To: "binarycloud-dev" <bin...@li...> > Sent: Wednesday, June 13, 2001 5:38 PM > Subject: Re: [binarycloud-dev] First BinaryCloud Pages... > > > > > Ok this is my _first day_ with BinaryCloud, so please be easy on me! :-) > > > > > > After examining various files, classes and the file structure of BC, I'm > > > still struggling just to get an index page to appear in a new directory. > > > > > > Here's what I'm tried: > > > > > > 1) Create a "photography" directory in htdocs > > > 2) Put a plain ol HTML file in ../binarycloud/user/mod/static_pages > > > 3) Copied the index file from htdocs to the photography dir > > > 4) Edited the index file now in photography, and changed the filename in > the > > > array to match that of my HTML file without the extension. > > > > > > Result = A blank page. > > > > > > If I move this exact index file to htdocs it will work, but not from the > > > photography directory. I know it must be a problem with the templates > and > > > path, but I haven't been able to figure out what needs to be changed. > > > > > > I tried creating a masters/photography.phtml template based on the > > > storm.phtml template, and then changing the index file to use the new > > > template, but still no luck. > > > > > > I'm totally excited over the potential of this system, but a bit > frustrated > > > trying to break that first layer of ice! > > > > > > Thanks, > > > > > > Angel > > > > for your first mail: > > > > -edit user/conf/file_permissions.conf, remove the whitespace at the > > bottom of the file. > > -the "0 length" is a broken bread_crumbs_and_tabs lib, I suggest you > > edit user/tmpl/masters/binarycloud.phtml and remove the reference to it > > (you'll see a bit of php with breadcrumbs! comments around it. > > > > > > here, you must add an entry to user/conf/file_permissions.conf for your > new > > file. it would also be appropriate to add your new directory to the > > directories array (at the bottom of that same file) > > > > your page should execute fine, as soon as you put it in there. > > > > --------- > > > > Don't spend too much time with r1, r2 is a hell of a lot easier to > > understand coming in because of the classes. > > > > though I might have to backpedal on that because we _are_ using makefiles > :) > > > > _alex > > > > > > -- > > alex black, ceo > > en...@tu... > > > > the turing studio, inc. > > http://www.turingstudio.com > > > > vox+510.666.0074 > > fax+510.666.0093 > > > > > > > > _______________________________________________ > > binarycloud-dev mailing list > > bin...@li... > > http://lists.sourceforge.net/lists/listinfo/binarycloud-dev > > > _______________________________________________ > binarycloud-dev mailing list > bin...@li... > http://lists.sourceforge.net/lists/listinfo/binarycloud-dev > |