Share » Forums » Developer » what the new and modifications will...

what the new and modifications will be in 3.1 final ?!

what the new and modifications will be in 3.1 final ?!

Monday 23 June 2003 8:12:33 am - 8 replies

Author Message

Björn Dieding@xrow.de

Tuesday 24 June 2003 6:12:10 am

When you do so many core changes on the code, why don't you use SVN?

I believe that will make you life easier.

Looking for a new job? http://www.xrow.com/xrow-GmbH/Jobs
Looking for hosting? http://hostingezpublish.com
-----------------------------------------------------------------------------
GMT +01:00 Hannover, Germany
Web: http://www.xrow.com/

Selmah Maxim

Tuesday 24 June 2003 7:15:21 am

I had tried befor ... but am using Win xp, and i couldn`t figure out what should i do to get the changes !!!

I had read here befor how to use, but is useless !!

can you plz provide me more information about svn system, i had downloaded the win version !

Tony Wood

Tuesday 24 June 2003 7:18:42 am

Try this http://ez.no/developer/ez_publish_3/documentation/ez_publish_3/howtos/getting_the_latest_ezpublish_source

Tony Wood : twitter.com/tonywood
Vision with Technology
Experts in eZ Publish consulting & development

Power to the Editor!

Free eZ Training : http://www.VisionWT.com/training
eZ Future Podcast : http://www.VisionWT.com/eZ-Future

Selmah Maxim

Tuesday 24 June 2003 7:40:19 am

I had read it befor !!

my question is when i write :

svn update http://zev.ez.no/svn/nextgen/trunk/ old_svn_directory

this will update the files with keeping my editing or what ?

when i had downloaed ezp3.1.2 i didn`t find .svn folder, should i download it all again by svn or what ?

if there is mysql updates how will the svn update the mysql ?

sorry .. but i didn`t use svn or cvs befor !

Bruce Morrison

Tuesday 24 June 2003 3:09:43 pm

Hi Selma

Where possible with the code modifications you need to make them modules or extentions to ease the "pain" of upgrades, otherwise you will always be applying them to new versions. I realise that this is not possible in all cases, especially when you whish to make changes to the kernel or other core parts of the system.

An other approach is to submit the changes to the eZ Team so that they may be considered and possibily included in the next release.

Cheers
Bruce
designIT

My Blog: http://www.stuffandcontent.com/
Follow me on twitter: http://twitter.com/brucemorrison
Consolidated eZ Publish Feed : http://friendfeed.com/rooms/ez-publish

Björn Dieding@xrow.de

Tuesday 24 June 2003 3:55:03 pm

Well the pain would be to resolve the conflicts after every update.

Looking for a new job? http://www.xrow.com/xrow-GmbH/Jobs
Looking for hosting? http://hostingezpublish.com
-----------------------------------------------------------------------------
GMT +01:00 Hannover, Germany
Web: http://www.xrow.com/

Selmah Maxim

Wednesday 25 June 2003 1:11:33 am

Hi Bruce ..

About my modifications, i don`t think ez team will include it , coz it`s custom, such .. if user not admin and he edit something in site, but he change his mind, then if he click 'Discard' , then no need for confirmation to delete, so i had add this to kernel/content/edit :

if ( $module->isCurrentAction( 'Discard' ) )
{
$http =& eZHTTPTool::instance();
$objectID = $object->attribute( 'id' );
$http->setSessionVariable( 'DiscardObjectID', $objectID );
$http->setSessionVariable( 'DiscardObjectVersion', $EditVersion );
$http->setSessionVariable( 'DiscardObjectLanguage', $EditLanguage );
// Added by Me ...
// This will remove the edited version form DB direct without confirmation
if($http->hasVariable( 'RedirectURI' ))
{
$Page = $http->Variable( 'RedirectURI' );
$http->setSessionVariable( 'None_Confirm', "Remove" );
$http->setSessionVariable( 'UserRedirectURI', "$Page" );
}
// End By Me

and i had add this in removeeditversion.php :

if ( $http->hasPostVariable( "ConfirmButton" ) Or $http->hasSessionVariable( 'None_Confirm' ) )
$http->removeSessionVariable( 'None_Confirm' );
.
.
..
}

// Added By Me ...
if($http->hasSessionVariable( 'UserRedirectURI' ) )
{
$Page = $http->sessionVariable( 'UserRedirectURI' ) ;
$http->removeSessionVariable( 'UserRedirectURI' );
$Module->redirectTo( $Page );
$hasRedirected = true;
if(!$Page) $hasRedirected = false;
}
// End

if ( $http->hasSessionVariable( 'ParentObject' ) && $http->sessionVariable( 'NewObjectID' ) == $objectID and !$hasRedirected)

then also i had add line to redirect the user by getting from $_POST array after submiting ... becoz as know if form have hidden input named with 'RedirectURI' must redirect user to this page, but this is missing from edit.php .. so i had added this lines to do this :

if($http->hasVariable( 'RedirectURI' ))
{
$Page = $http->Variable( 'RedirectURI' );
$module->redirectTo( $Page );
$hasRedirected = true;
if(!$Page) $hasRedirected = false;
}
//
if ( $http->hasSessionVariable( 'ParentObject' ) && $http->sessionVariable( 'NewObjectID' ) == $object->attribute( 'id' ) and !$hasRedirected)
{

This part of modifications ...

as you see, i cann`t make module from this ... but now thinking about another solution, workflow .. maybe can solve my problem , but am not sure, but i`ll try with final 3.1 , as i had read today will be release, and do you what the best thing with ezp crew ? .... the timeframe, they didn`t get out of timeframe, so well done ez crew ;)

There is 3 question, I have no idae about it :
1. When i download the ezp I cann`t find .svn folder in the zip file, and without it i get svn error, where to get it? should i make svn to download the new version of ezp ?

2. The svn will update the code, nice, but what if there is mysql update, can svn do it ??

3. I don`t have root access on the host, can i install the svn on my folder, or i must request the host root for that ?

Selmah Maxim

Wednesday 25 June 2003 1:15:43 am

Another thing ...
I found bug, maybe this bug just for me, that any user can see the versions list for any user, i had give report about it, but they say not a bug, coz of this i hadd add this lines to versions.php :

// By me
$UserID = $user->id();
$OwnerObj = $object->attribute( 'owner' );
$OwnerID = $OwnerObj->attribute( 'id' );
if ( $OwnerID != $UserID )
return $Module->handleError( EZ_ERROR_KERNEL_ACCESS_DENIED, 'kernel' );
//

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu