diff --git a/apps/admin/modules/respuestaBusqueda/actions/actions.class.php b/apps/admin/modules/respuestaBusqueda/actions/actions.class.php index 4b48559..0658fc0 100644 --- a/apps/admin/modules/respuestaBusqueda/actions/actions.class.php +++ b/apps/admin/modules/respuestaBusqueda/actions/actions.class.php @@ -13,4 +13,28 @@ */ class respuestaBusquedaActions extends autoRespuestaBusquedaActions { +public function executeFormWidget(dmWebRequest $request) + { + $form = new respuestaBusquedaForm(); + if ($request->isMethod('post') && $form->bindAndValid($request)) + { + $form->save(); + $user = $this->getUser()->getDmUser(); + $this->getService('mail')->setTemplate('respuesta_busqueda') + ->addValues(array( + 'busqueda_id' => $form->getValue('busqueda_id'), + 'email' => $user->getEmail(), + 'mensaje' => $form->getValue('mensaje'), + 'username' => $user->getUsername(), + 'nombre' => $user->getNombre(), + 'apellidos' => $user->getApellidos(), + 'create_at' => $form->getValue('create_at') + +)) + + ->send(); + $this->redirectBack(); + } + $this->forms['respuestaBusqueda'] = $form; } +} \ No newline at end of file diff --git a/bibliocnic.sql b/bibliocnic.sql index de5e74f..44a12fe 100644 --- a/bibliocnic.sql +++ b/bibliocnic.sql @@ -3,7 +3,7 @@ -- http://www.phpmyadmin.net -- -- Servidor: localhost --- Tiempo de generación: 03-08-2011 a las 14:28:54 +-- Tiempo de generación: 03-08-2011 a las 16:55:17 -- Versión del servidor: 5.1.41 -- Versión de PHP: 5.3.1 @@ -354,7 +354,7 @@ CREATE TABLE IF NOT EXISTS `dm_error` ( `env` varchar(63) COLLATE utf8_unicode_ci NOT NULL, `created_at` datetime NOT NULL, PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=128 ; +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=130 ; -- -- Volcar la base de datos para la tabla `dm_error` @@ -499,7 +499,9 @@ INSERT INTO `dm_error` (`id`, `php_class`, `name`, `description`, `module`, `act (125, 'InvalidArgumentException', 'sfValidatorChoice does not support the following options: ''choice''.', 'sfValidatorChoice does not support the following options: ''choice''.\n#0 C:\\development\\dmprojects\\bibliocnic\\apps\\admin\\modules\\busqueda\\lib\\BusquedaAdminForm.php(40): sfValidatorBase->__construct(Array)\n#1 C:\\development\\dmprojects\\bibliocnic\\lib\\vendor\\diem\\symfony\\lib\\form\\sfForm.class.php(70): BusquedaAdminForm->configure()\n#2 C:\\development\\dmprojects\\bibliocnic\\lib\\vendor\\diem\\symfony\\lib\\form\\addon\\sfFormSymfony.class.php(33): sfForm->__construct(Array, Array, NULL)\n#3 C:\\development\\dmprojects\\bibliocnic\\lib\\vendor\\diem\\symfony\\lib\\plugins\\sfDoctrinePlugin\\lib\\form\\sfFormDoctrine.class.php(52): sfFormSymfony->__construct(Array, Array, NULL)\n#4 C:\\development\\dmprojects\\bibliocnic\\lib\\vendor\\diem\\symfony\\lib\\generator\\sfModelGeneratorConfiguration.class.php(484): sfFormDoctrine->__construct(NULL, Array)\n#5 C:\\development\\dmprojects\\bibliocnic\\cache\\admin\\dev\\modules\\autoBusqueda\\actions\\actions.class.php(132): sfModelGeneratorConfiguration->getForm()\n#6 C:\\development\\dmprojects\\bibliocnic\\lib\\vendor\\diem\\symfony\\lib\\action\\sfActions.class.php(60): autoBusquedaActions->executeCreate(Object(dmWebRequest))\n#7 C:\\development\\dmprojects\\bibliocnic\\lib\\vendor\\diem\\symfony\\lib\\filter\\sfExecutionFilter.class.php(92): sfActions->execute(Object(dmWebRequest))\n#8 C:\\development\\dmprojects\\bibliocnic\\lib\\vendor\\diem\\symfony\\lib\\filter\\sfExecutionFilter.class.php(78): sfExecutionFilter->executeAction(Object(busquedaActions))\n#9 C:\\development\\dmprojects\\bibliocnic\\lib\\vendor\\diem\\symfony\\lib\\filter\\sfExecutionFilter.class.php(42): sfExecutionFilter->handleAction(Object(sfFilterChain), Object(busquedaActions))\n#10 C:\\development\\dmprojects\\bibliocnic\\lib\\vendor\\diem\\symfony\\lib\\filter\\sfFilterChain.class.php(53): sfExecutionFilter->execute(Object(sfFilterChain))\n#11 C:\\development\\dmprojects\\bibliocnic\\lib\\vendor\\diem\\dmAdminPlugin\\lib\\filter\\dmAdminInitFilter.php(32): sfFilterChain->execute()\n#12 C:\\development\\dmprojects\\bibliocnic\\lib\\vendor\\diem\\symfony\\lib\\filter\\sfFilterChain.class.php(53): dmAdminInitFilter->execute(Object(sfFilterChain))\n#13 C:\\development\\dmprojects\\bibliocnic\\lib\\vendor\\diem\\symfony\\lib\\filter\\sfBasicSecurityFilter.class.php(72): sfFilterChain->execute()\n#14 C:\\development\\dmprojects\\bibliocnic\\lib\\vendor\\diem\\symfony\\lib\\filter\\sfFilterChain.class.php(53): sfBasicSecurityFilter->execute(Object(sfFilterChain))\n#15 C:\\development\\dmprojects\\bibliocnic\\lib\\vendor\\diem\\dmCorePlugin\\plugins\\dmUserPlugin\\lib\\dmRememberMeFilter.class.php(56): sfFilterChain->execute()\n#16 C:\\development\\dmprojects\\bibliocnic\\lib\\vendor\\diem\\symfony\\lib\\filter\\sfFilterChain.class.php(53): dmRememberMeFilter->execute(Object(sfFilterChain))\n#17 C:\\development\\dmprojects\\bibliocnic\\lib\\vendor\\diem\\symfony\\lib\\filter\\sfRenderingFilter.class.php(33): sfFilterChain->execute()\n#18 C:\\development\\dmprojects\\bibliocnic\\lib\\vendor\\diem\\symfony\\lib\\filter\\sfFilterChain.class.php(53): sfRenderingFilter->execute(Object(sfFilterChain))\n#19 C:\\development\\dmprojects\\bibliocnic\\lib\\vendor\\diem\\symfony\\lib\\controller\\sfController.class.php(233): sfFilterChain->execute()\n#20 C:\\development\\dmprojects\\bibliocnic\\lib\\vendor\\diem\\symfony\\lib\\controller\\sfFrontWebController.class.php(48): sfController->forward(''busqueda'', ''create'')\n#21 C:\\development\\dmprojects\\bibliocnic\\lib\\vendor\\diem\\dmCorePlugin\\lib\\context\\dmContext.php(280): sfFrontWebController->dispatch()\n#22 C:\\development\\dmprojects\\bibliocnic\\web\\admin_dev.php(7): dmContext->dispatch()\n#23 {main}', 'busqueda', 'create', 'http://bibliocnic:8080/admin_dev.php/content/busquedas/busquedas/create', 'dev', '2011-08-03 11:09:10'), (126, 'Exception', 'Warning : "fopen(http://diem-project.org/service/current-version/5_1) [function.fopen]: failed to open stream: HTTP request failed! " occured in C:\\development\\dmprojects\\bibliocnic\\lib\\vendor\\diem\\dmCorePlugin\\plugins\\sfWebBr', 'Warning : "fopen(http://diem-project.org/service/current-version/5_1) [function.fopen]: failed to open stream: HTTP request failed! " occured in C:\\development\\dmprojects\\bibliocnic\\lib\\vendor\\diem\\dmCorePlugin\\plugins\\sfWebBrowserPlugin\\lib\\sfFopenAdapter.class.php on line 60\n#0 C:\\development\\dmprojects\\bibliocnic\\lib\\vendor\\diem\\dmCorePlugin\\plugins\\sfWebBrowserPlugin\\lib\\sfWebBrowser.class.php(217): sfFopenAdapter->call(Object(dmWebBrowser), ''http://diem-pro...'', ''GET'', Array, Array)\n#1 C:\\development\\dmprojects\\bibliocnic\\lib\\vendor\\diem\\dmCorePlugin\\plugins\\sfWebBrowserPlugin\\lib\\sfWebBrowser.class.php(116): sfWebBrowser->call(''http://diem-pro...'', ''GET'', Array, Array)\n#2 C:\\development\\dmprojects\\bibliocnic\\lib\\vendor\\diem\\dmAdminPlugin\\lib\\webService\\dmDiemVersionCheck.php(50): sfWebBrowser->get(''http://diem-pro...'')\n#3 C:\\development\\dmprojects\\bibliocnic\\lib\\vendor\\diem\\dmAdminPlugin\\lib\\webService\\dmDiemVersionCheck.php(32): dmDiemVersionCheck->getLatestServerVersionForBranch(''5.1'')\n#4 C:\\development\\dmprojects\\bibliocnic\\lib\\vendor\\diem\\dmAdminPlugin\\modules\\dmAdmin\\lib\\BasedmAdminActions.class.php(93): dmDiemVersionCheck->isUpToDate()\n#5 C:\\development\\dmprojects\\bibliocnic\\lib\\vendor\\diem\\symfony\\lib\\action\\sfActions.class.php(60): BasedmAdminActions->executeVersionCheck(Object(dmWebRequest))\n#6 C:\\development\\dmprojects\\bibliocnic\\lib\\vendor\\diem\\symfony\\lib\\filter\\sfExecutionFilter.class.php(92): sfActions->execute(Object(dmWebRequest))\n#7 C:\\development\\dmprojects\\bibliocnic\\lib\\vendor\\diem\\symfony\\lib\\filter\\sfExecutionFilter.class.php(78): sfExecutionFilter->executeAction(Object(dmAdminActions))\n#8 C:\\development\\dmprojects\\bibliocnic\\lib\\vendor\\diem\\symfony\\lib\\filter\\sfExecutionFilter.class.php(42): sfExecutionFilter->handleAction(Object(sfFilterChain), Object(dmAdminActions))\n#9 C:\\development\\dmprojects\\bibliocnic\\lib\\vendor\\diem\\symfony\\lib\\filter\\sfFilterChain.class.php(53): sfExecutionFilter->execute(Object(sfFilterChain))\n#10 C:\\development\\dmprojects\\bibliocnic\\lib\\vendor\\diem\\dmAdminPlugin\\lib\\filter\\dmAdminInitFilter.php(32): sfFilterChain->execute()\n#11 C:\\development\\dmprojects\\bibliocnic\\lib\\vendor\\diem\\symfony\\lib\\filter\\sfFilterChain.class.php(53): dmAdminInitFilter->execute(Object(sfFilterChain))\n#12 C:\\development\\dmprojects\\bibliocnic\\lib\\vendor\\diem\\symfony\\lib\\filter\\sfBasicSecurityFilter.class.php(72): sfFilterChain->execute()\n#13 C:\\development\\dmprojects\\bibliocnic\\lib\\vendor\\diem\\symfony\\lib\\filter\\sfFilterChain.class.php(53): sfBasicSecurityFilter->execute(Object(sfFilterChain))\n#14 C:\\development\\dmprojects\\bibliocnic\\lib\\vendor\\diem\\dmCorePlugin\\plugins\\dmUserPlugin\\lib\\dmRememberMeFilter.class.php(56): sfFilterChain->execute()\n#15 C:\\development\\dmprojects\\bibliocnic\\lib\\vendor\\diem\\symfony\\lib\\filter\\sfFilterChain.class.php(53): dmRememberMeFilter->execute(Object(sfFilterChain))\n#16 C:\\development\\dmprojects\\bibliocnic\\lib\\vendor\\diem\\symfony\\lib\\filter\\sfRenderingFilter.class.php(33): sfFilterChain->execute()\n#17 C:\\development\\dmprojects\\bibliocnic\\lib\\vendor\\diem\\symfony\\lib\\filter\\sfFilterChain.class.php(53): sfRenderingFilter->execute(Object(sfFilterChain))\n#18 C:\\development\\dmprojects\\bibliocnic\\lib\\vendor\\diem\\symfony\\lib\\controller\\sfController.class.php(233): sfFilterChain->execute()\n#19 C:\\development\\dmprojects\\bibliocnic\\lib\\vendor\\diem\\symfony\\lib\\controller\\sfFrontWebController.class.php(48): sfController->forward(''dmAdmin'', ''versionCheck'')\n#20 C:\\development\\dmprojects\\bibliocnic\\lib\\vendor\\diem\\dmCorePlugin\\lib\\context\\dmContext.php(280): sfFrontWebController->dispatch()\n#21 C:\\development\\dmprojects\\bibliocnic\\web\\admin_dev.php(7): dmContext->dispatch()\n#22 {main}', 'dmAdmin', 'versionCheck', 'http://bibliocnic:8080/admin_dev.php/+/dmAdmin/versionCheck?_=1312364180595&dm_cpi=0&dm_xhr=1', 'dev', '2011-08-03 11:36:44'); INSERT INTO `dm_error` (`id`, `php_class`, `name`, `description`, `module`, `action`, `uri`, `env`, `created_at`) VALUES -(127, 'dmException', 'helper->media can not display dm_user/5dc9d2d3ac52728ec89a4a0fea966768246d70fa.pdf: missing service media_tag_application', 'helper->media can not display dm_user/5dc9d2d3ac52728ec89a4a0fea966768246d70fa.pdf: missing service media_tag_application\n#0 C:\\development\\dmprojects\\bibliocnic\\lib\\vendor\\diem\\dmCorePlugin\\lib\\helper\\DmHelper.php(25): dmHelper->media(Object(DmMedia))\n#1 C:\\development\\dmprojects\\bibliocnic\\apps\\front\\modules\\dmUser\\templates\\_signin.php(7): _media(Object(DmMedia))\n#2 C:\\development\\dmprojects\\bibliocnic\\lib\\vendor\\diem\\symfony\\lib\\view\\sfPHPView.class.php(75): require(''C:\\development\\...'')\n#3 C:\\development\\dmprojects\\bibliocnic\\lib\\vendor\\diem\\symfony\\lib\\view\\sfPartialView.class.php(110): sfPHPView->renderFile(''C:\\development\\...'')\n#4 C:\\development\\dmprojects\\bibliocnic\\lib\\vendor\\diem\\symfony\\lib\\helper\\PartialHelper.php(155): sfPartialView->render()\n#5 C:\\development\\dmprojects\\bibliocnic\\lib\\vendor\\diem\\dmCorePlugin\\lib\\view\\dmHelper.php(56): get_component(''dmUser'', ''signin'', Array)\n#6 C:\\development\\dmprojects\\bibliocnic\\lib\\vendor\\diem\\dmFrontPlugin\\lib\\dmWidget\\base\\dmWidgetBaseView.php(150): dmHelper->renderComponent(''dmUser'', ''signin'', Array)\n#7 C:\\development\\dmprojects\\bibliocnic\\lib\\vendor\\diem\\dmFrontPlugin\\lib\\dmWidget\\base\\dmWidgetBaseView.php(141): dmWidgetBaseView->doRenderPartial(Array)\n#8 C:\\development\\dmprojects\\bibliocnic\\lib\\vendor\\diem\\dmFrontPlugin\\lib\\dmWidget\\base\\dmWidgetBaseView.php(120): dmWidgetBaseView->renderPartial(Array)\n#9 C:\\development\\dmprojects\\bibliocnic\\lib\\vendor\\diem\\dmFrontPlugin\\lib\\dmWidget\\base\\dmWidgetBaseView.php(108): dmWidgetBaseView->doRender()\n#10 C:\\development\\dmprojects\\bibliocnic\\lib\\vendor\\diem\\dmFrontPlugin\\lib\\view\\html\\widget\\dmFrontWidgetRenderer.php(71): dmWidgetBaseView->render()\n#11 C:\\development\\dmprojects\\bibliocnic\\lib\\vendor\\diem\\dmFrontPlugin\\lib\\view\\html\\widget\\dmFrontWidgetRenderer.php(43): dmFrontWidgetRenderer->doRender()\n#12 C:\\development\\dmprojects\\bibliocnic\\lib\\vendor\\diem\\dmFrontPlugin\\lib\\view\\html\\page\\dmFrontPageBaseHelper.php(331): dmFrontWidgetRenderer->getHtml()\n#13 C:\\development\\dmprojects\\bibliocnic\\lib\\vendor\\diem\\dmFrontPlugin\\lib\\view\\html\\page\\dmFrontPageBaseHelper.php(308): dmFrontPageBaseHelper->renderWidgetInner(Array)\n#14 C:\\development\\dmprojects\\bibliocnic\\lib\\vendor\\diem\\dmFrontPlugin\\lib\\view\\html\\page\\dmFrontPageBaseHelper.php(284): dmFrontPageBaseHelper->renderWidget(Array)\n#15 C:\\development\\dmprojects\\bibliocnic\\lib\\vendor\\diem\\dmFrontPlugin\\lib\\view\\html\\page\\dmFrontPageBaseHelper.php(267): dmFrontPageBaseHelper->renderZoneInner(Array)\n#16 C:\\development\\dmprojects\\bibliocnic\\lib\\vendor\\diem\\dmFrontPlugin\\lib\\view\\html\\page\\dmFrontPageBaseHelper.php(227): dmFrontPageBaseHelper->renderZone(Array)\n#17 C:\\development\\dmprojects\\bibliocnic\\lib\\vendor\\diem\\dmFrontPlugin\\lib\\view\\html\\page\\dmFrontPageBaseHelper.php(202): dmFrontPageBaseHelper->renderAreaInner(Array)\n#18 C:\\development\\dmprojects\\bibliocnic\\apps\\front\\modules\\dmFront\\templates\\pageSuccess.php(22): dmFrontPageBaseHelper->renderArea(''layout.right'')\n#19 C:\\development\\dmprojects\\bibliocnic\\lib\\vendor\\diem\\symfony\\lib\\view\\sfPHPView.class.php(75): require(''C:\\development\\...'')\n#20 C:\\development\\dmprojects\\bibliocnic\\lib\\vendor\\diem\\symfony\\lib\\view\\sfPHPView.class.php(185): sfPHPView->renderFile(''C:\\development\\...'')\n#21 C:\\development\\dmprojects\\bibliocnic\\lib\\vendor\\diem\\symfony\\lib\\filter\\sfExecutionFilter.class.php(155): sfPHPView->render()\n#22 C:\\development\\dmprojects\\bibliocnic\\lib\\vendor\\diem\\symfony\\lib\\filter\\sfExecutionFilter.class.php(116): sfExecutionFilter->executeView(''dmFront'', ''page'', ''Success'', Array)\n#23 C:\\development\\dmprojects\\bibliocnic\\lib\\vendor\\diem\\symfony\\lib\\filter\\sfExecutionFilter.class.php(47): sfExecutionFilter->handleView(Object(sfFilterChain), Object(dmFrontActions), ''Success'')\n#24 C:\\development\\dmprojects\\bibliocnic\\lib\\vendor\\diem\\symfony\\lib\\filter\\sfFilterChain.class.php(53): sfExecutionFilter->execute(Object(sfFilterChain))\n#25 C:\\development\\dmprojects\\bibliocnic\\lib\\vendor\\diem\\dmFrontPlugin\\lib\\filter\\dmFrontInitFilter.php(34): sfFilterChain->execute()\n#26 C:\\development\\dmprojects\\bibliocnic\\lib\\vendor\\diem\\symfony\\lib\\filter\\sfFilterChain.class.php(53): dmFrontInitFilter->execute(Object(sfFilterChain))\n#27 C:\\development\\dmprojects\\bibliocnic\\lib\\vendor\\diem\\dmCorePlugin\\plugins\\dmUserPlugin\\lib\\dmRememberMeFilter.class.php(56): sfFilterChain->execute()\n#28 C:\\development\\dmprojects\\bibliocnic\\lib\\vendor\\diem\\symfony\\lib\\filter\\sfFilterChain.class.php(53): dmRememberMeFilter->execute(Object(sfFilterChain))\n#29 C:\\development\\dmprojects\\bibliocnic\\lib\\vendor\\diem\\symfony\\lib\\filter\\sfRenderingFilter.class.php(33): sfFilterChain->execute()\n#30 C:\\development\\dmprojects\\bibliocnic\\lib\\vendor\\diem\\symfony\\lib\\filter\\sfFilterChain.class.php(53): sfRenderingFilter->execute(Object(sfFilterChain))\n#31 C:\\development\\dmprojects\\bibliocnic\\lib\\vendor\\diem\\symfony\\lib\\controller\\sfController.class.php(233): sfFilterChain->execute()\n#32 C:\\development\\dmprojects\\bibliocnic\\lib\\vendor\\diem\\symfony\\lib\\controller\\sfFrontWebController.class.php(48): sfController->forward(''dmFront'', ''page'')\n#33 C:\\development\\dmprojects\\bibliocnic\\lib\\vendor\\diem\\dmCorePlugin\\lib\\context\\dmContext.php(280): sfFrontWebController->dispatch()\n#34 C:\\development\\dmprojects\\bibliocnic\\web\\dev.php(7): dmContext->dispatch()\n#35 {main}', 'dmFront', 'page', 'http://bibliocnic:8080/dev.php/pregunte-al-bibliotecario?dm_debug=1', 'dev', '2011-08-03 14:05:02'); +(127, 'dmException', 'helper->media can not display dm_user/5dc9d2d3ac52728ec89a4a0fea966768246d70fa.pdf: missing service media_tag_application', 'helper->media can not display dm_user/5dc9d2d3ac52728ec89a4a0fea966768246d70fa.pdf: missing service media_tag_application\n#0 C:\\development\\dmprojects\\bibliocnic\\lib\\vendor\\diem\\dmCorePlugin\\lib\\helper\\DmHelper.php(25): dmHelper->media(Object(DmMedia))\n#1 C:\\development\\dmprojects\\bibliocnic\\apps\\front\\modules\\dmUser\\templates\\_signin.php(7): _media(Object(DmMedia))\n#2 C:\\development\\dmprojects\\bibliocnic\\lib\\vendor\\diem\\symfony\\lib\\view\\sfPHPView.class.php(75): require(''C:\\development\\...'')\n#3 C:\\development\\dmprojects\\bibliocnic\\lib\\vendor\\diem\\symfony\\lib\\view\\sfPartialView.class.php(110): sfPHPView->renderFile(''C:\\development\\...'')\n#4 C:\\development\\dmprojects\\bibliocnic\\lib\\vendor\\diem\\symfony\\lib\\helper\\PartialHelper.php(155): sfPartialView->render()\n#5 C:\\development\\dmprojects\\bibliocnic\\lib\\vendor\\diem\\dmCorePlugin\\lib\\view\\dmHelper.php(56): get_component(''dmUser'', ''signin'', Array)\n#6 C:\\development\\dmprojects\\bibliocnic\\lib\\vendor\\diem\\dmFrontPlugin\\lib\\dmWidget\\base\\dmWidgetBaseView.php(150): dmHelper->renderComponent(''dmUser'', ''signin'', Array)\n#7 C:\\development\\dmprojects\\bibliocnic\\lib\\vendor\\diem\\dmFrontPlugin\\lib\\dmWidget\\base\\dmWidgetBaseView.php(141): dmWidgetBaseView->doRenderPartial(Array)\n#8 C:\\development\\dmprojects\\bibliocnic\\lib\\vendor\\diem\\dmFrontPlugin\\lib\\dmWidget\\base\\dmWidgetBaseView.php(120): dmWidgetBaseView->renderPartial(Array)\n#9 C:\\development\\dmprojects\\bibliocnic\\lib\\vendor\\diem\\dmFrontPlugin\\lib\\dmWidget\\base\\dmWidgetBaseView.php(108): dmWidgetBaseView->doRender()\n#10 C:\\development\\dmprojects\\bibliocnic\\lib\\vendor\\diem\\dmFrontPlugin\\lib\\view\\html\\widget\\dmFrontWidgetRenderer.php(71): dmWidgetBaseView->render()\n#11 C:\\development\\dmprojects\\bibliocnic\\lib\\vendor\\diem\\dmFrontPlugin\\lib\\view\\html\\widget\\dmFrontWidgetRenderer.php(43): dmFrontWidgetRenderer->doRender()\n#12 C:\\development\\dmprojects\\bibliocnic\\lib\\vendor\\diem\\dmFrontPlugin\\lib\\view\\html\\page\\dmFrontPageBaseHelper.php(331): dmFrontWidgetRenderer->getHtml()\n#13 C:\\development\\dmprojects\\bibliocnic\\lib\\vendor\\diem\\dmFrontPlugin\\lib\\view\\html\\page\\dmFrontPageBaseHelper.php(308): dmFrontPageBaseHelper->renderWidgetInner(Array)\n#14 C:\\development\\dmprojects\\bibliocnic\\lib\\vendor\\diem\\dmFrontPlugin\\lib\\view\\html\\page\\dmFrontPageBaseHelper.php(284): dmFrontPageBaseHelper->renderWidget(Array)\n#15 C:\\development\\dmprojects\\bibliocnic\\lib\\vendor\\diem\\dmFrontPlugin\\lib\\view\\html\\page\\dmFrontPageBaseHelper.php(267): dmFrontPageBaseHelper->renderZoneInner(Array)\n#16 C:\\development\\dmprojects\\bibliocnic\\lib\\vendor\\diem\\dmFrontPlugin\\lib\\view\\html\\page\\dmFrontPageBaseHelper.php(227): dmFrontPageBaseHelper->renderZone(Array)\n#17 C:\\development\\dmprojects\\bibliocnic\\lib\\vendor\\diem\\dmFrontPlugin\\lib\\view\\html\\page\\dmFrontPageBaseHelper.php(202): dmFrontPageBaseHelper->renderAreaInner(Array)\n#18 C:\\development\\dmprojects\\bibliocnic\\apps\\front\\modules\\dmFront\\templates\\pageSuccess.php(22): dmFrontPageBaseHelper->renderArea(''layout.right'')\n#19 C:\\development\\dmprojects\\bibliocnic\\lib\\vendor\\diem\\symfony\\lib\\view\\sfPHPView.class.php(75): require(''C:\\development\\...'')\n#20 C:\\development\\dmprojects\\bibliocnic\\lib\\vendor\\diem\\symfony\\lib\\view\\sfPHPView.class.php(185): sfPHPView->renderFile(''C:\\development\\...'')\n#21 C:\\development\\dmprojects\\bibliocnic\\lib\\vendor\\diem\\symfony\\lib\\filter\\sfExecutionFilter.class.php(155): sfPHPView->render()\n#22 C:\\development\\dmprojects\\bibliocnic\\lib\\vendor\\diem\\symfony\\lib\\filter\\sfExecutionFilter.class.php(116): sfExecutionFilter->executeView(''dmFront'', ''page'', ''Success'', Array)\n#23 C:\\development\\dmprojects\\bibliocnic\\lib\\vendor\\diem\\symfony\\lib\\filter\\sfExecutionFilter.class.php(47): sfExecutionFilter->handleView(Object(sfFilterChain), Object(dmFrontActions), ''Success'')\n#24 C:\\development\\dmprojects\\bibliocnic\\lib\\vendor\\diem\\symfony\\lib\\filter\\sfFilterChain.class.php(53): sfExecutionFilter->execute(Object(sfFilterChain))\n#25 C:\\development\\dmprojects\\bibliocnic\\lib\\vendor\\diem\\dmFrontPlugin\\lib\\filter\\dmFrontInitFilter.php(34): sfFilterChain->execute()\n#26 C:\\development\\dmprojects\\bibliocnic\\lib\\vendor\\diem\\symfony\\lib\\filter\\sfFilterChain.class.php(53): dmFrontInitFilter->execute(Object(sfFilterChain))\n#27 C:\\development\\dmprojects\\bibliocnic\\lib\\vendor\\diem\\dmCorePlugin\\plugins\\dmUserPlugin\\lib\\dmRememberMeFilter.class.php(56): sfFilterChain->execute()\n#28 C:\\development\\dmprojects\\bibliocnic\\lib\\vendor\\diem\\symfony\\lib\\filter\\sfFilterChain.class.php(53): dmRememberMeFilter->execute(Object(sfFilterChain))\n#29 C:\\development\\dmprojects\\bibliocnic\\lib\\vendor\\diem\\symfony\\lib\\filter\\sfRenderingFilter.class.php(33): sfFilterChain->execute()\n#30 C:\\development\\dmprojects\\bibliocnic\\lib\\vendor\\diem\\symfony\\lib\\filter\\sfFilterChain.class.php(53): sfRenderingFilter->execute(Object(sfFilterChain))\n#31 C:\\development\\dmprojects\\bibliocnic\\lib\\vendor\\diem\\symfony\\lib\\controller\\sfController.class.php(233): sfFilterChain->execute()\n#32 C:\\development\\dmprojects\\bibliocnic\\lib\\vendor\\diem\\symfony\\lib\\controller\\sfFrontWebController.class.php(48): sfController->forward(''dmFront'', ''page'')\n#33 C:\\development\\dmprojects\\bibliocnic\\lib\\vendor\\diem\\dmCorePlugin\\lib\\context\\dmContext.php(280): sfFrontWebController->dispatch()\n#34 C:\\development\\dmprojects\\bibliocnic\\web\\dev.php(7): dmContext->dispatch()\n#35 {main}', 'dmFront', 'page', 'http://bibliocnic:8080/dev.php/pregunte-al-bibliotecario?dm_debug=1', 'dev', '2011-08-03 14:05:02'), +(128, 'InvalidArgumentException', 'Your generator configuration contains some errors for the "list" context. The following configuration cannot be parsed: array( ''filter'' => NULL,).', 'Your generator configuration contains some errors for the "list" context. The following configuration cannot be parsed: array( ''filter'' => NULL,).\n#0 C:\\development\\dmprojects\\bibliocnic\\lib\\vendor\\diem\\symfony\\lib\\generator\\sfModelGenerator.class.php(58): sfModelGenerator->loadConfiguration()\n#1 C:\\development\\dmprojects\\bibliocnic\\lib\\vendor\\diem\\symfony\\lib\\generator\\sfGeneratorManager.class.php(113): sfModelGenerator->generate(Array)\n#2 C:\\development\\dmprojects\\bibliocnic\\lib\\vendor\\diem\\symfony\\lib\\config\\sfGeneratorConfigHandler.class.php(82): sfGeneratorManager->generate(''dmAdminDoctrine...'', Array)\n#3 C:\\development\\dmprojects\\bibliocnic\\lib\\vendor\\diem\\symfony\\lib\\config\\sfGeneratorConfigHandler.class.php(75): sfGeneratorConfigHandler::getContent(Object(sfGeneratorManager), ''dmAdminDoctrine...'', Array)\n#4 C:\\development\\dmprojects\\bibliocnic\\lib\\vendor\\diem\\symfony\\lib\\config\\sfConfigCache.class.php(108): sfGeneratorConfigHandler->execute(Array)\n#5 C:\\development\\dmprojects\\bibliocnic\\lib\\vendor\\diem\\symfony\\lib\\config\\sfConfigCache.class.php(197): sfConfigCache->callHandler(''modules/dmUserA...'', Array, ''C:\\development\\...'')\n#6 C:\\development\\dmprojects\\bibliocnic\\lib\\vendor\\diem\\symfony\\lib\\config\\sfConfigCache.class.php(249): sfConfigCache->checkConfig(''modules/dmUserA...'', true)\n#7 C:\\development\\dmprojects\\bibliocnic\\lib\\vendor\\diem\\symfony\\lib\\controller\\sfController.class.php(186): sfConfigCache->import(''modules/dmUserA...'', false, true)\n#8 C:\\development\\dmprojects\\bibliocnic\\lib\\vendor\\diem\\symfony\\lib\\controller\\sfFrontWebController.class.php(48): sfController->forward(''dmUserAdmin'', ''index'')\n#9 C:\\development\\dmprojects\\bibliocnic\\lib\\vendor\\diem\\dmCorePlugin\\lib\\context\\dmContext.php(280): sfFrontWebController->dispatch()\n#10 C:\\development\\dmprojects\\bibliocnic\\web\\admin_dev.php(7): dmContext->dispatch()\n#11 {main}', NULL, NULL, 'http://bibliocnic:8080/admin_dev.php/system/security/users/index', 'dev', '2011-08-03 14:53:44'), +(129, 'InvalidArgumentException', 'Your generator configuration contains some errors for the "filter" context. The following configuration cannot be parsed: array( ''table_method'' => ''getAdminListQuery'', ''table_count_method'' => NULL, ''loremize'' => false,).', 'Your generator configuration contains some errors for the "filter" context. The following configuration cannot be parsed: array( ''table_method'' => ''getAdminListQuery'', ''table_count_method'' => NULL, ''loremize'' => false,).\n#0 C:\\development\\dmprojects\\bibliocnic\\lib\\vendor\\diem\\symfony\\lib\\generator\\sfModelGenerator.class.php(58): sfModelGenerator->loadConfiguration()\n#1 C:\\development\\dmprojects\\bibliocnic\\lib\\vendor\\diem\\symfony\\lib\\generator\\sfGeneratorManager.class.php(113): sfModelGenerator->generate(Array)\n#2 C:\\development\\dmprojects\\bibliocnic\\lib\\vendor\\diem\\symfony\\lib\\config\\sfGeneratorConfigHandler.class.php(82): sfGeneratorManager->generate(''dmAdminDoctrine...'', Array)\n#3 C:\\development\\dmprojects\\bibliocnic\\lib\\vendor\\diem\\symfony\\lib\\config\\sfGeneratorConfigHandler.class.php(75): sfGeneratorConfigHandler::getContent(Object(sfGeneratorManager), ''dmAdminDoctrine...'', Array)\n#4 C:\\development\\dmprojects\\bibliocnic\\lib\\vendor\\diem\\symfony\\lib\\config\\sfConfigCache.class.php(108): sfGeneratorConfigHandler->execute(Array)\n#5 C:\\development\\dmprojects\\bibliocnic\\lib\\vendor\\diem\\symfony\\lib\\config\\sfConfigCache.class.php(197): sfConfigCache->callHandler(''modules/dmUserA...'', Array, ''C:\\development\\...'')\n#6 C:\\development\\dmprojects\\bibliocnic\\lib\\vendor\\diem\\symfony\\lib\\config\\sfConfigCache.class.php(249): sfConfigCache->checkConfig(''modules/dmUserA...'', true)\n#7 C:\\development\\dmprojects\\bibliocnic\\lib\\vendor\\diem\\symfony\\lib\\controller\\sfController.class.php(186): sfConfigCache->import(''modules/dmUserA...'', false, true)\n#8 C:\\development\\dmprojects\\bibliocnic\\lib\\vendor\\diem\\symfony\\lib\\controller\\sfFrontWebController.class.php(48): sfController->forward(''dmUserAdmin'', ''index'')\n#9 C:\\development\\dmprojects\\bibliocnic\\lib\\vendor\\diem\\dmCorePlugin\\lib\\context\\dmContext.php(280): sfFrontWebController->dispatch()\n#10 C:\\development\\dmprojects\\bibliocnic\\web\\admin_dev.php(7): dmContext->dispatch()\n#11 {main}', NULL, NULL, 'http://bibliocnic:8080/admin_dev.php/system/security/users/index', 'dev', '2011-08-03 14:54:20'); -- -------------------------------------------------------- @@ -692,7 +694,7 @@ CREATE TABLE IF NOT EXISTS `dm_mail_template` ( `updated_at` datetime NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `name` (`name`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=4 ; +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=5 ; -- -- Volcar la base de datos para la tabla `dm_mail_template` @@ -701,7 +703,8 @@ CREATE TABLE IF NOT EXISTS `dm_mail_template` ( INSERT INTO `dm_mail_template` (`id`, `name`, `vars`, `created_at`, `updated_at`) VALUES (1, 'dm_user_forgot_password', 'username, email, step2_url', '2011-06-05 16:32:42', '2011-06-05 16:32:42'), (2, 'solicitud_busqueda_especializada', 'apellidos, email, fecha_antes, fecha_despues, mensaje, nombre, tematica, titulo', '2011-06-27 11:14:27', '2011-06-28 14:35:32'), -(3, 'pregunte_al_bibliotecario', 'apellidos, email, mensaje, nombre, titulo, username', '2011-08-03 12:45:29', '2011-08-03 12:51:05'); +(3, 'pregunte_al_bibliotecario', 'apellidos, email, mensaje, nombre, titulo, username', '2011-08-03 12:45:29', '2011-08-03 12:51:05'), +(4, 'respuesta_busqueda', NULL, '2011-08-03 16:34:54', '2011-08-03 16:34:54'); -- -------------------------------------------------------- @@ -734,7 +737,8 @@ CREATE TABLE IF NOT EXISTS `dm_mail_template_translation` ( INSERT INTO `dm_mail_template_translation` (`id`, `description`, `subject`, `body`, `from_email`, `to_email`, `cc_email`, `bcc_email`, `reply_to_email`, `sender_email`, `list_unsuscribe`, `is_html`, `is_active`, `lang`) VALUES (1, 'Sent to a user that requests a new password', 'Bibliocnic: change your password', 'Hello %username%\nYou can choose a new password at %step2_url%', 'webmaster@domain.com', '%email%', NULL, NULL, NULL, NULL, NULL, 0, 1, 'es'), (2, 'Mensaje que se envía al bibliotecario cuando un usuario solicita una búsqueda especializada. Este se envía con los datos de la solicitud.', '%titulo%', ' %mensaje%\r\n \r\n Temática: %tematica%\r\n\r\n Publicado entre%fecha_antes% y %fecha_despues%\r\n\r\n Nombre y Apellidos: %nombre% %apellidos%', '%email%', 'pablo.reyes@cnic.edu.cu', '', '', '', '', '', 0, 1, 'es'), -(3, 'Este es el template usado para los emails de las preguntas al bibliotecario.', 'Pregunte al bibliotecario', ' Título: %titulo%\r\n\r\n Mensaje: %mensaje%\r\n\r\n Usuario: %username%\r\n\r\n Nombre y Apellidos: %nombre% %apellidos%\r\n\r\n ', '%email%', 'pablo.reyes@cnic.edu.cu', '', '', '', '', '', 0, 1, 'es'); +(3, 'Este es el template usado para los emails de las preguntas al bibliotecario.', 'Pregunte al bibliotecario', ' Título: %titulo%\r\n\r\n Mensaje: %mensaje%\r\n\r\n Usuario: %username%\r\n\r\n Nombre y Apellidos: %nombre% %apellidos%\r\n\r\n ', '%email%', 'pablo.reyes@cnic.edu.cu', '', '', '', '', '', 0, 1, 'es'), +(4, 'Este template es para los emails de respuesta a las búsquedas.', 'Respuesta a la solicitud de búsqueda ', ' Su pregunta: %busqueda_id%\r\n\r\n Respuesta: %mensaje%\r\n\r\n De: %nombre% %apellidos%\r\n\r\n El: %create_at%', '%email%', 'pablo.reyes@cnic.edu.cu', '', '', '', '', '', 0, 1, 'es'); -- -------------------------------------------------------- @@ -1790,7 +1794,7 @@ CREATE TABLE IF NOT EXISTS `dm_user` ( -- INSERT INTO `dm_user` (`username`, `email`, `algorithm`, `salt`, `password`, `is_active`, `is_super_admin`, `last_login`, `forgot_password_code`, `id`, `titulo`, `nombre`, `apellidos`, `foto_id`, `penalizado`, `solapin`, `departamento`, `created_at`, `updated_at`) VALUES -('admin', 'admin@bibliocnic.com', 'sha1', '20145d874137f0b47716601f40edba0e', '86e615de7ddd0b9f01f522cfcc70e7d9b336478e', 1, 1, '2011-08-03 14:06:24', NULL, 1, '9no', 'yo', 'yo y yo', 33, 0, '', '', '2011-06-05 16:30:32', '2011-08-03 14:09:20'), +('admin', 'pablo.reyes.mail@gmail.com', 'sha1', '20145d874137f0b47716601f40edba0e', '17d7ba6c9efddf6f3718ca89778bb2fbd542848f', 1, 1, '2011-08-03 14:06:24', NULL, 1, 'Ing', 'DiemAdmin', 'DiemAdmin', 33, 0, '', '', '2011-06-05 16:30:32', '2011-08-03 14:33:02'), ('corey', 'pablo.reyes@cnic.edu.cu', 'sha1', 'd9e8c6471b33f15fe80e25514136897f', '7283bc02eef5be6b92e1ca7191280bacedd524fa', 1, 0, '2011-08-03 12:04:53', NULL, 2, '12', 'Pablo', 'Reyes Naranjo', 2, 0, '0512', 'ICT', '2011-06-20 11:18:15', '2011-06-20 11:18:15'), ('xinita', 'yanays@cneuro.edu.cu', 'sha1', '6a6ed21d7e776365d62266f24988b607', '7d134057f573b96402614d61f7422a2d4488bf54', 1, 0, '2011-08-03 12:50:25', NULL, 3, 'MsC', 'Yanays', 'Rodriguez Puentes', 17, 0, '0416', 'Fisica Nuclear', '2011-07-06 20:48:18', '2011-07-06 20:50:04'), ('DRM', 'dalmer.ruiz@cnic.edu.cu', 'sha1', '93b277d7b15320a3cb498c6bb20be858', '3dc1b6c105cb880c386c8e2d1573afa35c16fee1', 1, 0, '2011-08-03 13:59:19', NULL, 8, '9no', 'Dalmer', 'Ruiz Mas', 32, 0, '1478', 'si', '2011-07-11 18:24:34', '2011-08-03 14:08:34'); @@ -2415,7 +2419,7 @@ CREATE TABLE IF NOT EXISTS `respuestab` ( KEY `busqueda_id_idx` (`busqueda_id`), KEY `respuestab_created_by_idx` (`created_by`), KEY `respuestab_updated_by_idx` (`updated_by`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=4 ; +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=6 ; -- -- Volcar la base de datos para la tabla `respuestab` @@ -2424,7 +2428,9 @@ CREATE TABLE IF NOT EXISTS `respuestab` ( INSERT INTO `respuestab` (`id`, `mensaje`, `busqueda_id`, `uri`, `created_at`, `updated_at`, `created_by`, `updated_by`) VALUES (1, 'Esto es por la casa.', 58, 'www.libros.es', '2011-07-01 13:51:37', '2011-07-01 13:51:37', NULL, NULL), (2, 'dfgdfgdfgdfgdfg', 57, 'dgdfgdfgdfgd', '2011-07-01 14:29:06', '2011-07-01 14:29:06', NULL, NULL), -(3, 'Este no fue el mejor libro que encontré pero el otro es un tanto grande, pasa a buscarlo. [ciencias.pdf](media:25)', 67, NULL, '2011-08-03 11:22:15', '2011-08-03 11:22:15', 1, 1); +(3, 'Este no fue el mejor libro que encontré pero el otro es un tanto grande, pasa a buscarlo. [ciencias.pdf](media:25)', 67, NULL, '2011-08-03 11:22:15', '2011-08-03 11:22:15', 1, 1), +(4, 'probando las respuesta a ver si llega el mensaje con fichero.\r\n[esto es un pdf](media:12)', 59, NULL, '2011-08-03 16:40:13', '2011-08-03 16:40:13', 1, 1), +(5, 'no se si llegue, veamos [pdf](media:12)', 70, NULL, '2011-08-03 16:48:06', '2011-08-03 16:48:06', 1, 1); -- --------------------------------------------------------