- protected void processTemplate(Request request, Template template) throws RedirectException {
- super.processTemplate(request, template);
- }
-
- //
- // SONETEMPLATEPAGE METHODS
- //
-
- /**
- * {@inheritDoc}
- */
- @Override
- protected boolean requiresLogin() {
- return true;
+ protected void processTemplate(FreenetRequest request, TemplateContext templateContext) throws RedirectException {
+ super.processTemplate(request, templateContext);
+ if (request.getMethod() == Method.POST) {
+ if (request.getHttpRequest().isPartSet("deleteSone")) {
+ Sone currentSone = getCurrentSone(request.getToadletContext());
+ webInterface.getCore().deleteSone(currentSone);
+ }
+ throw new RedirectException("index.html");
+ }